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

Alexandre Gravel-Raymond a.gravel-raymond at alienor.net
Wed Jan 5 14:49:05 CET 2011


Hi everybody,

This is a SVN patch request.

Type: Bugfix
Bugtracker reference: http://bugs.typo3.org/view.php?id=16919
Branch: trunk

Disclaimer: I'm Canadian.

Problem:
In the new Extension Manager, in the Translation Handling tab, the flag 
representing the Catalan language is the Canadian flag. It should be the 
flag of Catalonia.

Solution:
The reason for this is that the Catalan and Canadian flags do not 
respect the implicit naming convention of flags :
Until now, all flags that correspond to a language are named like this : 
"[ISO code].png" and "[ISO code]-overlay.png".
All flags that do not correspond to a language (i.e. Wales or European 
Union) are named like this : "[Country or region name].png" and [Country 
or region name]-overlay.png".

But the Catalan flag is named "catalonia.png" even if it correspond to a 
language and the Canadian flag is named "ca.png" (CA being the country 
iso-code but there is indeed no such thing as a Canadian language).

The patch change the CSS classes in 
typo3\sysext\t3skin\stylesheets\sprites\flags.css, corrects the 
available flag keys in ext_tables.php, and corrects the call to 
t3lib_SpriteManager::addIconSprite() to point to the right icon files.

I did not manage to include the file renamings in the included patch, so 
please change the following (in typo3\sysext\t3skin\images\flags\) :
- ca.png -> canada.png
- ca-overlay -> canada-overlay.png
- catalonia.png -> ca.png
- catalonia-overlay -> ca-overlay.png

Happy New Year and Visca Catalunya Lliure!

--
Alexandre Gravel-Raymond
Developer, Alienor.net


More information about the TYPO3-team-core mailing list