Skip to content

RedCraftChat 0.2.4-SNAPSHOT

Choose a tag to compare

@github-actions github-actions released this 31 Aug 01:25
· 7 commits to master since this release
Let names that are not servers be protected from translation too

The museum's world names went out translated: KingdomHills became
RoyaumeCollines, Freebuild became Construction libre. Both read well and
name a world that does not exist, next to a command that still wants the
original.

Server names were already protected, by listing them in the prompt as
proper nouns to copy. Nothing covered names the plugin cannot enumerate,
which is every world, map and build on the network. protected-names is
that list, and translatable-server-names remains the escape hatch for a
word that turns out to be ordinary after all.

It is a blunt tool and the config says so: a word listed there is
verbatim in every sentence, so adding Plot costs its translation
everywhere, not only on the sign it was added for. The seeded list keeps
to the distinctive halves.

The tests around this were reading three static fields that no test
reset, so adding one that populated protectedNames broke an unrelated
assertion further down the file. They are reset in setUp now, by
replacement rather than clear(), since some of them assign an immutable
list.