How to translate My Money
From MTHWiki
m |
|||
Line 53: | Line 53: | ||
Once done simply save the file with the new name, for example mymoney_localized_fr_FR.properties | Once done simply save the file with the new name, for example mymoney_localized_fr_FR.properties | ||
+ | |||
+ | If you would like to quickly test your file then please switch My Money into French locale through Properties/Languages, | ||
+ | save changes and restart the application, your file should be picked up as a default language file now. | ||
==== Translating Default Categories ==== | ==== Translating Default Categories ==== |
Revision as of 03:12, 21 March 2008
Contents |
Translating My Money into other languages
Translating My Money into a new language is actually quite easy
All of language resources are kept in just 2 files
- install-dir\config\mymoney_localized_en_US.properties and
- install-dir\config\mymoney_localized_categories_en_US.csv
So for for example, on Windows these files would be found in
- C:\Program Files\MTH\My Money\config\
On a Mac these files are inside of the MyMoney.app application bundle and on Linux they are in /usr/share/MyMoney-2.0/config
The File Naming Convention
We follow ISO 639 for Language Codes and ISO 3166 for Country Codes.
The file name is a combination of mymoney_language_Country, so a UK English files will be named mymoney_en_UK and French will be mymoney_fr_FR
How to Translate
Open install-dir\config\mymoney_localized_en_US.properties' into any text editor that supports your language.
This .properties file is just a text file that has name=value pairs,
For example, this is a fragment from the default US English file:
# Buttons
#
button.ok=Ok
button.cancel=Cancel
button.previous=<< Previous
button.next=Next >>
To translate this to French simply change the translated text, for example:
# Buttons
#
button.ok=Ok
button.cancel=Annuler
button.previous=<< Précedent
button.next=Suivant >>
Please ignore lines starting with #, those are comments.
Once done simply save the file with the new name, for example mymoney_localized_fr_FR.properties
If you would like to quickly test your file then please switch My Money into French locale through Properties/Languages, save changes and restart the application, your file should be picked up as a default language file now.
Translating Default Categories
Similar to the properties file mymoney_localized_categories_en_US.csv is simply a text file. You can open it up in any text editor or Excel.
The file look like the following:
-1,905,Expense Categories,,
-1,2,,Alimony,
-1,3,,Automobile,
3,4,, ,Car Payment
3,5,, ,Gasoline
-1,6,, ,Maintenance
-1,900,,Bank Charges,
900,901,, ,Interest Paid
900,9,, ,Service Charge
When translating the file please don't change the keys, such as -1, 905, etc. Simply translate the text. If you are editing with Excel please make sure that the file is saved back with as CSV, not Excel binary format.
If you are done and would like us to include your version in the next build please email us your files for review. Please mention the platform you're working on and the language you have translated the file to.
We will double check your translation and will include it in the next build of My Money.