Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello. I have a question:
how could I reorder the cities contained in México?
Distrito Federal does not appear in the expected order (before the letter "e", which is quite confusing).
And also, I'd like to add an emphasis to M >É< xico.
Thank you.
Comments
Comment #1
mau.ferrusca CreditAttribution: mau.ferrusca commentedOK, Mexico to México can be done quite easily thru the "translate interface" option.
Comment #2
AlexisWilke CreditAttribution: AlexisWilke commentedI fixed México in the source.
Now, where is the District Federal supposed to appear?
In the source, it's at the end. But we force a sort because many of the files were improperly sorted.
Note that in my alphabet "D" is before "E" so I'm not too sure what you think is incredibly wrong with that... 8-)
Thank you.
Alexis Wilke
See: http://drupalcode.org/project/addresses.git/commit/51b3c93
Comment #3
mau.ferrusca CreditAttribution: mau.ferrusca commentedThanx for your help, Alexis.
"Distrito Federal" should appear sandwiched between "Colima" and "Durango", which would be much better than way at the end of the list.
...
Colima
Distrito Federal
Durango
...
We have found that people who use our register form are lazy and do not scroll down to find Distrito Federal so our stats are useless in that sense. We hope that if they find Distrito Federal where "it should be", we will see an improvement over this information.
Once again, thank you for your prompt reply and help, most appreciated.
Comment #4
AlexisWilke CreditAttribution: AlexisWilke commentedHmmm... I thought the order was forced before use of the provinces!? Maybe it's missing in the AJAX version though.
In any event, you can at least move the item addresses/countries/mx.inc
(Cut the line from the bottom and move)
If that works, I'll check the fix in.
Thank you.
Alexis
Comment #5
mau.ferrusca CreditAttribution: mau.ferrusca commentedSeems to work quite good.
The only thing that I found was that by translating "Mexico" to "México" via /admin/build/translate messed with the autoselect dropdown (doesn't work anymore, the rest of the countries do), but I have a staging site where I could test that editing "addresses/countries/mx.inc" works great.
Thanx, Alexis.
Ps, would you happen to know if I can restore the translation I made or how can I start over? Overwriting a module would clear this change?
Comment #6
AlexisWilke CreditAttribution: AlexisWilke commentedI'm sorry I never used the translate module. You probably cannot delete if it doesn't offer you such in the interface. You may want to look into deleting the entry manually (using mysql or psql...)
I checked in the district at the right location.
Thank you for confirming.
Alexis
Comment #7
mau.ferrusca CreditAttribution: mau.ferrusca commentedThank you for all your help and patience, Alexis.
:)
Comment #9
mau.ferrusca CreditAttribution: mau.ferrusca commentedI found out that, by using table "locales_source" you can find custom and default translations. That how I was finally able to delete the custom translation that started all my problems.
I am just posting this here because I personally hate it when people find solutions but never come back to post them for the rest. :P
Now, if I could only make the State autoselect work again...