[Typo3-dev] en_US and en_GB localization

Stanislas Rolland stanislas.rolland at fructifor.ca
Sat Oct 29 05:15:53 CEST 2005


Martin Kutschker a écrit :
> 
> The problem with en_US vs en_GB is that TYPO3 doesn't distinct these two 
> languages. Perhaps it's enough to add a made-up key in your 
> locallang.php and set up your TS config accordingly.
> 
I used the 'default' sub-array in pi1/locallang.php for the en_GB labels
and a non-standard 'en_US' sub-array for the en_US labels.

If config.language is set to en_US, the front end plugin is correctly
localized with fallback to the en_GB localization. Of course, the 
fallback will only work for variants of English.

Labels of the en_US sub-array may also be overridden in TS template setup.

I think any such non-standard sub-array would have to use iso-8859-1, 
since this is the default that TYPO3 will use whenever the language code 
is unknown.

Unfortunately, but not unexpectedly, the en_US sub-array does not show 
up in the translation tools on typo3.org.

Stanislas







More information about the TYPO3-dev mailing list