Hello,
Context:
I have several chronoforms and listings (around 20 pages). All use locales. To secure the translation, I built a table in Excel sheet a list of words and sentences to be translated as a translation dictionary. Each time I made a modification in this excel sheet, I just copy the the translation from my excel sheet dictionary to CV5 and CCV5 locales tabs.
As I have 20 pages to update, it is more interesting to centralize locales in one common file.
Question:
How to do that, or is it a solution for that to make my operations more simple?
Thanks
Bertrand
Hello Bob,
Thank for your help.
I did not get the notification of Chronoengine messages since several months. Curious.
I just come back from vacation. I made a test this morning by following your advice.
I think I missed something.Please look at my 2 attached files.
Bertrand
Hi Bertrand,
Please remove the $form->form['Form']['title'] part from the form path as you aren’t using a sub-folder with the form name.
Bob
Hello Bob,
Thanx, that works fine. Last question: Where can I make this modification for Chronoconnectivity?
Bertrand
Hi Bertrand,
I don't know :-( Have you tried using the same code in the Language Strings box? It will depend whether Max has that set up to be evaluated as PHP or not.
Bob
Hello Bob,
Yes I did try. It was the first thing I did. In fact, in my first mail, I did it with CCV5 with an error on the include path, as you informed.
I tried with CFV5 with the correction on the path, that works.
I will write to Max if he could give me a help.
Thanks Bob
Bertrand
Hello Max,
Did you receive my question submitted from "Contact Us" form?
Let me know if I had a chance to centralize locales files in Chronoconectivity.
I still have 10 pages times 3 languages to be changed if I needed to change some translations.
Thanks,
Bertrand
Hi,
Same hack for connectivity, file:
\administrator\components\com_chronoconnectivity5\chronoconnectivity\helpers\lister.php
line 247:
if($tag_cap == $site_lang){
after it, just use the same lines provided by Bob above:
ob_start();
eval('?>'.$lang_data['strings']);
$lang_data['strings'] = ob_get_clean();
Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hello Max,
Thanks for this help. I will test this hack and let you know soon.
Bertrand
Hello Bob and Max,
Both hacks work fine for CFv5 and CCv5. This is an added value that saved me 2 hours of workload for each modification because I have 12 CFv5 and 12 CCv5 times 3 languages. (24 x 3 locales).
This has to be included in the next versions.
Thanks
Bertrand
Hi Bertrand,
Great, thanks for letting us know.
Bob
Hi Bertrand,
Does it go away when you remove the code below:
<?php
include (JPATH_SITE.'/custom/includes/lang_en-gb.txt');
?>
?
Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?