Creating language packs for Capivara
Creating language packs in Unicode is a time consuming job. Fortunately, there are tools which make it pretty easy. If you are familiar with Eclipse then install the Eclipse Property File Editor (http://epfe.sourceforge.net). Otherwise, I recommend to edit language packs with Popeye (http://popeye.sourceforge.net).
Edit language packs with Popeye
Steps to create a new locale pack:
- Install the source code of Capivara
- Install popeye
- Start popeye
java -jar PATH_TO_POPEYE/langproper.jarand load file MessageBundle.properties
- Create a new property file with the correct locale name. The name of your locale (e.g. fr_FR) can be found for example on http://java.sun.com/j2se/1.4.2/docs/guide/intl/locale.doc.html. You then need to create an empty file in directory src/net/sf/jfilesync/prop/bundles. For French, you would create a file called MessageBundle_fr_FR.properties.
- Then you just need to translated each key and save it. Take special care of placeholders like %l or %d. These have to be kept in the translation.
- You can now test your own translation by copying the new file to .jfilesync/locales in your HOME directory. After starting Capivara, you can now select the new language. (Restarting is required.)
It is supposed to look similar to this