Package: debian-faq Version: 5.0 Severity: wishlist Tags: patch l10n Hi Javier,
The date displayed in the translated documents are not translated, the following patch solves the issue for the French translation (but forces the use of plain language code (e.g. “fr_FR”) in the Makefile related to translation. I hope a better solution could be found, e.g. a reliable way to generate the “fr_FR” string from “fr”, in order to keep the same Makefile among translation). If you believe that the proposed solution is sane enough, I'd be happy to propose (and commit) the full patch, for other languages too, once tested, but if someone has a better idea to fix this issue, any advice would be welcome. Regards David *** /tmp/debian-faq-date.patch Index: po4a/po4a.cfg =================================================================== --- po4a/po4a.cfg (révision 8964) +++ po4a/po4a.cfg (copie de travail) @@ -3,4 +3,4 @@ [type: sgml] debian-faq.sgml $lang:$lang/debian-faq.sgml \ add_$lang:?@po4a/add_$lang/$lang.add \ opt:"-L ISO-8859-15" \ - opt:"-o ignore-inclusion=faqdynamic.ent" + opt:"-o ignore-inclusion=faqdynamicdata" Index: fr/Makefile =================================================================== --- fr/Makefile (révision 8964) +++ fr/Makefile (copie de travail) @@ -12,7 +12,7 @@ # this can and will be overriden by a higher level makefile PUBLISHDIR := /org/www.debian.org/www/doc/manuals -sources := $(manual).sgml faqstatic.ent ../faqdynamic.ent $(wildcard *.sgml) +sources := $(manual).sgml faqstatic.ent faqdynamic.ent $(wildcard *.sgml) export LANG=C # stupid debiandoc stuff uses strings in another language otherwise @@ -28,8 +28,9 @@ faqstatic.ent: ln -sf ../$@ . -../faqdynamic.ent: - cd .. && $(MAKE) faqdynamic.ent +faqdynamic.ent: + echo "<!entity docdate \"$(shell LC_ALL=fr_FR date +'%-d %B %Y')\">" > faqdynamic.ent + echo "<!entity docversion \"` LC_ALL=C dpkg-parsechangelog -l../debian/changelog | grep '^Version: ' | sed 's/^Version: *//'`\">" >> faqdynamic.ent; \ validate: nsgmls -ges -wall $(manual).sgml @@ -59,6 +60,6 @@ clean distclean: rm -rf $(manual)*.$(currentlang).html rm -f $(manual)* - rm -f *~ .*~ core tsa* + rm -f faqdynamic.ent *~ .*~ core tsa* .PHONY: all publish clean distclean validate Index: debian/control =================================================================== --- debian/control (révision 8964) +++ debian/control (copie de travail) @@ -9,7 +9,7 @@ texlive-lang-cyrillic, latex-cjk-chinese, latex-cjk-chinese-arphic-bkai00mp, latex-cjk-chinese-arphic-bsmi00lp, latex-cjk-chinese-arphic-gbsn00lp, latex-cjk-chinese-arphic-gkai00mp, - ghostscript, po4a + ghostscript, po4a, locales-all Standards-Version: 3.9.1 Vcs-Browser: http://svn.debian.org/wsvn/ddp/manuals/trunk/debian-faq/ Vcs-Svn: svn://svn.debian.org/ddp/manuals/trunk/debian-faq/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org