Here's how to translate Subsonic to a new language:
1. Find the two-letter ISO-639 code for your language (a list is available at
http://www.loc.gov/standards/iso639-2/englangn.html).
For instance, Italian is assigned the code it.
2. Add the ISO-639 code to the file <TOMCAT_HOME>/webapps/subsonic/WEB_INF/classes/net/sourceforge/subsonic/i18n/locales.txt.
3. In the same directory is the file ResourceBundle_en.properties which is the English translation.
Use this (or any other file) as the basis for your translation. Better yet, use the latest version from the
SVN repository.
4. Create the new resource file, for instance ResourceBundle_it.properties. I recommend saving it outside
Tomcat to make sure it's not accidentally deleted.
5. Translate the text in the new file.
6. If you are using a non-Latin alphabet (e.g., Cyrillic or Japanese), you have to convert the property file to ASCII before deploying it in Tomcat. Use the native2ascii tool which is included in the Java Development Kit. For instance, if you're writing a Macedonian translation (using the Cyrillic alphabet) using UTF-16 character encoding, you must convert it as follows:
native2ascii -encoding utf-16 c:\develop\ResourceBundle_mk.properties <TOMCAT_HOME>/webapps/subsonic/WEB_INF/classes/net/sourceforge/subsonic/i18n/ResourceBundle_mk.properties
7. You have to restart Tomcat for the changes to have effect.
8. When you're done, send the new language file to sindre@activeobjects.no