[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:08:59 CET 2010


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');


Cheers,
Ernesto
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15666-v4.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101113/d97158f8/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15666-flag-after.png
Type: image/png
Size: 15339 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101113/d97158f8/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 15666-createlanguages.sql
Type: text\plain
Size: 3350 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101113/d97158f8/attachment-0001.txt>


More information about the TYPO3-team-core mailing list