[Typo3-dev] mapping of Typo3 languages to iso codes
Martin Poelstra
martin at beryllium.net
Thu Apr 29 12:17:53 CEST 2004
Hi Kari,
> And I want that Default language is Finnish......
Exactly! That's why I want to have this configurable.
> Stop now boys. Default language is and will be English. This means also
> that all extensions should use default language English and all other
> contexts in Typo3 otherwise it'll stupid to continue common efforts to
> develop Typo3 further.
No! Of course, English should be the default language for many things.
But consider this:
If an extension wants to generate a list of available (Frontend!!)
languages, this list is looked up in the sys_language-table. The problem
is, that because of the AUTO_INCREMENT id, there can be no id 0, so I
can't just insert a record with id 0 to represent the settings of that
language, which happens to be the default.
So the page-module, and some others, just prepend a 'hardcoded' entry
named 'Default' to that list.
One solution would be to just disable language-id 0 altogether
(optionally of course), which would also have some other very nice
side-effects, but is most likely not the wanted solution because of some
nasty dis-advantages.
A simpler solution would be to somehow assign 'some' language-record to
this default id 0.
So, I'm NOT talking about changing the backend-UI-languages or whatever.
I'm just talking about the languages defined in the sys_language-table.
> Have a nice 1st of May,
Have a nice 'Koninginnedag'! :)
Grtz,
Martin
More information about the TYPO3-dev
mailing list