Skip to content

CW100 error: Non-English localisation keys are always reported as missing (l_simp_chinese, l_japanese, etc.) #133

Description

@Rommelski

Hello,

I encountered an issue when developing a Hearts of Iron IV mod with CWTools in VSCode.

When localisation keys are defined in non-English localisation files (e.g. l_simp_chinese, l_japanese), CWTools reports them as missing with the warning: Localisation key is not defined for English. CW100
This happens even though the keys are correctly defined in the respective .yml files.
I have already set Localisation Language = Chinese in the CWTools configuration, but the error persists.

Image

To reproduce this Issue,

  1. Create a localisation file with a non-English label, e.g.:
    l_simp_chinese:
    test_key: "測試"

  2. Reference this key in a script, e.g. text = test_key.

  3. CWTools shows a CW100 warning saying the key is not defined for English.

Would you consider adding proper support for non-English localisation labels so CWTools does not always expect l_english?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions