[TYPO3-english] Localization problems

bernd wilke t3ng at bernd-wilke.net
Wed Dec 3 09:40:38 CET 2014


Am 19.10.14 16:12, schrieb Pero Peric:
> Hi,
>
> I'm trying to translate couple of labels for ke_search extension but
> something strange is going on (as always). First i tried this:
>
> plugin.tx_kesearch_pi1._LOCAL_LANG.hr.label_sort = Rezultati pretrage
>
> but it didn't work. Then i tried adding:
>
> <languageKey index="hr" type="array">
>     <label index="label_sort">Rezultati pretrage</label>
> </languageKey>
>
> into locallang.xml but it also didn't work.
>
> Then i realized that whatever i do, i always get labels from default
> language key. Even if i change default to foobar it still gets labels
> from there, so i suppose it reads first language key section.
>
> In TS config i have this:
>
> config {
>     locale_all = hr_HR.utf8
>     language = hr
>     htmlTag_langKey = hr
> }
>
> so anyone knows what could be wrong here? Thx!

compared to my language-configuration
	#default-Konfiguration
	config.sys_language_uid = 0
	config.language = en
	config.locale_all = en_EN
	config.htmlTag_langKey = en

	[globalVar = GP:L = 1]
	# Konfiguration wenn &L=1 angegeben
	config.sys_language_uid = 1
	config.language = de
	config.locale_all = de_DE
	config.htmlTag_langKey = de
	[global]
I have an additional
	config.sys_language_uid
which should not be needed if set to 0.

in your case of problems I would check labels outside of this extension. 
do labels like
page.99 = TEXT
page.99 {
	value = test in default lang (en)
	lang.hr = test in lang hr
}
result in the translated text?

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list