CRM-19993 Fixes for ISO compliance with countries and counties

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.15
    • Fix Version/s: 4.7.18
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Updates from ISO standard. See https://en.wikipedia.org/wiki/ISO_3166-2 for verification of changes.

      Provinces:
      India:
      ID 1225 Uttaranchal rename to Uttarakhand
      Add Indian Union territory: IN-CH, Chandigarh

      Add for Ghana:
      GH-CP Central
      GH-EP Eastern
      GH-NP Northern
      GH-WP Western

      Palestinian Territory > rename to ISO standard:
      Palestine, State of

      Add states for Saint Kitts and Nevis:
      KN-K Saint Kitts
      KN-N Nevis

      Add missing states for Sierra Leone:
      SL-E Eastern
      SL-N Northern
      SL-S Southern

      China:
      Typo, should be "Yunlin County" instead of Conuty.

        Attachments

          Activity

          [CRM-19993] Fixes for ISO compliance with countries and counties
          Coleman Watts added a comment -

          Hey John. Thanks for raising this set of issues. I think it would be a little less unwieldy to open just one issue for updates to regional data.

          Note that CiviCRM follows the ISO convention for country & state names and has no opinion otherwise. So if we can just grab the latest data from them and plug it in, that would be ideal.

          John K. added a comment -

          Yeh, thanks Coleman. I don't think I'll be able to do a few comparison, but I'm hoping to pick up a few errors in the data. I'll re-purpose this as a catch-all.

          Coleman Watts added a comment -

          You know what would be really cool? A CI script or maybe a unit test that checks conformance with the ISO standard (or, while we're dreaming, a bot that automatically submits a pull-request whenever there are changes to the standard).

          John K. added a comment -

          Agree that a test/check would be cool =]

          I've updated the description with the changes I'll put into a PR - it's not going to be a definitive 'matchup' between the ISO and Civi, but it should bring things better in line.

          This work comes out of some matching we've been doing with the county list in another database. All I can say is I wish everyone conformed to the same standard - hooray for ISOs

          John K. added a comment -

          also pushed a fix for a typo in British Virgin Islands

          Joe Murray added a comment -

          I think we wanted the countries to move from ISO 3166-1 to a much more widely used standard https://issues.civicrm.org/jira/browse/CRM-19996, although the interoperability would mean we should continue to use ISO 3166 for subnational state/province info. Unless we find a different standard that is more widely used in software.

          John K. added a comment -

          Hi Joe, I saw that issue. Whilst that is still 'in the works' I hope this patch will be reviewed.

          Changing the standard country / state list could have a big impact on organisations (particularly where syncs to other systems are involved). But I'm happy to discuss that as part of CRM-19996.

            People

            • Assignee:
              Unassigned
              Reporter:
              John K.

              Dates

              • Created:
                Updated:
                Resolved: