translation multilanguage

How to implement multilanguage support in custom ChronoForms code.

Overview

The issue arises when needing to translate more than simple text fields, requiring integration with the site's language settings.
Use PHP to retrieve the current language tag and name from Joomla, or JavaScript to get the HTML lang attribute, then apply these values within your CF custom code as needed.

Answered
md mdma 18 Aug, 2015
Hello,
I know there is locale settings,
but in custom php or js would this be a working solution for CF5 hooking into languages?

<?php

            $lang = JFactory::getLanguage();
            $lang_code = $lang->getTag();
            $lang_name = $lang->getName(); 

?>


var lang = document.getElement('html').getProperty('lang');
Gr GreyHead 19 Aug, 2015
Hi mdma,

I've just replied to a very similar question from you in another thread. What exactly do you need to do?

Bob
md mdma 20 Aug, 2015
Answer
Helpful Tutorial for multilanguage custom code
if needed to translate more than little text fields(locales).

http://www.chronoengine.com/faqs/2669-how-can-i-translate-emails.html
This topic is locked and no more replies can be posted.