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.
Greetings,
I have another issue with the module. While installing on a default Drupal instance, the country names are all wrong because the module copies the Drupal country name from includes/iso.inc. The problem is that some of these countries have wrong names since they are neither short nor long official name. Take for instance:
'CD' => $t('Congo (Kinshasa)'),
'CG' => $t('Congo (Brazzaville)'),
'VA' => $t('Vatican'),
Attaching a patch for this.
I'm not sure here is the correct fix, maybe this should be reported to Drupal core?
Comment | File | Size | Author |
---|---|---|---|
0001-use_name_from_csv.patch | 405 bytes | cristiroma | |
Comments
Comment #1
Alan D. CreditAttribution: Alan D. commentedThat was a deliberate design decision not to overwrite by default, but a message linking to the update page would probably be a good idea.
Comment #2
Alan D. CreditAttribution: Alan D. commentedCommitted the above code.
Comment #4
vinmassaro CreditAttribution: vinmassaro commentedIs there a way I can perform the countries update programmatically? I have a feature that depends on countries and imports country data from an external source. It would be great if there was a way to automatically update the countries in code when my module is enabled, so the country data is up to date before the import happens, otherwise mappings will be off. Thanks in advance.