Language in CumulusUtils: Difference between revisions

m
Line 19: Line 19:


== Output ==
== Output ==
The language setting triggers the creation of the a file with the name ''CUstringsXX.ini'' where XX stands for the language code as above - you will always find the file CUstringsEN.ini as the default language file. This file resides in the ''CumulusMX'' directory (all inifiles are in the ''CumulusMX'' directory). This file is referred to as the ''language file'' and upon creation it contains strings which will be shown in a website page in the original English version e.g.  
The language setting triggers the creation of a file with the name ''CUstringsXX.ini'' where XX stands for the language code as above - you will always find the file CUstringsEN.ini as the default language file. This file resides in the ''CumulusMX'' directory (all inifiles of CumulusUtils are in the ''CumulusMX'' directory). This file is referred to as the ''language file'' and upon creation it contains strings which will be shown in a website page in the original English version e.g.  
     Temperature=Temperature
     Temperature=Temperature
The word before the '=' is the tag, the word after is the actual text used and the text to be translated. Not all strings will be present in the file on the first run because of configuration choices. So translation may be done in phases.
The word before the '=' is the tag, the word after is the actual text used and the text to be translated. Not all strings will be present in the file on the first run because of configuration choices. So translation may be done in phases.


The format of the file when created is in '''[[Encoding in CumulusUtils|UTF-8]]''' so any weird character your language has will be accepted. Just make sure that, after editing the translation, the file is saved as '''[[Encoding in CumulusUtils|UTF-8]]'''.
The format of the file when created is in '''[[Encoding in CumulusUtils|UTF-8]]''' so any weird character your language has will be accepted. Just make sure that, after editing the translation, the file is saved as '''[[Encoding in CumulusUtils|UTF-8]]'''. No specific HTML codes are required.


== Locale ==
== Locale ==