Control: retitle -1 itstool: handle broken XML in PO gracefully Control: severity -1 wishlist Control: reassign -1 src:itstool
Hi again, On Mon, 2020-07-13 at 20:18 +0900, Osamu Aoki wrote: > Basically itstool needs to handle broken PO file more gracefully > with more informative error message. > > Previous error message was not the best shape but better than now. After fixing all broken XML tags in Chinese PO files with attached patch, I can build translated XML files without stopping the XML build under sid chroot. I hope this descroption should help improve itstool by identifying the problem. Situation and root cause of similar reported bugs may be the same. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919058 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952871 Osamu
From c351af728d133be2d37a54e71f530a206bd1c725 Mon Sep 17 00:00:00 2001 From: Osamu Aoki <os...@debian.org> Date: Mon, 13 Jul 2020 20:33:36 +0900 Subject: [PATCH] Fix broken PO (tags) Signed-off-by: Osamu Aoki <os...@debian.org> --- po/zh-cn.po | 8 ++++---- po/zh-tw.po | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/po/zh-cn.po b/po/zh-cn.po index f989233..82af617 100644 --- a/po/zh-cn.po +++ b/po/zh-cn.po @@ -5187,7 +5187,7 @@ msgid "" "Export the build environment as “<emphasis role=\"strong\">LC_ALL=C.UTF-8</" "emphasis>” (see <xref linkend=\"utf-8-build\"/>)." msgstr "" -"在构建环境中导出环境变量“<emphassi role=\"strong\">LC_ALL=C.UTF-8</" +"在构建环境中导出环境变量“<emphasis role=\"strong\">LC_ALL=C.UTF-8</" "emphasis>”(参见 <xref linkend=\"utf-8-build\"/>)。" #. (itstool) path: listitem/simpara @@ -5782,7 +5782,7 @@ msgid "" msgstr "" "我们考虑 <emphasis role=\"strong\">lib</emphasis><emphasis>foo</emphasis> 这" "个库的上游 tarball 源码压缩包的名字从 <emphasis role=\"strong\">lib</" -"emphasis></emphasis><emphasis>foo-7.0</emphasis><emphasis role=\"strong\">." +"emphasis><emphasis>foo-7.0</emphasis><emphasis role=\"strong\">." "tar.gz</emphasis> 更新为了 <emphasis role=\"strong\">lib</" "emphasis><emphasis>foo-8.0</emphasis><emphasis role=\"strong\">.tar.gz</" "emphasis>,同时带有一次 SONAME 大版本的跳跃(并因此影响了其它软件包)。" @@ -6097,7 +6097,7 @@ msgid "" msgstr "" "对共享链接库来说,所需要的依赖库是由运行“<emphasis role=\"strong\">objdump -" "p</emphasis> <emphasis>/path/to/program</emphasis> <emphasis role=\"strong" -"\">| grep NEEDED</mephasis>”这样的命令来得到的,由 <emphasis role=\"strong" +"\">| grep NEEDED</emphasis>”这样的命令来得到的,由 <emphasis role=\"strong" "\">shlib</emphasis> 占位符进行变量替换。" #. (itstool) path: section/simpara @@ -9462,7 +9462,7 @@ msgid "" "in the <emphasis role=\"strong\">debian/control</emphasis> file, no special " "care is needed for updating the package after the Stretch 9.0 release." msgstr "" -"在 Stretch 9.0 的发布之后,如果在 emphasis role=\"strong\">debian/control</" +"在 Stretch 9.0 的发布之后,如果在 <emphasis role=\"strong\">debian/control</" "emphasis> 文件中从未定义过任何 <emphasis role=\"strong\">-dbg</emphasis> 软件" "包,则不需任何特殊配置。" diff --git a/po/zh-tw.po b/po/zh-tw.po index 31e922b..5b03234 100644 --- a/po/zh-tw.po +++ b/po/zh-tw.po @@ -5187,7 +5187,7 @@ msgid "" "Export the build environment as “<emphasis role=\"strong\">LC_ALL=C.UTF-8</" "emphasis>” (see <xref linkend=\"utf-8-build\"/>)." msgstr "" -"在構建環境中匯出環境變數“<emphassi role=\"strong\">LC_ALL=C.UTF-8</" +"在構建環境中匯出環境變數“<emphasis role=\"strong\">LC_ALL=C.UTF-8</" "emphasis>”(參見 <xref linkend=\"utf-8-build\"/>)。" #. (itstool) path: listitem/simpara @@ -5782,7 +5782,7 @@ msgid "" msgstr "" "我們考慮 <emphasis role=\"strong\">lib</emphasis><emphasis>foo</emphasis> 這" "個程式庫的上游 tarball 原始碼壓縮包的名字從 <emphasis role=\"strong\">lib</" -"emphasis></emphasis><emphasis>foo-7.0</emphasis><emphasis role=\"strong\">." +"emphasis><emphasis>foo-7.0</emphasis><emphasis role=\"strong\">." "tar.gz</emphasis> 更新為了 <emphasis role=\"strong\">lib</" "emphasis><emphasis>foo-8.0</emphasis><emphasis role=\"strong\">.tar.gz</" "emphasis>,同時帶有一次 SONAME 大版本的跳躍(並因此影響了其它套件)。" @@ -6098,7 +6098,7 @@ msgid "" msgstr "" "對共享連結程式庫來說,所需要的依賴程式庫是由執行“<emphasis role=\"strong" "\">objdump -p</emphasis> <emphasis>/path/to/program</emphasis> <emphasis " -"role=\"strong\">| grep NEEDED</mephasis>”這樣的命令來得到的,由 <emphasis " +"role=\"strong\">| grep NEEDED</emphasis>”這樣的命令來得到的,由 <emphasis " "role=\"strong\">shlib</emphasis> 佔位符進行變數替換。" #. (itstool) path: section/simpara @@ -9466,7 +9466,7 @@ msgid "" "in the <emphasis role=\"strong\">debian/control</emphasis> file, no special " "care is needed for updating the package after the Stretch 9.0 release." msgstr "" -"在 Stretch 9.0 的釋出之後,如果在 emphasis role=\"strong\">debian/control</" +"在 Stretch 9.0 的釋出之後,如果在 <emphasis role=\"strong\">debian/control</" "emphasis> 檔案中從未定義過任何 <emphasis role=\"strong\">-dbg</emphasis> 軟體" "包,則不需任何特殊配置。" -- 2.20.1