[TYPO3-english] Powermail Language Detection
la_vicci at arcor.de
la_vicci at arcor.de
Fri Feb 15 09:16:52 CET 2013
Hello,
I use Typo3 4.7.7 and Powermail 2.0.6. The plugin works like a charme, but the language detection. Unfortunately Pmail displays Error Messages only in the language with the Language Key default (locallang.xml). At least Pmail reads the right locallang.xml file - changing the Error Messages in the file takes an effect.
Here is my Setup from the root template:
_______________________________________________
config {
// Language German
linkVars = L
htmlTag_langKey = de_DE
sys_language_uid = 0
metaCharset = utf-8
language = de
locale_all = de_DE
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
}
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
// Language Englisch
[globalVar = GP:L = 1]
config.linkVars = L
config.sys_language_uid = 1
config.language = en
config.metaCharset = utf-8
config.locale_all = en_GB
config.htmlTag_langKey = en_GB
plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
[global]
_______________________________________________
Language Key for the German Site in locallang.xml = default
Language Key for the English Site in locallang.xml = en
Now I thought about 2 workarounds:
Workaround 1) Creating 2 *.xml files, each per language, setting both language keys to default and load them via typoscript depending on the language. ([globalVar = GP:L = 1][global]) But I dont' know the command or how to do it.
Workaround 2) Changing the Error messages via typoscript depending on the language. But it doesn't work - it just empties the error message and that's it.
For example:
No Typoscript - Output: Captcha - Wrong captcha code entered - please try again!
Adding Typoscript like this:
plugin.tx_powermail_pi1 {
_LOCAL_LANG.default {
validationerror_captcha = Test
error_wrong_captcha = Test
}
}
Output: Captcha:
No more.
Thank you in advance for any help.
Vivi
More information about the TYPO3-english
mailing list