-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Translating to Other Languages
Note: I am no longer accepting new localizations. This page just documents how things used to work.
Terminal Emulator for Android has been localized for these locales:
- U.S. English <-- this is the default.
- Basque (eu)
- Czech (cz)
- Dutch (nl)
- French (fr)
- Georgian (ka)
- German (de)
- Hungarian (hu)
- Italian (it)
- Japanese (ja)
- Korean (ko)
- Norwegian (Bokmål) (nb)
- Polish (pl)
- Portuguese (pt)
- Portuguese (pt-rPT)
- Romanian (ro)
- Russian (ru)
- Simplified Chinese (zh-rCN)
- Spanish (es)
- Slovak (sk)
- Swedish (sv)
- Traditional Chinese (zh-rTW)
- Turkish (tr)
- Ukrainian (uk)
All of these translations (besides American English) have been provided by volunteers. More translations and improved translations are gratefully accepted.
You don't have to be a programmer to create the translations, all you need is a text editor, some knowledge of technical English, and of course knowledge of the technical version of your own language.
Android localization is done primarily using localized versions of XML files stored in the res/values* directories of the source tree. Please read the official documentation on Android Resource Localization
All that you need to do to localize Terminal Emulator for Android into a new language is make a copy of the res/values directory and update the strings (about 100) that are stored in those files. Then recompile Terminal Emulator for Android to include your new translation. (And please send the new or updated localization files to me so I can include them in the official build of Terminal Emulator for Android.)
Unfortunately my foreign language skills are very weak. "Guten Tag!" and "Ni Hao" are about all I know. That means I have to rely on the kindness of strangers for the localized versions of Terminal Emulator for Android.
As new features are added to Terminal Emulator for Android, I add the English strings for the new user interface features are added to files in the "res/values" directory.
When a new string is added, it appears (in English) in all translations. In order to appear in the localized language, the same string needs to be added to the corresponding file in the res/values-XX directory, where "XX" is the locale code. (That's the letters that appear in parentheses in the list of supported locales.
Note: I am no longer accepting new localizations. This just documents how things used to work.
First, send me an email so I know you're working on it!
The process is slightly different depending upon whether you are improving an existing localization or creating a brand new localization.
Android resource files are encoded using the UTF-8 character set. If possible, please use a text editor that can read and write UTF-8 encoded files to edit the resource files. For example, on Windows you should use an editor like the free (Notepad++)[http://notepad-plus-plus.org/] editor. Or try the free test version of (Sublime Text 2)[http://www.sublimetext.com/2], which works on Windows, Mac OS and Linux.
If you can't do this, no worries, send me your files anyway, and I'll do my best to convert them into UTF-8.
To improve an existing localization you'll need both the English version of the files as well as the existing localized versions of the files.
-
Download these two files (they are the U.S. English version of the UI:
-
Download the corresponding two files for your locale. (instead of XX use your locale's locale code).
-
Edit the localized files to add the new strings from the original English files.
-
Email the localized copies of those files to jack.palevich@gmail.com
To contribute a new localization for the Terminal Emulator for Android, please:
-
Download these two files:
-
Edit those two files to change the English strings to your language strings.
-
Email the localized copies of those files to jack.palevich@gmail.com
Alternately, if you know how to use github and write Android applications, you can fork the Terminal Emulator for Android project, add the localization to your fork, build and test the fork to make sure that it works, and send me a pull request:
-
Clone the Terminal Emulator for Android git repository:
$ git clone git://github.com/jackpal/Android-Terminal-Emulator.git
-
Edit the appropriate res/values-* files. (For example res/values-de has the German (Deutsch) localization.) You will need to manually look through the corresponding U.S. English res/values files to find out what strings are missing.
-
Build and test Terminal Emulator for Android to make sure that you new translation works.
- See docs/Building.txt for instructions on how to build Terminal Emulator for Android.
-
Send me the changes you made, either as a "diff", a "patch" or as a "github pull request".
If you open the first file, arrays.xml, in a text editor you will see that it starts like this:
<resources>
<string-array name="entries_statusbar_preference">
<item>Show status bar</item>
<item>Hide status bar</item>
</string-array>
In this section of text you only need to localize the "Show status bar" and "Hide status bar" text. Here is the same section of the file, "localized" by being changed to upper case:
<resources>
<string-array name="entries_statusbar_preference">
<item>SHOW STATUS BAR</item>
<item>HIDE STATUS BAR</item>
</string-array>
Back to Home page for the Terminal Emulator for Android Wiki