Skip to content

Add support for PT-BR items names inside iD #10882

Closed as duplicate
Closed as duplicate

Description

@matheusgomesms

Description

Hi!

I'm starting to improve names in PT-BR (after discussing with community), because in some not so rare cases, the names differ in the PT and PT-BR variants. For example, regarding country names, we have:

name:pt=Irão
name:pt-BR=Irã

There are dozens of these cases, and I'm starting mapping these little by little. However, when I do add/fix the name, in iD the label, in the map, is still in PT, even though my whole setup is in PT-BR. Example:

Image

You can check editing directly here.

I'm not sure if it's a quick fix, but I saw something related to data/languages and data/territory_languages.

If I add

"pt-BR": {"base": "pt", "nativeName": "Português Brasileiro"},

and update

"br": ["pt-BR", "pt", "en", "de", "it", "vec", "ja", "es", "kgp", "ko", "yrl", "gub", "xav"],

(not in those files, but in scripts/language_names.js and scripts/build_data)

Will it work?

Thanks!

Screenshots

No response

Activity

  1. changed the title [-]Added support for PT-BR items names inside iD[/-] [+]Add support for PT-BR items names inside iD[/+] on Mar 15, 2025
  2. 1ec5 commented on Mar 15, 2025

    @1ec5
    Collaborator

    scripts/language_names.js is just about the name of the language that appears in the Multilingual Names field’s language dropdown menu. A different file, data/territory_languages.json, specifies the languages that sort to the top of the dropdown menu, as a convenience for mappers who don’t want to sift through the full list of languages.

    The issue you’re seeing has the same root cause as #10219.

  3. matheusgomesms commented on Mar 16, 2025

    @matheusgomesms
    Author

    Ahh I see, thanks! Let me close this issue and keep the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions