Fix item names in the scenario editor not being localized

data/core/editor/items.cfg defines the names for the items. The file is
included by data/core/editor/_main.cfg, which has a #textdomain binding
to wesnoth-editor at the top. The strings end up bound to that
textdomain by the game, but wmlxgettext doesn’t have any way to see this
so it binds them to the default textdomain instead, which is wesnoth,
not wesnoth-editor. The game ends up looking for the strings in
wesnoth-editor instead.

The easiest solution right now is to explicitly bind items.cfg to the
wesnoth textdomain so as to not require moving catalogue entries in the
po files around to wesnoth-editor. It really should've been
wesnoth-editor in the first place but it's too late to fix that now
without giving translators a migraine. It's a pity either way given how
useless the scenario editor is in practice.

[ci skip]
This commit is contained in:
Iris Morelle 2019-01-26 13:54:28 -03:00
parent 8ad0034053
commit dc18d65e04
2 changed files with 3 additions and 0 deletions

View file

@ -57,6 +57,7 @@
* Fix wrong ordering for BW / BF years, for example in Play a Campaign when sorted by date. (issue #3187)
* GUI.pyw can now terminate a running maintenance script
* Fix SDL_DestroyRenderer assertion failure under XMonad. (part of issue #3716)
* Fix map item names not being translated in the scenario editor.
### Multiplayer server
* Fix stale temporary bans continuing to have an effect on players until cleared by
phpBB on the next ban/unban operation.

View file

@ -1,3 +1,5 @@
#textdomain wesnoth
[item_group]
id=items
icon=icons/items/item_misc