[Flow] Usage of translation
Alexander Berl
a.berl at outlook.com
Wed Mar 26 14:29:45 CET 2014
Hi Rik,
1) Not out of the box, because deciding to return text partially in a
foreign language to the user is an application decision, that is
probably not the best thing to do (you should rather make sure that your
translations are complete). You can however create your own translate
ViewHelper though, that will fall back to the default language.
2) You can set the current language with the
I18n\Service::getConfiguration()->setCurrentLocale() method
programatically, so you can create a language selection.
There is also an open task to improve handling of locale selection in
the framework, see http://forge.typo3.org/issues/49025
Regards,
Alexander
Am 25.03.2014 15:11, schrieb Rik Willems:
> Hi,
>
> The usage and config of the translation works nicely. Now I run into two
> things:
>
> 1) If I use English as default and Dutch as translated I need to
> translate all labels in the xlf. Missing labels return the keys to my
> screen. Is there a way to fall back to the default language for missing
> labels?
>
> 2) Currently the language is decided by config. Can I also create a
> language menu that switches the entire application, or alternatively,
> have user setting in profile or session that decides the language?
>
> Cheers!
More information about the Flow
mailing list