[TYPO3-translators] New extension static_info_tables_ga for galician language

Manuel Rego Casasnovas mrego at igalia.com
Wed Aug 8 13:39:56 CEST 2007


Hi Franz,

Manuel Rego Casasnovas escribió:
> I have the next line in my extension static_info_tables_ga:
>
> UPDATE static_languages SET lg_typo3='ga',lg_collate_locale='gl_ES',lg_country_iso_2='ES' WHERE lg_iso_2='GL';
>
>
> And this line put the Typo3 code for the language into the table
> static_language. However the problem is keept.
>
> The problem is in the function getTCAlabelField where the function
> $csConvObj->conv_case('utf-8',$lang,'toLower') returns 'gl_es' for
> galician, but for example for spanish return 'es'. This problem is
> because var $lang is 'GL_ES' instead of 'GL'.
> I don't know because the var $lang has this value.
> Somebody knows because it has this value?
>
> If this value is 'GL', the function
> $csConvObj->conv_case('utf-8',$lang,'toLower') returns 'gl' and if my
> extension is static_info_tables_gl the problem would be solved.

Sorry, forget the previous message. Only the line that I have in the
extension static_info_tables_ga:
UPDATE static_languages SET
lg_typo3='ga',lg_collate_locale='gl_ES',lg_country_iso_2='ES' WHERE
lg_iso_2='GL';

The 'GL_ES' is the return value of he function getCurrentLanguage() when
I'm in galician. Because I've set the lg_country_iso_2 to 'ES', if I put
this value to empty and I call my extension static_info_tables_gl, I
solve the problem.
For example catalan and basque (other two language from Spain) have the
value of lg_country_iso_2 to empty, not to ES.

Another possible solution would be an extension
static_info_tables_gl_es, with the dabase fields ######_gl_es.

But, what is the best solution? Don't set the value for lg_country_iso_2
or call the extension 'static_info_tables_gl_es'.

Thank you,
   Rego

-- 
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com


More information about the TYPO3-translators mailing list