Changes

Jump to navigation Jump to search
478 bytes added ,  12:51, 11 December 2012
no edit summary
It is easy to translate BaseX into your native language! This is how you can proceed:
==Using Working with the JAR filesources==JAR files are nothing else than ZIP archives.All language files are placed in the <code>lang</code> directory inside the JAR file:# Unzip the source file <code>English.lang</code> and rename it to your target language (e.g. <code>Zulu.lang</code>)# 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 <code>lang</code> 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 If you have downloaded all BaseX sources==All language files are placed in the <code>srcvia [[http:/main/resourcesdocs.basex.org/lang<wiki/code> directory of the main projectIntegrate|Eclipse]] or [[http:# Create a copy of the source file <code>English.lang</code> and rename it to your target language (e.g/docs. <code>Zulubasex.lang<org/code>)# Enter your name and potential contact information in the second line and translate all texts# Copy the translated file back to the <code>lang<wiki/code> directory. Your new language file will be automatically scanned.# Recompile the projectMaven|Maven]], start BaseX and choose your language in the GUI (''Options'' → ''Preferences...'')# Restart BaseX to see the changesyou may proceed as follows:
All language files are placed in the <code>[https://github.com/BaseXdb/basex/tree/master/src/main/resources/lang src/main/resources/lang]</code> directory of the main project:# Create a copy of an existing translation file (e.g., <code>English.lang</code>) and rename it to your target language (e.g. <code>Hawaiian.lang</code>)# Enter your name and contact information in the second line# If you are using Eclipse, refresh the project (via ''Project'' → ''Refresh''); if you are using Maven, type in {{Code|mvn compile}}. Your new language file will be automatically detected.# Start the BaseX GUI, choose your language via ''Options'' → ''Preferences...'' and close the GUI# Translate the texts in your language file and restart BaseX in order to see the changes# Repeat the last step if you want to revise your translations ==Updating BaseX.jar== You may as well directly add new languages to the JAR file. JAR files are nothing else than ZIP archives, and all language files are placed in the <code>lang</code> directory int the JAR file: # Unzip an existing translation file (e.g., <code>English.lang</code>) and rename it to your target language (e.g. <code>Hawaiian.lang</code>)# Enter your name and contact information in the second line and translate the texts# Update your JAR file by copying the translated file into the zipped <code>lang</code> directory. Your new language file will be automatically detected.# Start BaseX.jar, choose your language via ''Options'' → ''Preferences...'' and restart BaseX to see the changes You may also change the language in the <code>.basex</code> configuration file,
which is placed in your [[Configuration|home directory]].
To In order to see where the all text keys are used within BaseX, we recommend you to may temporarily
set the [[Options#LANGKEY|LANGKEY]] option to <code>true</code>.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu