Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
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.

Country Field order of countries

9 years 9 months ago
Licenses:
JomSocial Expired

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...

9 years 9 months ago
Licenses:
JomSocial Expired

I have problems applying my own countries.xml

It seems that I need to create a file like: countries_de-DE.xml but this doesn't seem to work. =/

9 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

some people resuest this and thought this issue already fixed long long before, but seems not fixed yet or maybe the code reverted.

I will mark this issue as a bug,

thank you

9 years 9 months ago
Licenses:
JomSocial Expired

Thanks.

Could you also please tell me the structure of the name that I have to give the countries.xml file so it will be recognized?

countries_de-DE.xml or something of the like should be correct but I didn't find the correct one yet

I could use that in the meantime.

9 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

please you change this one /components/com_community/libraries/fields/countries.xml

9 years 9 months ago
Licenses:
JomSocial Expired

I'll just quote myself then:

"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.

9 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

I see, I suggest we wait the patch from our developer..

thank you

9 years 9 months ago
Licenses:
JomSocial Expired

Should I mark the problem as fixed in such a case then? I don't know how you handle forum posts if it gets escalated to your delevopers.

9 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

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.

9 years 9 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Please you apply this patch for fixing this www.jomsocial.com/forum/installation/242...rors?start=14#128396

This issue should be fixed long time before, but seems our developer forgot to apply it.

thank you

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW