Forums

Locales in CCv6

bcouvin 16 Mar, 2018
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
Max_admin 16 Mar, 2018
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bcouvin 18 Mar, 2018
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
Max_admin 19 Mar, 2018
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, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.