Skip to content

Some valid lang_result with capitalized parts will be incorrectly fallback to the lang_en #41

@libenc

Description

@libenc

Some valid lang_results that have capitalized parts present:

lang_zh-CN=Chinese (Simplified)
lang_zh-TW=Chinese (Traditional)

Codes in __init__.py L147 and L169-L175 will cause these lang_result to be incorrectly fallback to the lang_en:

...
self.lang_result = lang_result.lower()
...
# Argument checks.
if self.lang_result not in result_languages_list:
    ROOT_LOGGER.error(
        f"{self.lang_result} is not a valid language result.  See {result_languages_file} for the list of valid "
        'languages.  Setting lang_result to "lang_en".'
    )
    self.lang_result = "lang_en"
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions