Documentacion Translation netbeans

This manual let's you test your translation locally. Once the compilation of netbeans is done, the translations takes about 15 minutes to update.

Avoiding you to download the entire IDE from the internet again and again.

Índice

Compilation of translations for NetBeans

The next steps makes the compilation for netbeans 6.7 IDE and translations for your language. These could be applied to 6.5 version and upper.

1. Download the source code

Download the source code for the proper release (At this time is release67): This downloads the source code for compilation. Once the long process finish you will have a folder at your home named release67.

osl@usc:~$ cd && hg clone http://hg.netbeans.org/release67 #(replace release67 with the proper version)

2. Compile the source code

Compile the source code: Note that depends on your computer this will take a long time (1 hour at least)

osl@usc:~$ cd release67

osl@usc:~/release67$ ant

3. build the nbms

Next build the nbms (netbeans modules) (This takes a lot of time)

osl@usc:~/release67$ ant build-nbms

4. Download the l10n package

Download the l10n package: This downloads a bunch of scripts for work with translations. Download all the oficial translations for this version of netbeans

osl@usc:~/release67$ hg clone http://hg.netbeans.org/main/l10n

5. Generate the l10n-kit

Generate the l10n-kit (source strings for translate): this generates a zipped file at release67_beta/nbbuild/l10n.zip containing all the source strings for translation.

osl@usc:~/release67_beta$ ant l10n-kit

6. Translate the sources

Translate the sources on OmegaT app and generate the translated files: unzip the previous zipped file wherever you want and create a project on OmegaT with these extracted files.

Once the translation is ready to probe (completed or not) copy them inside the next path:

release67_beta/l10n/src/LANGUAGE_CODE

!!! Replace your LANGUAGE_CODE (i.e. gl_ES for Galician language)

Note that the LANGUAGE_CODE could not exist, in this case create it with mkdir

7. Compile the translation

Compile the translation: This generated the compiled and translated files ready to distribute. This takes about 15 minutes.

osl@usc:~/release67_beta$ cd l10n

osl@usc:~/release67_beta/l10n$ ant -Dlocales=LANGUAGE_CODE

!!! Replace your LANGUAGE_CODE (i.e. gl_ES for Galician language)

At this time you have the files compiled at releases67/l10n/dist that contains the translations.

8. Compress the translation to distribute

Compress the translation to distribute.

osl@usc:~/release67_beta/l10n$ cd dist

osl@usc:~/release67_beta/l10n/dist$ tar cjf /LANGUAGE_CODE.tar.bz2 *

At this time you have a tarball at your home that you can distribute to your friends to test it.

FOR UPDATING THE TRASNLATIONS just repeat the process from the 6th step.

Install the translation on a computer

You have to extract the translations in the root directory of the installation of netbeans.

In my case at this path:

/home/osl/release67_beta/nbbuild/netbeans

osl@usc:~/release67_beta/l10n/dist/$ cd ..

osl@usc:~/release67_beta/l10n$ tar xfj ~/gl_ES.tbz ../nbbuild/netbeans/

11. Run netbeans on your language with the next commands. YEAH!!!

osl@usc:~/release67_beta/l10n$ cd ../nbbuild/netbeans/bin/

osl@usc:~/release67_beta/nbbuild/netbeans/bin$ ./netbeans --locale gl:ES