[TYPO3-dev] locallang[_tca].php in polish

Krystian Szymukowicz t33k.RE.MO.VE at RE.MO.VE.prolabium.com
Wed Apr 19 09:47:28 CEST 2006


Daniel Ditgens wrote:
> Hi there,
> 
> I have to correct the polish spelling in a language file (eg. tt_news) 
> but I am always losing the characters of other translations (the famous 
> ?). I've tried to determine the encoding of these files but I failed. 
> I've switched all my encoding to utf-8 (including output, be, mysql, php 
> and apache) but this was no solution.
> 
> Is there any hint to solve this character encoding chaos?


hi Daniel,

1. afaik if you edit locallang.php in polish you have to use ISO-8859-2 
encoding. The same other languages - you must know theirs encodings and 
change accordingly. Do not edit locallang.php in utf-8 unless you want 
to get those "??".

2. latest there was some changes in translation support in TYPO3. Now 
the translations are in *.xml files and uses utf-8. For example latest 
version of tt_news (2.3.1+) support this. You can edit those *.xml files 
manually or you can use special extension: llxmltranslate.

It depends on extension owner if he uses locallang.xml or locallang.php 
but it is strongly recommended to switch to *.xml.

have a nice day

--
Krystian




More information about the TYPO3-dev mailing list