Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
I read through several forum threads on jomsocial about this, but the offered solution didn't help and I know why.
So my problem is: I want the order of countries in the dropdown menu in the profile field to be sorted AFTER translation. (Having Deutschland (Germany) somewhere next to countries with G in German makes no sense.)
Your proposed solution was to change the order of XML elements in the countries.xml which I did. This had no effect at all. I removed Afghanistan to check if xml changes have any effect and it disappeared from the list so at least this worked.
I analyzed the code of the countries.php afterwards and saw that indeed it should be sorted AFTER translation (line 72-78) but it doesn't do this! It sorts as if English was the language that should be sorted but translates the countries to German?
It seems the countries.php is looking for a countries.de.xml or something but then these comment lines make no sense:
// build an array with TRANSLATED country names as keys...
// ...so it can be properly key-value natural-sorted
I'll try around and see if I can find a fix. Else it seems I need to implement my own countries file...
"Your proposed solution was to change the order of XML elements in the countries.xml which I did. This had no effect at all. I removed Afghanistan to check if xml changes have any effect and it disappeared from the list so at least this worked."
I did this already. For the order this has no effect at all, because the order is changed within the country.php after the XML is loaded as an array.
Erasing entries is the only thing that has an effect, since this won't get loaded into the array then.
Dont too confuse, I will monitor this issue and dont escalated this topic, since this topic already handled fine and the issue already on our developer task list, we only need wait the patch from our developer.