Skip to content

Add option "-locale" to specify which language is used for maps #105

@tdauth

Description

@tdauth

Reforged has sub folders like "_Locales/deDE.w3mod/" which are used for files with higher priority if the language is configured in the game.
MPQs have locale properties per file. You should be allowed to specify the locale with "-locale deDe" or something and then Warsmash should load the correct files.

The game itself gets its locales from the data sources so there is no need for such option for the game I guess.

There could be an enum like this:

package com.etheller.warsmash.units;

public enum Locale {
    DEFAULT(""),
    EN_US("enUS.w3mod"),
    DE_DE("deDE.w3mod");

    public final String directory;

    Locale(final String directory) {
        this.directory = directory;
    }
}

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