
Languages files are simple text files that need to be translated. The lines that start with '#' are comments and are ignored. You need to uncomment and tranaslate the lines with #xxx=xxxxxx xxx. Then you must save the lng file inside Langs Directory to be read by teen spirit.
Creating a new language
- Open Teen Spirit. Go to Options / Language dialog.
- Press "Create". A new language file will be created.
- Save it as (example) "Greek.lng"
- Open "Greek.lng" with a text editor like notepad.exe
- Enter optional info in the lines that start with @
- Replace the english text with the one in your language. Then remove the # (comment sign) from the front of the string. example "#103=Album" should become "103=Δίσκος"
- Save it to "Langs" folder
- Test it by going to TeenSpirit / Options / Language and selecting it.
- Post it to the forum.
Update an existing language
- Open Teen Spirit. Go to Options / Language dialog.
- Select the language you want to update (example "Greek"). Press "Update". A new language file will be created.
- Save it as (example) "MyGreek.lng"
- Open MyGreek.lng with a text editor like notepad.exe
- Search for untrnaslated or (bad translated) strings and translate them. English originals are commented (with # sign) for comparison.
- Save it to "Langs" folder
- Test it by going to TeenSpirit / Options / Language and selecting it.
- Post it to the forum.
Warnings
- Translation strings are ONE-LINERS
- DO NOT REMOVE OR ADD "%s" (strings) "%d" (integers) and other "%x" from strings as they placeholders for values. (Teen spirit may become unstable).
- Watch for special characters like '\r\n' or '\n' which means new line.
- Take care of the HTML Tags (Teen spirit may become unstable)
Ask for help
You may email me or better ask for help in the forum if you have any questions.