[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#594831: debian-faq: Please, add po4a support



Package: debian-faq
Version: 4.0.4+nmu1
Severity: wishlist
Tags: l10n patch

Hi,

It would be nice for translators if the debian-faq allowed the use of
PO files: it makes the translation a lot easier to maintain, and
allows to have an idea if the translation is up to date or how much
"late" it is from tho original one, using some frontend like this one:

http://www.debian.org/international/l10n/po4a/fr

debian-doc@l.d.o is CC'ed since this remark is valid for any DDP
relative documentation.

Please find attach a short patch in order to permit this, at least
for the French translation. Note that this patch doesn't force to
use a PO files for every languages, and no Makefile will need to
be edited if another language decide to use a PO file as well.

The French translation is currently beeing updated using PO file,
so if noone speaks against, it will be applied in the Subversion
repository with the up to date French translation.

Cheers

David

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

debian-faq depends on no packages.

debian-faq recommends no packages.

Versions of packages debian-faq suggests:
ii  chromium-browser [w 5.0.375.127~r55887-1 Chromium browser
ii  dillo [www-browser] 0.8.6-3              Small and fast web browser
ii  epiphany-browser [w 2.30.3-1             Intuitive GNOME web browser
ii  evince [postscript- 2.30.3-1             Document (postscript, pdf) viewer
ii  galeon [www-browser 2.0.7-2.1+b1         GNOME web browser for advanced use
ii  ghostscript [postsc 8.71~dfsg2-6         The GPL Ghostscript PostScript/PDF
ii  gv [postscript-view 1:3.7.1-1            PostScript and PDF viewer for X
ii  iceweasel [www-brow 3.6.8-2              Web browser based on Firefox
ii  konqueror [www-brow 4:4.4.5-1            advanced file manager, web browser
ii  lynx-cur [www-brows 2.8.8dev.5-1         Text-mode WWW Browser with NLS sup
ii  okular [postscript- 4:4.4.5-1            document viewer for KDE
ii  w3m [www-browser]   0.5.2-9              WWW browsable pager with excellent

-- no debconf information
Index: po4a/po4a.cfg
===================================================================
--- po4a/po4a.cfg	(révision 0)
+++ po4a/po4a.cfg	(révision 0)
@@ -0,0 +1,5 @@
+[po_directory] po4a/po/
+
+[type: sgml] debian-faq.sgml $lang:$lang/debian-faq.sgml \
+		add_$lang:@po4a/add_$lang/$lang.add \
+		opt:ignore-inclusion=faqdynamic
Index: po4a/po/debian-faq.pot
===================================================================
--- po4a/po/debian-faq.pot	(révision 0)
+++ po4a/po/debian-faq.pot	(révision 0)
@@ -0,0 +1 @@
+
Index: Makefile
===================================================================
--- Makefile	(révision 7525)
+++ Makefile	(copie de travail)
@@ -12,7 +12,7 @@
 # this can and will be overridden 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) update-po
 
 langs ?= ru pt_BR it pl es fr de uk zh_CN
 
@@ -43,6 +43,9 @@
           echo "<!entity docversion \"CVS\">" >> faqdynamic.ent; \
         fi
 
+update-po:
+	po4a --force --rm-backups po4a/po4a.cfg
+
 validate:
 	nsgmls -ges -wall $(manual).sgml
 
Index: fr/Makefile
===================================================================
--- fr/Makefile	(révision 7525)
+++ fr/Makefile	(copie de travail)
@@ -58,7 +58,7 @@
 
 clean distclean:
 	rm -rf $(manual)*.$(currentlang).html
-	rm -f $(manual)*.{txt,ps,dvi,pdf,info*,aux,log,man,tex,toc,sasp*}
+	rm -f $(manual)*
 	rm -f *~ .*~ core tsa*
 
 .PHONY: all publish clean distclean validate
Index: debian/control
===================================================================
--- debian/control	(révision 7525)
+++ debian/control	(copie de travail)
@@ -7,8 +7,8 @@
 Build-Depends-Indep: debiandoc-sgml, texlive (>= 2007-11), texlive-latex-extra,
  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
-
+ latex-cjk-chinese-arphic-gbsn00lp, latex-cjk-chinese-arphic-gkai00mp,
+ po4a (>= 0.39)
 Standards-Version: 3.7.3
 Vcs-Browser: http://svn.debian.org/wsvn/ddp/manuals/trunk/debian-faq/
 Vcs-Svn: svn://svn.debian.org/ddp/manuals/trunk/debian-faq/

Reply to: