I am trying to add localization support to my package and want to keep all my language files in a single place. One thing that bothers me is that there appears to be no such thing as a default.xml to catch all unsupported languages. Right now I have to provide the defaults inside my html code. Example:
EDIT: the default value doesn't work this way either. It just returns general_label when I set my language to an unsupported language. How do I supply a default value?
Default package language
I am trying to add localization support to my package and want to keep all my language files in a single place. One thing that bothers me is that there appears to be no such thing as a default.xml to catch all unsupported languages. Right now I have to provide the defaults inside my html code. Example:
Is there any workaround to solve this issue?
EDIT: the default value doesn't work this way either. It just returns general_label when I set my language to an unsupported language. How do I supply a default value?
At least I fixed the inline default. The directive below only replaces the inline default "Default value" when a translation is available:
Still I didn't find a way to centralize defaults. If anyone could help me here I'd appreciate it.
is working on a reply...