Skip to content

Language code collisions in name table helper functions #3733

Description

@andrewsuzuki

_MAC_LANGUAGES has multiple language IDs with the same IETF BCP 47 string: es (6 and 27) and ga (35 and 146).

_WINDOWS_LANGUAGES also: es (0x0C0A and 0x040A) and sms (0x203B and 0x1C3B).

These dicts are reversed into _MAC_LANGUAGE_CODES and _WINDOWS_LANGUAGE_CODES, so the string only refers to one of the two language IDs in each case, when used in findMultilingualName or addMultilingualName.

macLang = _MAC_LANGUAGE_CODES.get(language.lower())

Perhaps give a warning in these special cases?

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