CloudiDust / wesnoth-cn

Simplified Chinese localization project for the Battle for Wesnoth.
GNU General Public License v2.0
18 stars 7 forks source link

WML variables in strings that don't match the msgid #19

Closed stevecotton closed 1 year ago

stevecotton commented 1 year ago

The tool in wesnoth/wesnoth#4436 searches for WML variables in translated strings, and checks whether they match the variables in the msgid. It's found these in the Chinese translation for 1.16.8:

po/wesnoth-lib/zh_CN.po: msgid 'disjunct end^$prefix, or $last': '$next' in msgstr but '$last' in msgid
po/wesnoth-lib/zh_CN.po: msgid "In section '[$section|]' where '$primary_key| = $primary_value' the mandatory key '$key|' isn't set.": the '$' is missing from '$key' in msgstr
po/wesnoth-multiplayer/zh_CN.po: msgid "<span strikethrough='true' foreground='$side_color'>Side $side_number</span>:  Has lost all units": '$side_color' not in msgstr while '$side_number' appears twice in msgid
po/wesnoth-multiplayer/zh_CN.po: msgid "<span foreground='$side_color'>Side $side_number</span>:  Income score = $income  Unit score = $units  Gold = $gold\nGrand total: <b>$total</b>": '$side_color' not in msgstr while '$side_number' appears twice in msgid
po/wesnoth-utbs/zh_CN.po: msgid 'At the start of each turn, any unit currently in this pool will heal 10 hitpoints and will not be affected by the heat in the cavern. Of course, if the unit leaves this pool, it will suffer the standard $heat_damage damage each turn from the heat.': '$temp_damage' in msgstr but '$heat_damage' in msgid
po/wesnoth/zh_CN.po: msgid "Unknown command '$command', try $help_command for a list of available commands.": '$help_commmand' in msgstr but '$help_command' in msgid
CloudiDust commented 1 year ago

Thanks for informing me! The bugs are now fixed in f059f56.