Translation langconfig: Difference between revisions
Line 18: | Line 18: | ||
===parentlanguage,core_langconfig=== | ===parentlanguage,core_langconfig=== | ||
If your language pack relies on another one, then this is the place to point out which language pack. | If your language pack relies on another one, then this is the place to point out which language pack. For most language packs, this should be left empty, to default to English if strings are missing. | ||
Example: Spanish for Argentina is mostly the same as Spanish apart from a few changes. Creating a language pack with as parent language Spanish will shop Spanish if a string does not exist in the language pack Spanish for Argentina. If a string doesn't exist in both language packs, English is shown. | Example: Spanish for Argentina is mostly the same as Spanish apart from a few changes. Creating a language pack with as parent language Spanish will shop Spanish if a string does not exist in the language pack Spanish for Argentina. If a string doesn't exist in both language packs, English is shown. |
Revision as of 13:45, 5 April 2012
Langconfig is an important file in a language pack, dealing with all the configuration parameters of that language. It is good practice to review this first when starting of a new language pack or when taking on responsability of an existing language pack. You can edit it by going to lang.moodle.org and find it as the core_langconfig compontent for your language.
On this page you find a little documentation for each setting to help you deciding what should go there for your language
alphabet,core_langconfig
backupnameformat,core_langconfig
decsep,core_langconfig
firstdayofweek,core_langconfig
iso6391,core_langconfig
iso6392,core_langconfig
labelsep,core_langconfig
listsep,core_langconfig
locale,core_langconfig
localewin,core_langconfig
localewincharset,core_langconfig
oldcharset,core_langconfig
Necessary to upgrade from prior to 1.6. This string defines the charset used in 1.5 and earlier for this language pack. For language packs that start later then Moodle 1.5, this can be left empty
parentlanguage,core_langconfig
If your language pack relies on another one, then this is the place to point out which language pack. For most language packs, this should be left empty, to default to English if strings are missing.
Example: Spanish for Argentina is mostly the same as Spanish apart from a few changes. Creating a language pack with as parent language Spanish will shop Spanish if a string does not exist in the language pack Spanish for Argentina. If a string doesn't exist in both language packs, English is shown.
On the download page for the language packs (http://download.moodle.org/langpack) you can see how many strings are different from the parent language pack.
strftimedate,core_langconfig
strftimedatefullshort,core_langconfig
strftimedateshort,core_langconfig
strftimedatetime,core_langconfig
strftimedatetimeshort,core_langconfig
strftimedaydate,core_langconfig
strftimedaydatetime,core_langconfig
strftimedayshort,core_langconfig
strftimedaytime,core_langconfig
strftimemonthyear,core_langconfig
strftimerecent,core_langconfig
strftimerecentfull,core_langconfig
strftimetime,core_langconfig
thisdirection,core_langconfig
thisdirectionvertical,core_langconfig
thislanguage,core_langconfig
The name of your language in your own language
thislanguageint,core_langconfig
The name of your language in English
thousandssep,core_langconfig
How you separate thousands in your language. Important: this can not be a space (more information in discussion http://lang.moodle.org/mod/forum/discuss.php?d=1450#p1730).
Example:
* in English 1.000.000 (with a dot) * in Dutch 1,000,000 (with a comma)