Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Translation langconfig: Difference between revisions

From MoodleDocs
Line 18: Line 18:


===iso6391,core_langconfig===
===iso6391,core_langconfig===
The ISO 639.1 value for your language. You can find this value easily on Wikipedia.
===iso6392,core_langconfig===
===iso6392,core_langconfig===
===labelsep,core_langconfig===
===labelsep,core_langconfig===

Revision as of 14:09, 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

The alphabet in your language. Used e.g. for the list of letters on the participants page.

backupnameformat,core_langconfig

decsep,core_langconfig

How decimals are separated in your language. Usually a dot or a comma.

Example:

* English: 36.5
* Dutch: 36,5

firstdayofweek,core_langconfig

The first day of the week in your language. Allowed values are 0,1,2,3,4,5,6, where 0 stands for Sunday.

iso6391,core_langconfig

The ISO 639.1 value for your language. You can find this value easily on Wikipedia.

iso6392,core_langconfig

labelsep,core_langconfig

listsep,core_langconfig

locale,core_langconfig

locale for *nix servers.

If your Moodle calendar is not translated, then this string is wrong (or your server is not configured to support the language)

localewin,core_langconfig

locale for Windows servers.

If your Moodle calendar is not translated, then this string is wrong (or your server is not configured to support the language). There are quite a few languages that are not supported by Windows servers and the localewin server can not be set. In that case, you have to run your Moodle on a *nix server to make the translation of your Moodle calendar work

localewincharset,core_langconfig

The character set to use when Moodle is installed on a Windows server

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

In which direction your language should be displayed on the screen. Possible options are ltr (left to right) or rtl (right to left)

thisdirectionvertical,core_langconfig

How text that is printed vertical on the screen is oriënted (like in a docked block).

Values can be btt (bottom to top) or ttb (top to bottom)

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). If you want a space, you can try with   but that is not fully tested yet.

Example:

* in Dutch 1.000.000 (with a dot)
* in English 1,000,000 (with a comma)