HI - I found some really weird issue concerning cb language plugins and the translation mechanism. I will show you an example with the CB German language plugin, but I think this issue affects ALL CB language plugins. So let me show you step by step what I mean:
1. In the following override.php file (the file is located here: /components/com_comprofiler/plugin/language/de-de) I added the following translation string:
'_UE_IDP_COUNTRY_LIBERIA' => 'Liberia',
By the way: This sting is also visible when you open directly the CB 'de-DE' language plugin and navigate to the 'Overrides' tab. So far so good.
2. Now I have seleted a profile of a community member and changed his country field to 'Liberia'....the (expected and correct) result is visible in the follwoing screenshot (profile edit mode)
3. Now I switched to the profile view mode. Of course my expectation was that I see also the string 'Liberia' as a country......but this was not the case.....The string visible was 'Liberien' instead of 'Liberia' ... see also next screenshot
4. I thought that this result can not be true....so I changed the translation string in the above override.php file to the following...
'_UE_IDP_COUNTRY_LIBERIA' => 'LiberiaXXX',
..and made the test again. Now it WORKED!!! I could read 'LiberiaXXX' in the profile edit mode and in the profile view mode as well. I was totally confused now.....
5. Now I started to browse through all the language files of my joomla installation to check whether I could find the string: 'Liberien' somewhere.....my search was successfull.....I could find the following language string:
'LIBERIA_642cab' => 'Liberien',
in the following file: /components/com_comprofiler/plugin/language/cbpaidsubscriptions-de-de/language.php
6. To verify that this is the string responsible for this translation I changed the following two language string:
a) 'LIBERIA_642cab' => 'LiberienTTT'
b)..... and the language string (mentioned unter 1) back to:
'_UE_IDP_COUNTRY_LIBERIA' => 'Liberia',
...an tested again. As expected the string: 'LiberienTTT' was only visible in the profile view mode ('Liberia' in the profile edit mode)
7. I deinstalled and reinstalled the german CB language plugin (and reloaded my german override.php file) --> no effect
8. According to my assuption a 2 phase translation happens here:
1. As a first step this string will used to result in 'Liberia': '_UE_IDP_COUNTRY_LIBERIA' => 'Liberia',
2. As a second step the string 'Liberia' matches with 'LIBERIA_642cab' => 'Liberien', ... and will result in 'Liberien'
The other possibility is that something is corrupt with my joomla installation
Best regards