Difference between revisions of "Translations"
Line 2: | Line 2: | ||
It describes how to translate BaseX into other (natural) languages. | It describes how to translate BaseX into other (natural) languages. | ||
− | BaseX is currently available in seven languages, namely English, German, Japanese, French, Italian, Dutch, Vietnamese and Mongolian. | + | BaseX is currently available in seven languages, namely English, German, Japanese, French, Italian, Dutch, Vietnamese and Mongolian.<br/> |
It is easy to translate BaseX into your native language! You may proceed as follows: | It is easy to translate BaseX into your native language! You may proceed as follows: | ||
Revision as of 00:53, 1 February 2012
This page is part of the Developer Section. It describes how to translate BaseX into other (natural) languages.
BaseX is currently available in seven languages, namely English, German, Japanese, French, Italian, Dutch, Vietnamese and Mongolian.
It is easy to translate BaseX into your native language! You may proceed as follows:
Using the JAR file
JAR files are nothing else than ZIP archives.
All language files are placed in the lang
directory inside the JAR file:
- Unzip the source file
English.lang
and rename it to your target language (e.g.Zulu.lang
) - Enter your name and potential contact information in the second line and translate all texts
- Update your JAR file by copying the translated file into the zipped
lang
directory. Your new language file will be automatically scanned. - Start BaseX and choose your language in the GUI (Options → Preferences...)
- Restart BaseX to see the changes
Using the sources
All language files are placed in the src/main/resources/lang
directory of the main project:
- Create a copy of the source file
English.lang
and rename it to your target language (e.g.Zulu.lang
) - Enter your name and potential contact information in the second line and translate all texts
- Copy the translated file back to the
lang
directory. Your new language file will be automatically scanned. - Recompile the project, start BaseX and choose your language in the GUI (Options → Preferences...)
- Restart BaseX to see the changes
You may as well change the language in the .basex
configuration file,
which is placed in your home directory.
To see where the all text keys are used within BaseX, we recommend you to temporarily
set the LANGKEY option to true
.