Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20844

Can't Enable State/Address Field for en-GB Installations.

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No
    • Overview:
      Hide
      Translation files for en-GB translate both "county" and "state_province" fields as "County". This causes the "Address Settings" view (Administer > Localization > Address Settings) to render only on field labeled "County", where there should really be two distinct fields, even if they have the same label.
      Show
      Translation files for en-GB translate both "county" and "state_province" fields as "County". This causes the "Address Settings" view (Administer > Localization > Address Settings) to render only on field labeled "County", where there should really be two distinct fields, even if they have the same label.
    • How it works currently:
      Hide
      1. Go to Settings - Localization and change default language to English(UK)
      2. Got to Address Settings
      3. Only one County field is seen. There is no way to enable/disable stat_province field.
      Show
      1. Go to Settings - Localization and change default language to English(UK) 2. Got to Address Settings 3. Only one County field is seen. There is no way to enable/disable stat_province field.
    • How it should work:
      Hide
      1. Go to Settings - Localization and change default language to English(UK)
      2. Got to Address Settings
      3. Two County fields are seen. You can enable/disable each field independently.
      Show
      1. Go to Settings - Localization and change default language to English(UK) 2. Got to Address Settings 3. Two County fields are seen. You can enable/disable each field independently.
    • Acceptance Criteria:
      Hide
      1. Two County fields are seen on Address Settings view.
      2. You can enable/disable each field independently.
      Show
      1. Two County fields are seen on Address Settings view. 2. You can enable/disable each field independently.

      Description

      Translation files for en-GB translate both "county" and "state_province" fields as "County". This causes the "Address Settings" view (Administer > Localization > Address Settings) to render only on field labeled "County", where there should really be two distinct fields, even if they have the same label.

      This happens because the translated label value is being used as a key for the array that is used to build the list of address options.

      This is what en-US looks like:

      This is what en-GB is rendered as:

        Attachments

        1. en-UK.png
          16 kB
          Camilo Rodriguez
        2. en-UK.png
          87 kB
          Camilo Rodriguez
        3. en-UK-small.png
          16 kB
          Camilo Rodriguez
        4. en-US.png
          10 kB
          Camilo Rodriguez
        5. en-US.png
          86 kB
          Camilo Rodriguez
        6. en-US-small.png
          10 kB
          Camilo Rodriguez

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Miya27 Camilo Rodriguez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified