Some whitespace checks added in this run.

One is to warn when the original text ends with space after a colon (e.g.
"Difficulty: ") and the translation misses the trailing space. In English
the trailing space is significant here, preventing that what follows the
label sticks to it. But this check alone produces 600+ warnings, and it may
be that in some languages the trailing space really should be removed (CJK
comes to mind), or is simply too unimportant a detail.

There is a similar check for leading space too, except that it triggers no
matter what character follows the space, because this is rarely a mistake
and usually significant in original (unlike the mostly superfluous trailing
space when not following the colon). But it may still be insignificant in
some languages.

So I've made it that, at the moment, only explicitly listed languages are
checked for matching outer whitespace to original. Whoever wants into this
list, tell.

-- 
Chusslove Illich (Часлав Илић)
po/wesnoth-anl/cs.po:635(#77): missing interpolations in msgstr[0]: $player_ 
$side_number
po/wesnoth-anl/ru.po:373(#47): missing interpolations in msgstr[0]: 
$sm_player_name
po/wesnoth-l/cs.po:426(#57): missing interpolations in msgstr[0]: $unit.name
po/wesnoth-lib/ar.po:2039(#410): missing interpolations in msgstr[0]: $terrain
po/wesnoth-lib/de.po:714(#112): missing trailing space in msgstr[0]
po/wesnoth-lib/de.po:719(#113): missing trailing space in msgstr[0]
po/wesnoth-lib/de.po:949(#155): missing trailing space in msgstr[0]
po/wesnoth-lib/de.po:965(#159): missing trailing space in msgstr[0]
po/wesnoth-lib/de.po:1343(#249): missing trailing space in msgstr[0]
po/wesnoth-lib/de.po:1355(#252): missing trailing space in msgstr[0]
po/wesnoth-lib/de.po:1395(#262): missing trailing space in msgstr[0]
po/wesnoth-lib/id.po:1092(#191): context separator (^) in msgstr[0]
po/wesnoth-lib/id.po:1096(#192): context separator (^) in msgstr[0]
po/wesnoth-lib/id.po:1368(#257): context separator (^) in msgstr[0]
po/wesnoth-lib/id.po:1372(#258): context separator (^) in msgstr[0]
po/wesnoth-lib/id.po:1376(#259): context separator (^) in msgstr[0]
po/wesnoth-lib/id.po:1380(#260): context separator (^) in msgstr[0]
po/wesnoth-lib/id.po:1384(#261): context separator (^) in msgstr[0]
po/wesnoth-lib/zh_CN.po:1423(#273): missing interpolations in msgstr[0]: $id
po/wesnoth-low/de.po:888(#116): missing leading space in msgstr[0]
po/wesnoth-nr/cs.po:4561(#602): missing interpolations in msgstr[0]: 
$betrayed_friend.name
po/wesnoth-nr/cs.po:7370(#951): missing interpolations in msgstr[0]: 
$betrayed_friend.name
po/wesnoth-nr/de.po:2875(#354): missing leading space in msgstr[0]
po/wesnoth-nr/de.po:3160(#392): missing leading space in msgstr[0]
po/wesnoth-nr/de.po:7670(#951): missing leading space in msgstr[0]
po/wesnoth-nr/de.po:10147(#1278): missing leading space in msgstr[0]
po/wesnoth-nr/de.po:10954(#1390): missing leading space in msgstr[0]
po/wesnoth-nr/de.po:10970(#1393): missing leading space in msgstr[0]
po/wesnoth-sof/it.po:3293(#433): missing interpolations in msgstr[0]: $turnsleft
po/wesnoth-sof/ja.po:552(#70): missing interpolations in msgstr[0]: 
$incominggold
po/wesnoth-sof/ja.po:557(#71): missing interpolations in msgstr[0]: 
$incominggold
po/wesnoth-sof/ja.po:3202(#433): missing interpolations in msgstr[0]: $turnsleft
po/wesnoth-sotbe/cs.po:2747(#368): missing interpolations in msgstr[0]: 
$unit.name
po/wesnoth-sotbe/de.po:4299(#569): missing leading space in msgstr[0]
po/wesnoth-sotbe/pl.po:2753(#368): missing interpolations in msgstr[0]: 
$unit.name
po/wesnoth-tb/el.po:834(#125): missing interpolations in msgstr[0]: 
$second_password_2
po/wesnoth-thot/de.po:2638(#343): missing leading space in msgstr[0]
po/wesnoth-trow/de.po:4991(#662): missing trailing space in msgstr[0]
po/wesnoth-trow/pl.po:3834(#517)[msgstr:0:"<szeptem"]: unknown tag
po/wesnoth-trow/pl.po:3848(#519)[msgstr:0:"<szeptem"]: unknown tag
po/wesnoth-trow/pl.po:4261(#575)[msgstr:0:"<szeptem"]: unknown tag
po/wesnoth-trow/pl.po:5298(#727)[msgstr:0:"<szeptem"]: unknown tag
po/wesnoth-trow/pl.po:6142(#845)[msgstr:0:"<szeptem"]: unknown tag
po/wesnoth-trow/pl.po:6147(#846)[msgstr:0:"<szeptem"]: unknown tag
po/wesnoth-trow/sv.po:6802(#940): context separator (^) in msgstr[0]
po/wesnoth-trow/sv.po:6842(#946): context separator (^) in msgstr[0]
po/wesnoth-trow/sv.po:6878(#950): context separator (^) in msgstr[0]
po/wesnoth-trow/sv.po:6883(#951): context separator (^) in msgstr[0]
po/wesnoth-tutorial/ca.po:1309(#159): missing interpolations in msgstr[0]: 
$recruit.language_name
po/wesnoth-tutorial/es.po:1686(#211): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/es.po:1696(#212): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/es.po:1724(#215): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/gl.po:1225(#155): missing interpolations in msgstr[0]: 
$recruit.language_name
po/wesnoth-tutorial/gl.po:1252(#159): missing interpolations in msgstr[0]: 
$recruit.language_name
po/wesnoth-tutorial/gl.po:1671(#211): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/he.po:936(#132): missing interpolations in msgstr[0]: 
$recall_name1
po/wesnoth-tutorial/ja.po:1288(#155): missing interpolations in msgstr[0]: 
$recruit.language_name
po/wesnoth-tutorial/ja.po:1313(#159): missing interpolations in msgstr[0]: 
$recruit.language_name
po/wesnoth-tutorial/racv.po:1121(#132): missing interpolations in msgstr[0]: 
$recall_name1
po/wesnoth-tutorial/racv.po:1237(#148): missing interpolations in msgstr[0]: 
$recall_name2
po/wesnoth-tutorial/sv.po:418(#53): context separator (^) in msgstr[0]
po/wesnoth-tutorial/zh_CN.po:986(#130): missing interpolations in msgstr[0]: 
$recall_name1
po/wesnoth-tutorial/zh_CN.po:1001(#132): missing interpolations in msgstr[0]: 
$recall_name1
po/wesnoth-tutorial/zh_CN.po:1549(#211): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/zh_CN.po:1558(#212): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/zh_CN.po:1583(#215): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/zh_TW.po:399(#52): missing interpolations in msgstr[0]: 
$hp_difference
po/wesnoth-tutorial/zh_TW.po:406(#53): missing interpolations in msgstr[0]: 
$hp_difference
po/wesnoth-tutorial/zh_TW.po:1552(#211): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/zh_TW.po:1561(#212): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-tutorial/zh_TW.po:1584(#215): missing interpolations in msgstr[0]: 
$deadguy.name
po/wesnoth-units/ca.po:2700(#253): context separator (^) in msgstr[0]
po/wesnoth-units/el.po:2845(#253): context separator (^) in msgstr[0]
po/wesnoth-units/fi.po:985(#99)[msgstr:1:"<Sissit ovat samoojien mest..."]: end 
of string within tag
po/wesnoth-units/it.po:3012(#282): context separator (^) in msgstr[0]
po/wesnoth-units/racv.po:2687(#253): context separator (^) in msgstr[0]
po/wesnoth-utbs/ca.po:15091(#1720): context separator (^) in msgstr[0]
po/wesnoth-utbs/ca.po:15109(#1723): context separator (^) in msgstr[0]
po/wesnoth-utbs/ca.po:15333(#1750): context separator (^) in msgstr[0]
po/wesnoth-utbs/ca.po:15360(#1753): context separator (^) in msgstr[0]
po/wesnoth-utbs/cs.po:8469(#1042): missing interpolations in msgstr[0]: 
$speaker.name
po/wesnoth-utbs/cs.po:8495(#1046): missing interpolations in msgstr[0]: 
$intl_ally_name
po/wesnoth-utbs/da.po:8065(#989): unknown interpolations in msgstr[0]: 
$intl_ally_namevil $ally_name
po/wesnoth-utbs/da.po:13830(#1624): unknown interpolations in msgstr[0]: 
$intl_ally_names
po/wesnoth-utbs/de.po:8454(#990): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:8894(#1042): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:15611(#1720): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:15628(#1723): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:15840(#1748): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:15850(#1750): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:15879(#1753): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:16324(#1806): missing leading space in msgstr[0]
po/wesnoth-utbs/de.po:16330(#1807): missing leading space in msgstr[0]
po/wesnoth-utbs/fr.po:5130(#623): missing interpolations in msgstr[0]: 
$temp_damage
po/wesnoth-utbs/hu.po:2809(#359): missing interpolations in msgstr[0]: 
$elven_camps
po/wesnoth-utbs/pt_BR.po:64(#9)[msgstr:192:"<\n\n(Nível Avancado, 11 cená..."]: 
end of string within tag
po/wesnoth-utbs/sv.po:2883(#359): missing interpolations in msgstr[0]: 
$elven_camps
po/wesnoth/bg.po:986(#127)[msgstr:660:"от "]: 'от' is not an attribute of tag 
'italic'
po/wesnoth/bg.po:1178(#137)[msgstr:297:"на "]: 'на' is not an attribute of tag 
'italic'
po/wesnoth/ca.po:8197(#1068): missing interpolations in msgstr[0]: $domain
po/wesnoth/[email protected]:1688(#180)[msgstr:130:"'"]: '' is not an attribute 
of tag 'ref'
po/wesnoth/[email protected]:8182(#1068): missing interpolations in msgstr[0]: 
$domain
po/wesnoth/de.po:4865(#457): missing leading space in msgstr[0]
po/wesnoth/de.po:8046(#895): missing trailing space in msgstr[0]
po/wesnoth/de.po:8072(#900): missing trailing space in msgstr[0]
po/wesnoth/de.po:8076(#901): missing trailing space in msgstr[0]
po/wesnoth/de.po:8084(#903): missing trailing space in msgstr[0]
po/wesnoth/de.po:8088(#904): missing trailing space in msgstr[0]
po/wesnoth/de.po:8092(#905): missing trailing space in msgstr[0]
po/wesnoth/de.po:8132(#915): missing trailing space in msgstr[0]
po/wesnoth/de.po:8817(#1070): missing trailing space in msgstr[0]
po/wesnoth/de.po:8821(#1071): missing trailing space in msgstr[0]
po/wesnoth/de.po:8825(#1072): missing trailing space in msgstr[0]
po/wesnoth/de.po:8829(#1073): missing trailing space in msgstr[0]
po/wesnoth/de.po:8952(#1099): missing leading space in msgstr[0]
po/wesnoth/de.po:9263(#1171): missing trailing space in msgstr[0]
po/wesnoth/de.po:9271(#1173): missing trailing space in msgstr[0]
po/wesnoth/de.po:9275(#1174): missing trailing space in msgstr[0]
po/wesnoth/de.po:9283(#1176): missing trailing space in msgstr[0]
po/wesnoth/de.po:9287(#1177): missing trailing space in msgstr[0]
po/wesnoth/de.po:9291(#1178): missing trailing space in msgstr[0]
po/wesnoth/de.po:9543(#1237): missing trailing space in msgstr[0]
po/wesnoth/de.po:9927(#1325): missing leading space in msgstr[0]
po/wesnoth/el.po:6036(#721): missing interpolations in msgstr[1]: $enemies
po/wesnoth/el.po:6853(#897): context separator (^) in msgstr[0]
po/wesnoth/el.po:8020(#1165): missing interpolations in msgstr[0]: $login
po/wesnoth/el.po:8408(#1254): missing interpolations in msgstr[0]: $name
po/wesnoth/eo.po:1151(#137): unknown links in msgstr[0]: 'terrain'
po/wesnoth/eo.po:5702(#590): unknown interpolations in msgstr[0]: $rivero
po/wesnoth/et.po:1110(#134)[msgstr:23:"arv "]: 'arv' is not an attribute of tag 
'header'
po/wesnoth/et.po:6956(#724): missing interpolations in msgstr[0]: $enemyphrase 
$friendphrase
po/wesnoth/et.po:8212(#1006): unknown interpolations in msgstr[0]: $gold
po/wesnoth/et.po:8212(#1006): missing interpolations in msgstr[1]: $cost
po/wesnoth/eu.po:4750(#586): unknown interpolations in msgstr[0]: $nameko
po/wesnoth/fi.po:1228(#141): missing links in msgstr[0]: '..abilities_section'
po/wesnoth/fi.po:1511(#166): missing links in msgstr[0]: 'ability_heals +8' 
'ability_heals +4'
po/wesnoth/fi.po:1649(#176): missing links in msgstr[0]: '..abilities_section' 
'..traits_section'
po/wesnoth/fi.po:2119(#223): missing links in msgstr[0]: 'terrain_flat'
po/wesnoth/fr.po:667(#101): missing links in msgstr[0]: '..abilities_section'
po/wesnoth/fr.po:1514(#166)[msgstr:186:"·"]: '' is not an attribute of tag 'ref'
po/wesnoth/fr.po:1514(#166)[msgstr:235:"·"]: '' is not an attribute of tag 'ref'
po/wesnoth/fr.po:2582(#259)[msgstr:126:" <ref>dst='terr"]: unclosed tag
po/wesnoth/he.po:800(#111): missing links in msgstr[0]: '..traits_section'
po/wesnoth/he.po:955(#127)[msgstr:574:"שטח"]: end of tag content within 
attribute
po/wesnoth/he.po:1616(#176): missing links in msgstr[0]: '..abilities_section' 
'..traits_section'
po/wesnoth/he.po:2318(#245): missing links in msgstr[0]: 
'terrain_illuminated_cave'
po/wesnoth/he.po:2343(#247): missing links in msgstr[0]: 
'terrain_illuminated_cave'
po/wesnoth/he.po:3378(#362)[msgstr:0:"< חזרה "]: end of string within tag
po/wesnoth/he.po:6183(#721): missing interpolations in msgstr[1]: $enemies
po/wesnoth/he.po:6195(#723): missing interpolations in msgstr[1]: $enemies
po/wesnoth/he.po:6201(#724): missing interpolations in msgstr[0]: $enemyphrase 
$friendphrase
po/wesnoth/he.po:6298(#746): unknown interpolations in msgstr[0]: $error
po/wesnoth/id.po:8753(#1076): missing interpolations in msgstr[0]: $side
po/wesnoth/ja.po:6822(#720): missing interpolations in msgstr[0]: $friends
po/wesnoth/ja.po:6827(#721): missing interpolations in msgstr[0]: $enemies
po/wesnoth/lv.po:629(#100)[msgstr:263:"mantinieks\""]: 'mantinieks' is not an 
attribute of tag 'italic'
po/wesnoth/lv.po:7606(#1130): missing interpolations in msgstr[0]: $era
po/wesnoth/nb_NO.po:953(#127): unknown links in msgstr[0]: 'terrain'
po/wesnoth/nb_NO.po:1129(#137): unknown links in msgstr[0]: 'terrain'
po/wesnoth/pl.po:1698(#180): missing links in msgstr[0]: 'traits_resilient'
po/wesnoth/pt_BR.po:6464(#720): missing interpolations in msgstr[1]: $friends
po/wesnoth/racv.po:1159(#136)[msgstr:31:"encert'"]: 'encert' is not an 
attribute of tag 'header'
po/wesnoth/racv.po:1170(#137)[msgstr:272:"Unitat'"]: 'Unitat' is not an 
attribute of tag 'italic'
po/wesnoth/racv.po:7278(#743): missing interpolations in msgstr[0]: $error
po/wesnoth/sv.po:9466(#1269): missing interpolations in msgstr[0]: $tag2
po/wesnoth/zh_CN.po:6567(#722): unknown interpolations in msgstr[0]: $1
po/wesnoth/zh_CN.po:6664(#743): missing interpolations in msgstr[0]: $error
po/wesnoth/zh_CN.po:8729(#1232): missing interpolations in msgstr[0]: $scenario
po/wesnoth/zh_TW.po:646(#101): missing links in msgstr[0]: '..abilities_section'
po/wesnoth/zh_TW.po:734(#109): missing links in msgstr[0]: '..units'
po/wesnoth/zh_TW.po:771(#111): missing links in msgstr[0]: '..traits_section'
po/wesnoth/zh_TW.po:1135(#141): missing links in msgstr[0]: 
'..abilities_section'
po/wesnoth/zh_TW.po:1395(#166): missing links in msgstr[0]: 'ability_heals +8' 
'ability_heals +4'
po/wesnoth/zh_TW.po:1520(#176): missing links in msgstr[0]: 
'..abilities_section' '..traits_section'
po/wesnoth/zh_TW.po:1946(#223): missing links in msgstr[0]: 'terrain_flat'
po/wesnoth/zh_TW.po:2187(#245): missing links in msgstr[0]: 
'terrain_illuminated_cave'
po/wesnoth/zh_TW.po:2211(#247): missing links in msgstr[0]: 
'terrain_illuminated_cave'
po/wesnoth/zh_TW.po:2347(#259): missing links in msgstr[0]: 'terrain_unwalkable'
po/wesnoth/zh_TW.po:6453(#722): unknown interpolations in msgstr[0]: $1
po/wesnoth/zh_TW.po:6550(#743): missing interpolations in msgstr[0]: $error
po/wesnoth/zh_TW.po:6580(#750): missing interpolations in msgstr[0]: 
$addon_title
po/wesnoth/zh_TW.po:8615(#1232): missing interpolations in msgstr[0]: $scenario
po/wesnoth/zh_TW.po:8807(#1274): missing interpolations in msgstr[0]: $value
Total problems found: 183

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Wesnoth-i18n mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-i18n

Reply via email to