Buy Now
Sign in

Locales in CCv6

bcouvin , March 16 2018, 14:11
B
bcouvin 213
March 16 2018, 14:11 #376156
Hello,
My question is on CCv6 on how to use locales in CCv6.
In CCv5, we use in this way:
in FrontList/Settings/Column list:
PT.id: ##IdHeader##
in locales tab of en_gb, and in "Language String" field, we use a custom file:
<?php
include (JPATH_SITE.'/custom/includes/lang_en-gb.txt');
?>
We have the same for fr_fr:
<?php
include (JPATH_SITE.'/custom/includes/lang_fr-fr.txt');
?>
With this in CCv5, it displayed ##IDHeader## in the selected language.
It does not work as expected in CCv6. Is there any work around for this?
Thanks in advance
Bertrand
admin 27
March 16 2018, 17:37 #376161
Hi Bertrand,
v6 will not support the PHP code you have, why do need to call the files in PHP ? because you have all the language strings in 1 file and you want to share them for multiple forms ?
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
B
bcouvin 213
March 18 2018, 15:49 #376188
Hi Max,
Yes, we used only one language translation file for each language. It is more easy to maintain.
In CCv5, the headers have names ##...##. When calling the page, this will search in "custom/includes/lang_en-gb.txt" to find the value of the name to be displayed.
By this way, if the language changes to another one, we use another file ""custom/includes/lang_.....txt" to translate and display the correct name value in the appropriated language.
This avoids to change all the Headers in all the connections and forms. This method centralises all the necessary translation.
Do you have an idea how to centralise the translation files for all connections and forms?
Thanks,
Regards
Bertrand
admin 27
March 19 2018, 01:41 #376197
Hi Bertrand,
At the moment its not possible, but the feature is supposed to be added to a future update, how much time do you have to have this working ?
Best regards
Max
If your main question got answered then please mark the answer using the button!
Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!