Re: [TF-dev] help building netbeans locales

Francisco Dieguez <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.translated-files.devel
Message-ID <[email protected]>
Hi to all!

How Enrique said the process is not trivial but once you get the initial
steps done
the process is simplified a lot.

Let me correct the English of Enrique and puntualize him at some steps.

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.

COMPILATION OF TRANSLATIONS FOR NETBEANS 6.5 VERSION AND UPPER
==============================================================

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 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: 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. Next build the nbms (netbeans modules) (This takes a lot of time)


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


4. 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 (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 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: 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.


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


I hope this has helped you.


Regards




stan ioan-eugen escribió:
> În data de Ma, 25-08-2009 la 08:47 +0900, Masaki Katakai a scris:
>   
>> Hi Eugen,
>>
>> http://translatedfiles.netbeans.org/servlets/ReadMsg?list=dev&msgNo=5548
>>
>> Please check the references again which I sent before.
>>
>> Let's clone release67_fixes and release67_fixes/l10n.
>> You need to put your files into l10n/src/<lang>.
>>
>> Regards,
>> Masaki
>>
>> 09.8.25 5:30 AM, stan ioan-eugen wrote:
>>     
>>> Hello,
>>>
>>> I need help building netbeans locales. I did the following:
>>>
>>> hg clone http://hg.netbeans.org/main-golden and ant in the main-golden
>>> folder. A few hours and it's stil compiling. 
>>> How do I build the locale data? Where do I put the files I modiffied? 
>>>
>>>
>>> Thanks,
>>>
>>> --eugen
>>>
>>>       
>
>
> I get BUILD FAILED
>
>  [mkdir] Created
> dir: /home/ieugen/lucru/release67_fixes/ide.ergonomics/build/classes/org/netbeans/modules/ide/ergonomics/apisupport
>   [nbmerge] Failed to build target: all-ide.ergonomics
>
> BUILD FAILED
> /home/ieugen/lucru/release67_fixes/nbbuild/build.xml:677: The following
> error occurred while executing this line:
> /home/ieugen/lucru/release67_fixes/nbbuild/build.xml:672: The following
> error occurred while executing this line:
> /home/ieugen/lucru/release67_fixes/nbbuild/build.xml:719: The following
> error occurred while executing this line:
> /home/ieugen/lucru/release67_fixes/ide.ergonomics/build.xml:111: The
> following error occurred while executing this line:
> /home/ieugen/lucru/release67_fixes/ide.ergonomics/build.xml:205: /home/ieugen/lucru/release67_fixes/nbbuild/netbeans/apisupport1/${ergonomic.clusters.extra} not found.
>
>
> Can i do something to get over it?
>
>  
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.