[TYPO3-50-general] Locale representation in folder Meta/Documentation/Manual

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Apr 20 22:08:36 CEST 2008


David Bruehlmeier schrieb:
> Hi,
> 
> the Reference requires a new folder for each locale in
> the Meta/Documentation/Manual folder:
> 
> http://flow3.typo3.org/documentation/reference/packages/
> 
> The example given is Manual/en_EN/.
> 
> I'm not sure where _EN comes from, so I did a little research.
> 
> There does not seem to be a standard "everybody" agrees on, but the
> greatest common denominator seems to be:
> 
>   Locale = [LanguageCode] ["_" TerritoryCode] ["_" Variant];
>   LanguageCode = (* ISO 639-2 Two Letter Code [1] *);
>   TerritoryCode = (* ISO ISO 3166-1-alpha-2 Two Letter Code [2] *);
>   Variant = (* POSIX, WIN, etc. Not strictly standardized *);

Where did you find locales with the variant separated by a second 
underscore? The only ones I found use the @ (at) symbol for that and a . 
(dot) to signify the encoding.

eg de_DE at euro or de_AT.utf-8

> 
> Valid examples would be:
> "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr__MAC"

I don't think that _GB is valid as there is no language part which is 
IMHO mandatory.

> I did not find a standard which would allow "en_EN" as locale. The 
> second part of the locale always represents a "Territory" and there is 
> no "EN" in ISO 3166.

Correct. It's usually GB or US that you'll use.

> I propose to use the following definition for FLOW3, leaving out the 
> "Variant" part and strictly requiring the LanguageCode:

Ah.

>   Locale = LanguageCode ["_" TerritoryCode] ["_" Variant];
>   LanguageCode = (* ISO 639-2 Two Letter Code [1] *);
>   TerritoryCode = (* ISO ISO 3166-1-alpha-2 Two Letter Code [2] *);
> 
> This would allow codes like: "en", "en_GB", "de_DE"
> 
> I suggest that the "standard" folder for english documentation is "en", 
> without TerritoryCode (IMO it doesn't matter if the documentation is in 
> British or American English, as long as it's there and it's English).

As the spelling is different I suggest to use one of them and not mingle 
them arbitrarily. I'd choose the British spelling as TYPO3 is more 
centered around Europe.

Masi

PS: For any German documentation I suggest de_DE and the Neue Deutsche 
Rechtschreibung (not that Swiss stuff without an ß that we have now).


More information about the TYPO3-project-5_0-general mailing list