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

mau.ferrusca’s picture

OK, Mexico to México can be done quite easily thru the "translate interface" option.

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke
Status: Active » Postponed (maintainer needs more info)

I 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

mau.ferrusca’s picture

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

AlexisWilke’s picture

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

    ...
    'COL' => t('Colima'),
    'DIF' => t('Distrito Federal'),
    'DUR' => t('Durango'),
    ...

(Cut the line from the bottom and move)

If that works, I'll check the fix in.

Thank you.
Alexis

mau.ferrusca’s picture

Seems 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?

AlexisWilke’s picture

Status: Postponed (maintainer needs more info) » Fixed

I'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

mau.ferrusca’s picture

Thank you for all your help and patience, Alexis.

:)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mau.ferrusca’s picture

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