8000 GitHub - Zireael-N/bw-locale-generator: Takes a TOML file as an input and outputs BigWigs locale files
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Zireael-N/bw-locale-generator

Repository files navigation

Usage:

localize_npc_names <TOML FILE> <OUTPUT DIR> [MODULE NAME]

By default it'll read existing locale files and skip fetching those strings that are already there (and not commented out). To override this behaviour, set FORCE_ALL env variable to 1.

Example:

localize_npc_names ./Examples/LittleWigs/BfA/Freehold.toml ../LittleWigs/BfA/Freehold/Locales "Freehold Trash"

TOML file generation:

It's sort of hacked together and not thoroughly tested, but you can give it a try:

generate_toml_from_one ../LittleWigs/BfA/Freehold/Trash.lua > freehold.toml

If there are locale variables that don't have a corresponding mob ID (and vice versa), they will be printed to stderr.

The input file is expected to be formatted like this:

mod:RegisterEnableMob(
	1, -- NPC #1
	2 -- NPC #2
)

-- ...

if L then
	L.first = "NPC #1"
	L.second = "NPC #2"
end

Bulk generation of TOML files:

# generate_toml_from_dir <INPUT DIR> <OUTPUT DIR>
generate_toml_from_dir ../LittleWigs ./Examples/LittleWigs

If SHOW_MISSING_IDS_AND_VARS environment variable is set to 1, missing mob IDs and locale variables will be printed to stderr.

Compilation:

  • Install Rust;
  • Run cargo build --release.

About

Takes a TOML file as an input and outputs BigWigs locale files

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0