HowTo translate Redmine in your own language » History » Revision 14
« Previous |
Revision 14/27
(diff)
| Next »
Azamat Hackimov, 2010-04-03 12:28
HowTo translate Redmine in your own language¶
Redmine can easily be translated in any language.
There are a few things to translate:
- The main lang file, located at
/config/locales
in current trunk (or/lang
for 0.8.x releases) - The calendar lang file, located in
/public/javascripts/calendar/lang
- The wiki toolbar lang file, located in
/public/javascripts/jstoolbar/lang
Say you want to translate Redmine in Finnish (fi
as defined in the IANA Language Subtag Registry):
- Copy
/config/locales/en.yml
tofi.yml
and translate every strings this file contains. - Copy
/public/javascripts/calendar/lang/calendar-en.js
tocalendar-fi.js
and translate every strings this file contains (mainly day and month names). - Copy
/public/javascripts/jstoolbar/lang/jstoolbar-en.js
tojstoolbar-fi.js
and translate the strings. - Test your translation with command
rake test
If you get errors related to gloc/locales, you must fix them.
All these files must be UTF-8 encoded. Do not use HTML entities in translated strings.
Check that your files not have BOM (Byte-order mark). BOM can be removed with command:
awk '{if(NR==1)sub(/^\xef\xbb\xbf/, "");print}' < oldfile > newfile
You can submit your translation here (login required) if you want it to be added to the next release.
As of 2009-02-21, only updates based on the new translation files (found in /config/locales
) should be submitted.
Updates to the language files¶
File en.yml
acts as the main language file. You can check if it has new strings by running:
rake locales:update
This copies the new strings to other translation files (with the English translation as default value).
Updated by Azamat Hackimov over 14 years ago · 14 revisions