Language in CumulusUtils: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
Undo revision 12431 by HansR (talk)
m (Undo revision 12431 by HansR (talk))
 
The choice has been made to use the [https://docs.microsoft.com/en-gb/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f Windows Language Code Identifier (LCID) Reference] (you will find the codes in this [https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-LCID/%5bMS-LCID%5d.pdf pdf document]) with only the five position codes as valid. So for British English the code '''en-GB''' is used. The first two digits determine the language, the last two digits determine the country and therefore the [https://en.wikipedia.org/wiki/Locale_(computer_software) locale].
 
NOTE: be aware, that using a locale different from the one used for CumulusMX you may run into problems. Especially the abbreviated month names cause trouble because they are used for creating the file names for the monthly log files. If you do not seem to be able to solve the issue, please contact [https://cumulus.hosiene.co.uk/memberlist.php?mode=viewprofile&u=9016 @HansR] on the forum.
'''See: [[Language_in_CumulusUtils#Trouble_in_Paradise|Trouble in Paradise]].''' This is only valid for CMX version 3. Version 4 and 5 no longer have this problem.
 
Any entry of an illegal locale code will trigger an error and fall back to the default en-GB.
 
In CUtils the gauges languages are determined through the locale. If the language from the locale does not exist it falls silently back to en-GB
 
The ''current gauges languages'' defined and accepted are:
EN, FR, DE, NL, SE, DA, FI, NN, NB, IT, ES, CT, GR, PT, CS, PL
 
(so if you use a Swahili sub dialect in CUtils, it will not be present in default for the gauges which will then use en-GB)
 
== Output ==

Navigation menu