[TYPO3-core] RFC #15666: HCI: SysLanguage Table Icon should be the flag you selected

Ernesto Baschny [cron IT] ernst at cron-it.de
Sat Nov 13 00:10:33 CET 2010


Ernesto Baschny [cron IT] schrieb am 13.11.2010 00:08:
> Xavier Perseguers schrieb am 30.10.2010 14:54:
> 
>> Steffen Ritter wrote:
>>> Hey list,
>>> attached v2 like discussed on T3CSS10
>>
>> v3 with CGL applied.
> 
> Hi,
> 
> I created v4:
> 
> 1) it wasn't working, because modifying the TCA of sys_language in
> t3skin's ext_tables.php required a loadTCA before => added
> 
> 2) I transformed the huge array like suggested by Steffen K
> 
> 3) When upgrading a site which already has flags, the sys_language
> "flag" field was filled with the .gif filename (e.g. "at.gif"), which
> was not matching a sprite flag afterwards (editing such a record yielded
> in "[ INVALID VALUE ("at.gif") ]"). Solution was adding an Upgrade
> Wizard item which transforms the sys_language to the new system.
> 
> 
> How to test:
> 
> 1) Create sys_language records in your root. Use the attached .sql file
> as a convenience to create languages with all flags that were available
> before.
> 
> 2) Apply the patch v4
> 
> 3) delete your config-cache (typo3conf/temp*)
> 
> 4) Check with Web>List the root folder, see if the the language entries
> got correct flags (see attachment 15666-flag-after.gif)
> 
> 
> To restore your setup to the previous state, use the following SQL:
> 
>   UPDATE sys_language SET flag=CONCAT(flag, '.gif');

Note that the "es-basque" flag which we used to have is missing in the
famfam sprite, this is probably only a minor cosmetical issue.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list