Forums

What is the Multi Language equivalent in CF v5?

studiocardo 27 Feb, 2014
Hi

I am porting a form that was created in CF v.4 with YooTheme's UIKit components to V5. The UIKit utilized many tokens in the design, which are translated by the Multi Language utilities in V4 when the form is rendered. For example, I would have the following in the Translation String in Multi Language:

##firstname##=First Name
##lastname##=Last Name
##email##=Your Email
##subject##=Subject
##message##=Your Message
##button##=Send Message

But there is no Multi Language utility in V5… And it is not obvious what its equivalent would be in V5 either... Any suggestions?

Looking forward to your reply.

Thanks,
SH
GreyHead 27 Feb, 2014
Hi studiocardo,

It's been replaced by the 'Locales' tab in CFv5.

Bob
studiocardo 17 Apr, 2014
Hi Bob

Ok, I am back to working on the form.

I found the tab, but I can't get it to work. The form still shows the strings instead.

The tab gives the user the ability to target multiple languages, and that gives me the impression that an additional setting is probably required to ask the form to pick up the target language. Where is that set?

Thx,
SH
GreyHead 17 Apr, 2014
Hi studiocardo,

As far as I know it picks up the current Joomla! language setting from the JLanguage object.

Bob
studiocardo 05 May, 2014
Answer
Just for the record, there is a multi-language example in the V5 RC4 release. The catch here is that CF uses all lower-case tokens, e.g. "en_gb", which is different from the Joomla convention.

Once I used "en_gb", the string swapping works.

SH
GreyHead 06 May, 2014
Hi SH,

I agree that it's odd to use that non-standard version :-(

There is a help text under the box that gives a hint "The 4 characters language identifier for your language, e.g: en_gb or fr_fr or de_de"

Bob
This topic is locked and no more replies can be posted.