ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com