Translations

From BaseX Documentation
Revision as of 13:22, 31 March 2011 by CG (talk | contribs) (Created page with "BaseX is available in several languages (such as English, German, or Japanese). We are always thankful for contributions, and if you willing to contribute a new translation, plea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

BaseX is available in several languages (such as English, German, or Japanese). We are always thankful for contributions, and if you willing to contribute a new translation, please 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.

  1. Unzip the source file English.lang and name it to your language (e.g. Zulu.lang)
  2. Enter your name and potential contact information in the second line and translate all texts
  3. Copy the translated file back to the lang directory in the JAR file
  4. Start BaseX and choose your language in the GUI (OptionsPreferences...)
  5. Restart BaseX, and you should see the changes

Using the sources

All language files are placed in the src/main/resources/lang directory of the main project:

  1. Create a copy of the source file English.lang and name it to your language (e.g. Zulu.lang)
  2. Enter your name and potential contact information in the second line and translate all texts
  3. Translate all given texts
  4. Compile the project, start BaseX and choose your language in the GUI (OptionsPreferences...)
  5. Restart BaseX, and you should see the changes

To see where the texts are used within BaseX, it is recommended to set the LANGKEYS property in the .basex configuration file to true. You will find the file in your Configuration#Home_Directory home directory.