1,651
edits
m (→Locale) |
|||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
'''See: [[Language_in_CumulusUtils#Trouble_in_Paradise|Trouble in Paradise]].''' | '''See: [[Language_in_CumulusUtils#Trouble_in_Paradise|Trouble in Paradise]].''' | ||
Any entry of | Any entry of an illegal locale code will trigger an error and fall back to the default en-GB. | ||
Both the [[CumulusUtils Gauges]] and the [[CumulusUtils Graphs]] (made with [https://www.highcharts.com/ HighCharts]) have their own language subsystem. If anywhere the languages don't match it is seen as an error with a fall back to the default of en-GB. The gauges language file (''language.js'') is part of the gauges subsystem but can be modified in concertation with [https://cumulus.hosiene.co.uk/memberlist.php?mode=viewprofile&u=2711 Mark Crossley] who then will put it back into the gauges repository and I will take it up in the ''CumulusUtils'' distribution. An example of this is the the now presence of two Norwegian languages. | Both the [[CumulusUtils Gauges]] and the [[CumulusUtils Graphs]] (made with [https://www.highcharts.com/ HighCharts]) have their own language subsystem. If anywhere the languages don't match it is seen as an error with a fall back to the default of en-GB. The gauges language file (''language.js'') is part of the gauges subsystem but can be modified in concertation with [https://cumulus.hosiene.co.uk/memberlist.php?mode=viewprofile&u=2711 Mark Crossley] who then will put it back into the gauges repository and I will take it up in the ''CumulusUtils'' distribution. An example of this is the the now presence of two Norwegian languages. | ||
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 languages defined and accepted are: | The current languages defined and accepted are: | ||
EN, FR, DE, NL, SE, | EN, FR, DE, NL, SE, DA, FI, NN, NB, IT, ES, CT, GR, PT, CS, PL | ||
== Output == | == Output == | ||
Line 27: | Line 29: | ||
== Locale == | == Locale == | ||
From version 6.19.0 the ''Locale'' has become the central parameter and is defined through the ''Language'' parameter e.g. Language=nl-NL (unfortunate but historically determined). | |||
If the ''locale'' is invalid, it is defaulted to ''en-GB''. | |||
The ''Locale'' determines the ''language'' and ''country'' settings for ''CUtils''. All module and website output of dates and numbers are governed by the ''Locale''. The user has no other configuration possibility to choose forrmat of dates and numbers. It is what it is. | |||
== Trouble in Paradise (for version < 7.0.0) == | == Trouble in Paradise (for version < 7.0.0) == |