Locales not working. not sure why!

How to fix locales not displaying translated text in ChronoForms.

Overview

The issue occurs when using incorrect locale tags with hyphens instead of underscores.
Use the correct locale tags with underscores, such as en_gb and af_za, instead of hyphens like en-GB or af-ZA.

Answered
bs bstrydom 25 Jun, 2015
Hello,

For the life of me I can't figure out why I can't get the Locales working. I have 2 languages on my site. English and Afrikaans. Afrikaans being the default language.

I have 1 form.

I created 2 locales. Afrikaans and English Respectively.

I added the Language strings as explained. Here they are:

Afrikaans
SEND_VALUE=Stuur
SELECT_TOPIC=Kies jou onderwerp...
RECEIVE_MORE=Meer inligting hê oor Nuwe Lewe Tygerberg
PRAYER_REQUEST=ʼn Gebeds versoek instuur
JOIN_MINISTRY=Inskakel by ʼn bediening
FULL_NAME=Volle Naam:
CELL_NUMBER=Selnommer:
EMAIL_ADDRESS=e-Pos Adres:
CONFIRM_ADDRESS=Bevestig e-Pos:
REQUEST_TYPE=Ek wil graag:
MESSAGE=Boodskap
SECURITY_QUESTION=Verskaf asseblief die antwoord op die volgende berekening


English
SEND_VALUE=Send
SELECT_TOPIC=Select your topic...
RECEIVE_MORE=Receive more information about Nuwe Lewe Tygerberg
PRAYER_REQUEST=Send in a prayer request
JOIN_MINISTRY=Join a ministry
FULL_NAME=Full Name:
CELL_NUMBER=Cell Number:
EMAIL_ADDRESS=Email Address:
CONFIRM_ADDRESS=Confirm Email:
REQUEST_TYPE=I would like to:
MESSAGE=Message
SECURITY_QUESTION=Please provide the answer to the following calculation:


I placed the following values as the labels in my Form Design
[attachment=0]language_parameters.PNG[/attachment]

But the form still shows the Language String Parameter as the value. Where am I going wrong?
[attachment=1]form_rendition.PNG[/attachment]

So I tried setting the strict match to on and changing all the values to have [] around them but that also didn't work.
Please could someone assist me? I know i must be doing something stupid!

Brett
Gr GreyHead 25 Jun, 2015
Answer
1 Likes
Hi Brett,

What locale tags are you using? en_gb and af_za I think are what you need.

Bob
bs bstrydom 25 Jun, 2015
Bob! you are absolutely correct! I was using af-ZA and en-GB. That's what is set in my Language Manager for the tags. I was not aware I had to use the underscore. Even though the tooltip tells us to, I thought we had to use the tags we had set in our Language Manager.

Thanks so much for your assistance!🙂
This topic is locked and no more replies can be posted.