Skip to content

Delete values for modified keys in non-en locale files #443

Closed as not planned
Closed as not planned

Description

@danrademacher

In this diff, https://gist.github.com/danrademacher/e7eb528c31cecb78e2f8c9b9e33af1fd, we can see specifically which keys have modified values in the locale files. After we do #442, we can use a similar approach to delete the values form keys where the translations changed in OHM.

I guess one issue there will be if the only change is form "OpenStreetMap" to "OpenHistoriclaMap", we should leave the key alone. Likely we can just hand-pick the keys to target by skimming the diff

Activity

  1. added
    internationalization
    on Sep 20, 2022
  2. danrademacher commented on Sep 22, 2022

    @danrademacher
    Author

    These are the keys with meaningful modifications that we made prior to adding our site to Translatewiki.

    I pulled these out of the Gist above in this issue, which was based on a diff of our en.yml against the upstream version, then hand selecting out for changes that were NOT simply "OpenHIstoricalMap" without other changes.

    What we should do to make translator's jobs easier is deleted the values in these keys in all locale files except en.yml and en-GB.yml.

    What I don't know that I did here was captured enough of the YML hierarchy to make this easy to do -- I find that hard to do in a diff!

             aeroway:
              apron:
              gate:
              terminal:
             amenity:
              arts_centre:
              fuel:
               gambling:
               grave_yard:
               grit_bin:
              conservation:
              construction:
              retail:
              doityourself:
              hifi:
              cabin:
       layouts:
        intro_text:
        intro_1:
        partners_title:
        hosting_partners_html:
       site:
         about:
          used_by_html:
           lede_text:
           local_knowledge_html:
           community_driven_html:
           open_data_html:
           legal_1_html:
           legal_2_html:
           legal_babble:
             title_html:
             intro_1_html:
             intro_2_html:
             intro_3_1_html:
            credit_title_html:
             credit_1_html:
             credit_2_1_html:
             attribution_example:
              alt:
             more_1_html:
             contributors_title_html:
             contributors_intro_html:
            contributors_cambridge-anr_html:
            contributors_ned_html:
            contributors_newberry_html:
             contributors_footer_1_html:
             contributors_footer_2_html:
             infringement_2_html:
             trademarks_title_html:
             trademarks_1_html:
          export_details_html:
         help:
           welcome:
            title:
            description:
           beginners_guide:
            url:
            title:
             description:
           mailing_lists:
            url:
            title:
            description:
           irc:
            url:
            title:
            description:
           switch2osm:
            url:
            title:
            description:
           wiki:
            url:
            title:
            description:
         welcome:
           introduction_html:
           whats_on_the_map:
             on_html:
             off_html:
           basic_terms:
             paragraph_1_html:
           rules:
             paragraph_1_html:
           questions:
             paragraph_1_html:
          copyright:
  3. gregallensworth commented on Sep 23, 2022

    @gregallensworth

    The list above translates as follows:

    XX.geocoder.search_osm_nominatim.prefix.aeroway.apron
    XX.geocoder.search_osm_nominatim.prefix.aeroway.gate
    XX.geocoder.search_osm_nominatim.prefix.aeroway.terminal
    
    XX.geocoder.search_osm_nominatim.prefix.amenity.fuel
    XX.geocoder.search_osm_nominatim.prefix.amenity.gambling
    XX.geocoder.search_osm_nominatim.prefix.amenity.grave_yard
    XX.geocoder.search_osm_nominatim.prefix.amenity.grit_bin
    
    XX.geocoder.search_osm_nominatim.prefix.landuse.conservation
    XX.geocoder.search_osm_nominatim.prefix.landuse.construction
    XX.geocoder.search_osm_nominatim.prefix.landuse.retail
    
    XX.geocoder.search_osm_nominatim.prefix.shop.doityourself
    XX.geocoder.search_osm_nominatim.prefix.shop.hifi
    XX.geocoder.search_osm_nominatim.prefix.tourism.cabin
    
    XX.layouts.intro_text
    XX.layouts.intro_1
    XX.layouts.partners_title
    XX.layouts.hosting_partners_html
    
    XX.site.about.used_by_html
    XX.site.about.lede_text
    XX.site.about.local_knowledge_html
    XX.site.about.community_driven_html
    XX.site.about.open_data_html
    XX.site.about.legal_1_html
    XX.site.about.legal_2_html
    
    XX.site.copyright.legal_babble.title_html
    XX.site.copyright.legal_babble.intro_1_html
    XX.site.copyright.legal_babble.intro_2_html
    XX.site.copyright.legal_babble.intro_3_1_html
    XX.site.copyright.legal_babble.credit_title_html
    XX.site.copyright.legal_babble.credit_1_html
    XX.site.copyright.legal_babble.credit_2_1_html
    XX.site.copyright.legal_babble.attribution_example.alt
    XX.site.copyright.legal_babble.more_1_html
    XX.site.copyright.legal_babble.contributors_title_html
    XX.site.copyright.legal_babble.contributors_intro_html
    XX.site.copyright.legal_babble.contributors_cambridge-anr_html
    XX.site.copyright.legal_babble.contributors_ned_html
    XX.site.copyright.legal_babble.contributors_newberry_html
    XX.site.copyright.legal_babble.contributors_footer_1_html
    XX.site.copyright.legal_babble.contributors_footer_2_html
    XX.site.copyright.legal_babble.infringement_2_html
    XX.site.copyright.legal_babble.trademarks_title_html
    XX.site.copyright.legal_babble.trademarks_1_html
    
    XX.site.export.export_details_html
    
    XX.site.help.welcome.title
    XX.site.help.welcome.description
    XX.site.help.beginners_guide.url
    XX.site.help.beginners_guide.title
    XX.site.help.beginners_guide.description
    XX.site.help.mailing_lists.url
    XX.site.help.mailing_lists.title
    XX.site.help.mailing_lists.description
    XX.site.help.irc.url
    XX.site.help.irc.title
    XX.site.help.irc.description
    XX.site.help.switch2osm.url
    XX.site.help.switch2osm.title
    XX.site.help.switch2osm.description
    XX.site.help.wiki.url
    XX.site.help.wiki.title
    XX.site.help.wiki.description
    
    XX.site.welcome.introduction_html
    XX.site.welcome.whats_on_the_map.on_html
    XX.site.welcome.whats_on_the_map.off_html
    XX.site.welcome.basic_terms.paragraph_1_html
    XX.site.welcome.rules.paragraph_1_html
    XX.site.welcome.questions.paragraph_1_html
    
    XX.javascripts.map.copyright
    
  4. added a commit that references this issue on Sep 23, 2022
  5. gregallensworth commented on Sep 23, 2022

    @gregallensworth

    See OpenHistoricalMap/ohm-website#122 and the gin-locale-cleanup branch.

  6. added theissue type on Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

internationalization

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions