[TYPO3-core] RFC: Bug #16919: Catalan flag is replaced by Canadian flag

Alexandre Gravel-Raymond a.gravel-raymond at alienor.net
Fri Jan 14 10:45:35 CET 2011


Hi,

Le 14/01/2011 10:33, Ernesto Baschny [cron IT] a écrit :
> Thanks for the pointer, Alexandre! Now I see why this is all wrong to
> start with:
>
> The "flags" in TYPO3 core are 2-letter ISO codes for the *countries*,
> not languages! In sys_language, they have to be manually linked to a
> language. The misuse as "language 2 char code" as a "language code"
> (like done in the new EM) is wrong.
>
> The same situation can be seen now in the EM for "Arabic", which has the
> "Argentinian" (ar) flag, "Chinese" having the Swiss flag (ch) and many
> more which I might not even recognize spontaneously.
>
> So I would say we keep the flag system using the 2 letter ISO code of
> the country and a speaking name for "regions" (like "catalonia"), and
> then make the EM use some kind of mapping from a "language" to a "flag".
> The mapping could be located in t3skin, which is the one that ships with
> these flags. I'll try to come up with a patch for it later on.

Yep, I came to the same conclusion with the help of Steffen, but I think 
the other solution may be even better (remove the "default language 
flag" concept altogether), because a specific language is not 
necessarily associated with a single flag.

A speaker from the United States may not want to have a United Kingdom 
flag to represent his language, and inversely. This is a situation for 
many major languages and a lot of less spoken languages too.

--
Alexandre Gravel-Raymond
Developer, Aliénor.net


More information about the TYPO3-team-core mailing list