Difference between revisions of "Translate Amahi"
From Amahi Wiki
Line 1: | Line 1: | ||
We plan to support localization in the upcoming transition to rails 2.3, which has localization support included. | We plan to support localization in the upcoming transition to rails 2.3, which has localization support included. | ||
− | For the time being, here is the [http://git.amahi.org/?p=amahi.git;a=blob;f=platform/platform/html/config/locales/en | + | For the time being, here is the [http://git.amahi.org/?p=amahi.git;a=blob;f=platform/platform/html/config/locales/en.yml;h=05555fc01e55cf7036b1c9cd69c96d843a55683d;hb=HEAD en-US.yml file] set of sentences to translate (in a format called yml, ready for rails 2.3). |
− | (that's formatted) the raw file is at [http://git.amahi.org/?p=amahi.git;a=blob_plain;f=platform/platform/html/config/locales/en-US.yml;hb=HEAD raw en | + | (that's formatted) the raw file is at [http://git.amahi.org/?p=amahi.git;a=blob_plain;f=platform/platform/html/config/locales/en-US.yml;hb=HEAD raw en.yml] |
Basically what the translation consists of is this | Basically what the translation consists of is this | ||
− | * duplicate an original file, change the name to something appropriate (e.g. de.yml for german | + | * duplicate an original file, change the name to something appropriate (e.g. de.yml for german, fr for french) |
* change the strings after the colon to the end of the line for the new language. | * change the strings after the colon to the end of the line for the new language. | ||
Revision as of 04:21, 26 October 2009
We plan to support localization in the upcoming transition to rails 2.3, which has localization support included.
For the time being, here is the en-US.yml file set of sentences to translate (in a format called yml, ready for rails 2.3).
(that's formatted) the raw file is at raw en.yml
Basically what the translation consists of is this
- duplicate an original file, change the name to something appropriate (e.g. de.yml for german, fr for french)
- change the strings after the colon to the end of the line for the new language.
That's it! you can do it by cut and paste or with git:
git clone git://git.amahi.org/amahi.git
cd amahi/platform/platform/html/config/locales
cp en-US.yml de.yml
[edit the file]
git add de.yml
git commit de.yml
Here is how to submit a patch directly with git or you can send the de.yml file by email or post it in the forums.
The original localization thread in the forums.