The JomSocial country field isn't translating the values correctly, and viewing the language file itself the constants are not correct either.
1. Screenshot of creating the field: https://snipboard.io/aP7TLf.jpg
2. Screenshot of the created field on frontend: https://snipboard.io/AKfDV1.jpg
3. Screenshot of the browser console for the field: https://snipboard.io/6YsjBv.jpg
4. Screenshot of the loaded language file: https://snipboard.io/f82qko.jpg
5. Screenshot of the language file, showing the correct values for the country select: https://snipboard.io/bipof8.jpg
JomSocial field type 'Country' values don't translate correctly
quasiman
Hi
Kindly apply the changes in this file https://quasitown.com/joomlatest/language/en-GB/en-GB.com_community.country.ini
The country names are same here.
quasiman
Hi
The country name are in this file https://quasitown.com/joomlatest/language/en-GB/en-GB.com_community.country.ini if you want to translate them you need to change the country name to your language and same will show in the frontend .
Ninja
I apologize if I'm not being clear on the issue, so let me try again...
I do not need to translate the file, as the site is defaulted to English ( en-GB ), and the language debug shows that the file loaded. The problem is that the select option values are not displaying the English file constants:
These option values are NOT correct; they should show the values for the language codes:
COM_COMMUNITY_LANG_CODE_AF="AF"
The two letter country codes are not being used from the language file.
Currently it is like this:
<option value="COM_COMMUNITY_LANG_NAME_AFGHANISTAN">Afghanistan</option>
<option value="COM_COMMUNITY_LANG_NAME_ALANDISLANDS">Åland Islands</option>
<option value="COM_COMMUNITY_LANG_NAME_ALBANIA">Albania</option>
I want it to be like this:
<option value="COM_COMMUNITY_LANG_CODE_AF">Afghanistan</option>
<option value="COM_COMMUNITY_LANG_CODE_AX">Åland Islands</option>
<option value="COM_COMMUNITY_LANG_CODE_AL">Albania</option>
The language file has these two values... why isn't the select using both?
COM_COMMUNITY_LANG_NAME_AFGHANISTAN="Afghanistan"
COM_COMMUNITY_LANG_CODE_AF="AF"
By the way, the change to use Country Code is very simple:
/components/com_community/libraries/fields/country.php
`
I don't understand