cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

How to create TMX from existing files in 6.0


2008/1/18 : Masaki Katakai

To create TMX for 5.5.1 is described in http://translatedfiles.netbeans.org/docs/HOWTOs/How-to-migrate-5.5.html, it uses
ant prepare
to retrieve English sources. We need this because to create TMX, we use Java .properties Import 1.3 utility, which requires translated files and corresponding English files. However, this ant prepare is no longer supported in release60 branch. So you need another way to get English files.

If you have English sources when you translated, it's easy. Put the your translated files and English sources together in the same directory, and just run Java .properties Import 1.3 utility.

If you don't have English sources and just can get translated files from cvs, you need to do the following steps.

1. Get English sources from l10n-kit


l10n-kit is located in http://wiki.netbeans.org/wiki/view/NB6L10nKit. Get the entire files from that page. The direct URL is below.


This is the latest l10n-kit.

2. Get Translated files from cvs


If you don't have translated files, you can get them from cvs.netbeans.org. For the CVS instruction, please refer NetBeans CVS page.
% cvs checkout -r release60 translatedfiles/src
You can use NetBeans IDE to get them or try cvs command like above.

3. Unzip l10n-kit and prepare directories


When you unzip the entire l10n-kit combined-entire-msg.omegat.zip, you can see these two directories.
README.txt
combined-entire/
combined-entire.omegat/
combined-entire contains all English files. Please copy all directories to translatedfiles/src. Now you can see an English file and all translated files in the same directory like this. It's ready to run Java .properties Import 1.3 utility!!

translatedfiles/src/ide/branding/Bundle.properties
translatedfiles/src/ide/branding/Bundle_de.properties
translatedfiles/src/ide/branding/Bundle_es.properties
translatedfiles/src/ide/branding/Bundle_ja.properties
translatedfiles/src/ide/branding/Bundle_pl.properties
translatedfiles/src/ide/branding/Bundle_pt_BR.properties
translatedfiles/src/ide/branding/Bundle_zh_CN.properties
...


4. Run Java .properties Import utility


Now run the Java .properties Import 1.3 utility against the translatedfiles/src directory to generate a TMX file. There you should specify:

(1) translatedfiles/src as a source directory to take bundles from

(2) your language

(3) place to put resulting TMX file 


If you have trouble preparing it, please send a request to dev@translatedfiles.netbeans.org.
Team members can offer assistance.



Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems