[Po4a-devel][CVS] po4a/t/data-21 extract.po-ok,1.2,1.3
by Martin Quinson
Update of /cvsroot/po4a/po4a/t/data-21
In directory haydn:/tmp/cvs-serv28265/data-21
Modified Files:
extract.po-ok
Log Message:
Fix false alarm resulting in a bug fix (reference line offset) [Jordi]
Index: extract.po-ok
===================================================================
RCS file: /cvsroot/po4a/po4a/t/data-21/extract.po-ok,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- extract.po-ok 25 May 2004 17:50:53 -0000 1.2
+++ extract.po-ok 29 Jun 2004 20:13:44 -0000 1.3
@@ -15,7 +15,7 @@
"Content-Transfer-Encoding: ENCODING"
# type: <dia:string>
-#: data-21/extract.dia:2
+#: data-21/extract.dia:1
#, no-wrap
msgid ""
"Test\n"
@@ -23,19 +23,19 @@
msgstr ""
# type: <dia:string>
-#: data-21/extract.dia:4
+#: data-21/extract.dia:3
#, no-wrap
msgid "Test string 5"
msgstr ""
# type: <dia:string>
-#: data-21/extract.dia:4
+#: data-21/extract.dia:3
#, no-wrap
msgid "Test string 6"
msgstr ""
# type: <dia:string>
-#: data-21/extract.dia:4
+#: data-21/extract.dia:3
#, no-wrap
msgid "Test string 8"
msgstr ""
20 years, 4 months
[Po4a-devel][CVS] po4a/t/data-02 man.po,1.2,1.3 man.po-empty,1.1,1.2 man.po-ok,1.1,1.2
by Martin Quinson
Update of /cvsroot/po4a/po4a/t/data-02
In directory haydn:/tmp/cvs-serv28265/data-02
Modified Files:
man.po man.po-empty man.po-ok
Log Message:
Fix false alarm resulting in a bug fix (reference line offset) [Jordi]
Index: man.po-empty
===================================================================
RCS file: /cvsroot/po4a/po4a/t/data-02/man.po-empty,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- man.po-empty 7 Nov 2003 15:10:17 -0000 1.1
+++ man.po-empty 29 Jun 2004 20:13:44 -0000 1.2
@@ -15,51 +15,51 @@
"Content-Transfer-Encoding: ENCODING"
# type: TH
-#: data-02/man:2 data-02/man:2
+#: data-02/man:1 data-02/man:1
#, no-wrap
msgid "test"
msgstr ""
# type: TH
-#: data-02/man:2
+#: data-02/man:1
#, no-wrap
msgid "TEST"
msgstr ""
# type: SH
-#: data-02/man:3
+#: data-02/man:2
#, no-wrap
msgid "Section1"
msgstr ""
# type: Plain text
-#: data-02/man:7
+#: data-02/man:6
msgid "blibli B<blabla> bloblo"
msgstr ""
# type: Plain text
-#: data-02/man:9
+#: data-02/man:8
msgid "B<blabla>"
msgstr ""
# type: Plain text
-#: data-02/man:11
+#: data-02/man:10
msgid "0"
msgstr ""
# type: Plain text
-#: data-02/man:13
+#: data-02/man:12
msgid "1"
msgstr ""
# type: SH
-#: data-02/man:14
+#: data-02/man:13
#, no-wrap
msgid "Section2"
msgstr ""
# type: Plain text
-#: data-02/man:18
+#: data-02/man:17
#, no-wrap
msgid ""
"Lalala\n"
@@ -68,36 +68,36 @@
msgstr ""
# type: Plain text
-#: data-02/man:20
+#: data-02/man:19
msgid "bliblu"
msgstr ""
# type: SH
-#: data-02/man:21
+#: data-02/man:20
#, no-wrap
msgid "Section3"
msgstr ""
# type: Plain text
-#: data-02/man:23
+#: data-02/man:22
#, no-wrap
msgid "I<.i.>.r.I<.I.>.R.I<to be continued>\n"
msgstr ""
# type: Plain text
-#: data-02/man:25
+#: data-02/man:24
#, no-wrap
msgid "B< bold text > back to roman I< italic text > back to roman\n"
msgstr ""
# type: Plain text
-#: data-02/man:27
+#: data-02/man:26
#, no-wrap
msgid "B< bold >I< italic>B< bold again >\n"
msgstr ""
# type: Plain text
-#: data-02/man:29
+#: data-02/man:28
#, no-wrap
msgid "The default is \"^([ \\n\\t]*[|E<gt>:}#])+\"\n"
msgstr ""
Index: man.po
===================================================================
RCS file: /cvsroot/po4a/po4a/t/data-02/man.po,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- man.po 26 Apr 2004 10:43:23 -0000 1.2
+++ man.po 29 Jun 2004 20:13:44 -0000 1.3
@@ -15,55 +15,55 @@
"Content-Transfer-Encoding: 8bit\n"
# type: TH
-#: data-02/man:2 data-02/man:2
+#: data-02/man:1 data-02/man:1
#, fuzzy, no-wrap
msgid "test"
msgstr "test"
# type: TH
-#: data-02/man:2
+#: data-02/man:1
#, fuzzy, no-wrap
msgid "TEST"
msgstr "TEST"
# type: SH
-#: data-02/man:3
+#: data-02/man:2
#, fuzzy, no-wrap
msgid "Section1"
msgstr "Sous-titre 1"
# type: Plain text
-#: data-02/man:7
+#: data-02/man:6
#, fuzzy
msgid "blibli B<blabla> bloblo"
msgstr "blabla B<blibli> blublu"
# type: Plain text
-#: data-02/man:9
+#: data-02/man:8
#, fuzzy
msgid "B<blabla>"
msgstr "B<Blahbla>"
# type: Plain text
-#: data-02/man:11
+#: data-02/man:10
#, fuzzy
msgid "0"
msgstr "0"
# type: Plain text
-#: data-02/man:13
+#: data-02/man:12
#, fuzzy
msgid "1"
msgstr "1"
# type: SH
-#: data-02/man:14
+#: data-02/man:13
#, fuzzy, no-wrap
msgid "Section2"
msgstr "Sous-titre 2"
# type: Plain text
-#: data-02/man:18
+#: data-02/man:17
#, fuzzy, no-wrap
msgid ""
"Lalala\n"
@@ -75,37 +75,37 @@
" }\n"
# type: Plain text
-#: data-02/man:20
+#: data-02/man:19
#, fuzzy
msgid "bliblu"
msgstr "blubli"
# type: SH
-#: data-02/man:21
+#: data-02/man:20
#, fuzzy, no-wrap
msgid "Section3"
msgstr "Sous-titre 3"
# type: Plain text
-#: data-02/man:23
+#: data-02/man:22
#, fuzzy, no-wrap
msgid "I<.i.>.r.I<.I.>.R.I<to be continued>\n"
msgstr "I<.i.>.r.I<.I.>.R.I<À suivre>\n"
# type: Plain text
-#: data-02/man:25
+#: data-02/man:24
#, fuzzy, no-wrap
msgid "B< bold text > back to roman I< italic text > back to roman\n"
msgstr "B< texte gras > retour à roman I< texte italique > retour à roman\n"
# type: Plain text
-#: data-02/man:27
+#: data-02/man:26
#, fuzzy, no-wrap
msgid "B< bold >I< italic>B< bold again >\n"
msgstr "B<gras >I< italique >B< gras à nouveau>\n"
# type: Plain text
-#: data-02/man:29
+#: data-02/man:28
#, fuzzy, no-wrap
msgid "The default is \"^([ \\n\\t]*[|E<gt>:}#])+\"\n"
msgstr "Le reglage par defaut est \"^([ \\n\\t]*[|E<gt>:}#])+\"\n"
Index: man.po-ok
===================================================================
RCS file: /cvsroot/po4a/po4a/t/data-02/man.po-ok,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- man.po-ok 7 Nov 2003 15:10:17 -0000 1.1
+++ man.po-ok 29 Jun 2004 20:13:44 -0000 1.2
@@ -15,51 +15,51 @@
"Content-Transfer-Encoding: 8bit\n"
# type: TH
-#: data/man:2 data/man:2
+#: data/man:1 data/man:1
#, no-wrap
msgid "test"
msgstr "test"
# type: TH
-#: data/man:2
+#: data/man:1
#, no-wrap
msgid "TEST"
msgstr "TEST"
# type: SH
-#: data/man:3
+#: data/man:2
#, no-wrap
msgid "Section1"
msgstr "Sous-titre 1"
# type: Plain text
-#: data/man:7
+#: data/man:6
msgid "blibli B<blabla> bloblo"
msgstr "blabla B<blibli> blublu"
# type: Plain text
-#: data/man:9
+#: data/man:8
msgid "B<blabla>"
msgstr "B<Blahbla>"
# type: Plain text
-#: data/man:11
+#: data/man:10
msgid "0"
msgstr "0"
# type: Plain text
-#: data/man:13
+#: data/man:12
msgid "1"
msgstr "1"
# type: SH
-#: data/man:14
+#: data/man:13
#, no-wrap
msgid "Section2"
msgstr "Sous-titre 2"
# type: Plain text
-#: data/man:18
+#: data/man:17
#, no-wrap
msgid ""
"Lalala\n"
@@ -71,37 +71,37 @@
" }\n"
# type: Plain text
-#: data/man:20
+#: data/man:19
msgid "bliblu"
msgstr "blubli"
# type: SH
-#: data/man:21
+#: data/man:20
#, no-wrap
msgid "Section3"
msgstr "Sous-titre 3"
# type: Plain text
-#: data/man:23
+#: data/man:22
#, no-wrap
msgid "I<.i.>.r.I<.I.>.R.I<to be continued>\n"
msgstr "I<.i.>.r.I<.I.>.R.I<À suivre>\n"
# type: Plain text
-#: data/man:25
+#: data/man:24
#, no-wrap
msgid "B< bold text > back to roman I< italic text > back to roman\n"
msgstr ""
"B< texte gras > retour à roman I< texte italique > retour à roman\n"
# type: Plain text
-#: data/man:27
+#: data/man:26
#, no-wrap
msgid "B< bold >I< italic>B< bold again >\n"
msgstr "B<gras >I< italique >B< gras à nouveau>\n"
# type: Plain text
-#: data/man:29
+#: data/man:28
#, no-wrap
msgid "The default is \"^([ \\n\\t]*[|E<gt>:}#])+\"\n"
msgstr "Le reglage par defaut est \"^([ \\n\\t]*[|E<gt>:}#])+\"\n"
20 years, 4 months
[Po4a-devel][CVS] po4a/debian rules,1.25,1.26
by Martin Quinson
Update of /cvsroot/po4a/po4a/debian
In directory haydn:/tmp/cvs-serv27278
Modified Files:
rules
Log Message:
Move the man page generation to the main Makefile so that they are available to non Debian user also [Jordi]
Index: rules
===================================================================
RCS file: /cvsroot/po4a/po4a/debian/rules,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- rules 26 May 2004 18:40:59 -0000 1.25
+++ rules 29 Jun 2004 19:59:01 -0000 1.26
@@ -1,12 +1,6 @@
#!/usr/bin/make -f
# This file is public domain software, originally written by Joey Hess.
-bins = gettextize updatepo translate normalize
-libs = $(wildcard lib/Locale/Po4a/*.pm)
-docs = po4a
-
-langs= fr
-
package = po4a
# Uncomment this to turn on verbose mode.
@@ -17,8 +11,7 @@
DESTDIR = $(CURDIR)/debian/$(package)
-build: build-stamp
-build-stamp:
+build:
dh_testdir
# Make sure the VERSION string were updated in binaries
@@ -32,63 +25,14 @@
exit 1; \
fi;
- perl Makefile.PL INSTALLDIRS=vendor
$(MAKE)
- @echo Update the translations
- $(MAKE) -C po
-
- @echo Compile the localized man pages
- -rm -rf mantmp
- mkdir mantmp
-# Woody version of pod2man does not accept the --name option,
-# so input file is temporarily copied.
- for bin in $(bins) ; do \
- for lang in $(langs) ; do \
- if [ -e po/pod/po4a-$$bin.$$lang.pod ] ; then \
- cp po/pod/po4a-$$bin.$$lang.pod mantmp/po4a-$$bin.pod && \
- pod2man --section=1 --center='Po4a Tools' --release='Po4a Tools' \
- mantmp/po4a-$$bin.pod > mantmp/po4a-$$bin.$$lang.1p; \
- rm -f mantmp/po4a-$$bin.pod; \
- fi; \
- done; \
- done
- for lib in $(libs) ; do \
- l=`echo $$lib|sed -e 's/\.pm//' -e 's/.*\///'`; \
- for lang in $(langs) ; do \
- if [ -e po/pod/$$l.$$lang.pod ] ; then \
- cp po/pod/$$l.$$lang.pod mantmp/$$l.pod && \
- pod2man --section=3pm --center='Po4a Tools' --release='Po4a Tools' \
- mantmp/$$l.pod > mantmp/Locale::Po4a::$$l.$$lang.3pm; \
- rm -f mantmp/$$l.pod; \
- fi; \
- done; \
- done
- for doc in $(docs) ; do \
- pod2man --section=7 --center='Po4a Tools' --release='Po4a Tools' \
- doc/$$doc.7.pod > mantmp/$$doc.7; \
- for lang in $(langs) ; do \
- if [ -e po/pod/$$doc.$$lang.pod ] ; then \
- cp po/pod/$$doc.$$lang.pod mantmp/$$doc.pod && \
- pod2man --section=7 --center='Po4a Tools' --release='Po4a Tools' \
- mantmp/$$doc.pod > mantmp/$$doc.$$lang.7; \
- rm -f mantmp/$$doc.pod; \
- fi; \
- done; \
- done
- touch build-stamp
-
clean:
dh_testdir
dh_testroot
- -$(MAKE) clean
- $(MAKE) -C po clean
- find -name '.#*'|xargs rm || true
- rm -rf t/tmp/* Makefile.old po4a.log
- rm -rf blib mantmp
+ $(MAKE) clean
- rm -f build-stamp
dh_clean
install: build
@@ -97,9 +41,7 @@
dh_clean -k
dh_installdirs
- $(MAKE) install PREFIX=$(DESTDIR)/usr
- $(MAKE) -C po/bin install DESTDIR=$(DESTDIR)
- $(MAKE) -C po/pod install DESTDIR=$(DESTDIR)
+ $(MAKE) install DESTDIR=$(DESTDIR)
# Build architecture-independent files here.
binary-indep: build install
@@ -114,11 +56,8 @@
# dh_installmime
# dh_installinit
# dh_installcron
- dh_installman mantmp/*
-# dh_installinfo
-# dh_undocumented
- dh_installchangelogs
- dh_compress
+#TODO: Now manpages are installed in the install target. Is it wrong for Debian?
+# dh_installman mantmp/*
dh_fixperms
dh_installdeb
dh_perl
@@ -136,7 +75,8 @@
tar: clean
version=`sed -e 's/.* (//' -e 's/-.*//' -e 1q debian/changelog`; \
echo Creating ../$(package)_$$version.orig.tar.gz; \
- tar cf - * | tarcust -p $(package)-$$version -x '.*CVS.*' -x '.*.cvsignore' -x 'debian/.*' | gzip --best > ../$(package)_$$version.orig.tar.gz
+ #tar cf - * | tarcust -p $(package)-$$version -x '.*CVS.*' -x '.*.cvsignore' -x 'debian/.*' | gzip --best > ../$(package)_$$version.orig.tar.gz
+ $(MAKE) tar
deb:
dpkg-buildpackage -i -rfakeroot
20 years, 4 months
[Po4a-devel][CVS] po4a MANIFEST,1.9,1.10
by Martin Quinson
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv9656
Modified Files:
MANIFEST
Log Message:
New build mecanism based on Module::Build [Jordi]
Index: MANIFEST
===================================================================
RCS file: /cvsroot/po4a/po4a/MANIFEST,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- MANIFEST 31 May 2004 04:45:59 -0000 1.9
+++ MANIFEST 29 Jun 2004 19:41:20 -0000 1.10
@@ -1,7 +1,8 @@
-MANIFEST This list of files (needed by MakeMaker)
-META.yml Module meta-data (added by MakeMaker)
+MANIFEST This list of files (needed by ModuleBuild)
+META.yml Module meta-data (added by ModuleBuild)
COPYING
-Makefile.PL The rules to build this module (for MakeMaker)
+Build.PL The rules to build this module (for ModuleBuild)
+Makefile
README
README.tests
TODO
20 years, 4 months
[Po4a-devel][CVS] po4a Build.PL,NONE,1.1 META.yml,1.4,1.5 Makefile.PL,1.4,NONE
by Martin Quinson
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv9209
Modified Files:
META.yml
Added Files:
Build.PL
Removed Files:
Makefile.PL
Log Message:
New build mecanism based on Module::Build [Jordi]
--- Makefile.PL DELETED ---
Index: META.yml
===================================================================
RCS file: /cvsroot/po4a/po4a/META.yml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- META.yml 12 Nov 2003 08:51:49 -0000 1.4
+++ META.yml 29 Jun 2004 19:39:35 -0000 1.5
@@ -1,12 +1,33 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: po4a
-version: 0.15.4
-version_from: lib/Locale/Po4a/TransTractor.pm
-installdirs: site
+--- #YAML:1.0
+name: po4a
+version: 0.16.3
+author:
+ - Martin Quinson <martin.quinson(a)tuxfamily.org>
+ - Denis Barbier <barbier(a)linuxfr.org>
+abstract: Tools for helping translation of documentation
+license: gpl
requires:
- Locale::gettext: 1.01
- SGMLS:
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+ Locale::gettext: 1.01
+ SGMLS: 0
+recommends: {}
+build_requires: {}
+conflicts: {}
+provides:
+ Locale::Po4a::Chooser:
+ file: lib/Locale/Po4a/Chooser.pm
+ Locale::Po4a::Dia:
+ file: lib/Locale/Po4a/Dia.pm
+ Locale::Po4a::KernelHelp:
+ file: lib/Locale/Po4a/KernelHelp.pm
+ Locale::Po4a::Man:
+ file: lib/Locale/Po4a/Man.pm
+ Locale::Po4a::Po:
+ file: lib/Locale/Po4a/Po.pm
+ Locale::Po4a::Pod:
+ file: lib/Locale/Po4a/Pod.pm
+ Locale::Po4a::Sgml:
+ file: lib/Locale/Po4a/Sgml.pm
+ Locale::Po4a::TransTractor:
+ file: lib/Locale/Po4a/TransTractor.pm
+ version: 0.16.3
+generated_by: Module::Build version 0.22
--- NEW FILE: Build.PL ---
use Module::Build;
Module::Build->new
( module_name => 'po4a',
license => 'gpl',
dist_version_from => 'lib/Locale/Po4a/TransTractor.pm', # finds $VERSION
requires => {Locale::gettext => '1.01',
SGMLS => 0},
script_files => ['po4a-gettextize', 'po4a-updatepo',
'po4a-translate', 'po4a-normalize'],
add_to_cleanup => ['t/tmp'],
dist_abstract => 'Tools for helping translation of documentation',
dist_author => ['Martin Quinson <martin.quinson(a)tuxfamily.org>',
'Denis Barbier <barbier(a)linuxfr.org>']
)->create_build_script;
20 years, 4 months
[Po4a-devel][CVS] po4a/po/bin Makefile,1.12,1.13
by Martin Quinson
Update of /cvsroot/po4a/po4a/po/bin
In directory haydn:/tmp/cvs-serv8721
Modified Files:
Makefile
Log Message:
Various cleanups [Jordi]
Index: Makefile
===================================================================
RCS file: /cvsroot/po4a/po4a/po/bin/Makefile,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Makefile 26 May 2004 19:04:37 -0000 1.12
+++ Makefile 29 Jun 2004 19:35:06 -0000 1.13
@@ -1,26 +1,24 @@
# List here all source files with translatable strings.
MODULE=po4a
-POTFILES=$(wildcard ../../lib/Locale/Po4a/*.pm) \
+PODFILES=$(wildcard ../../lib/Locale/Po4a/*.pm) \
../../po4a-gettextize ../../po4a-normalize ../../po4a-translate ../../po4a-updatepo
-POFILES=$(wildcard *.po)
-MOFILES=$(POFILES:.po=.mo)
+LANGS=$(basename $(wildcard *.po))
-all: $(MODULE).pot $(MOFILES)
+all: $(MODULE).pot $(addsuffix .mo,$(LANGS))
install: all
- for file in $(MOFILES); do \
- lang=`echo $$file | sed 's/\.mo//'`; \
+ for lang in $(LANGS); do \
install -d $(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/; \
- install -m 0644 $$file $(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/$(MODULE).mo; \
+ install -m 0644 $$lang.mo $(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/$(MODULE).mo; \
done
-$(MODULE).pot: $(POTFILES)
+$(MODULE).pot: $(PODFILES)
# xgettext can mostly handle perl files as C files, though it gets a bit
# confused about single quotes in comments, and the gettext() calls have to
# use double-quoted strings or it will ignore them.
@echo "Rebuilding the pot file"
- xgettext -L Perl $(POTFILES) -o $@.new 2>/dev/null
+ xgettext -L Perl $(PODFILES) -o $@.new 2>/dev/null
@if [ -e $@ ] ; then \
if diff -q -I'#:' -I'POT-Creation-Date:' -I'PO-Revision-Date:' $@ $@.new>/dev/null ; then \
rm -f $@.new; \
@@ -33,7 +31,7 @@
fi
clean:
- rm -f $(MOFILES) messages *.mo *~
+ rm -f messages *.mo *~
%.mo: %.po
msgfmt -o $@ $<
@@ -52,10 +50,9 @@
@msgfmt --statistics $@
check:
- @for file in $(POFILES); do \
- lang=`echo $$file | sed 's/\.po//'`; \
+ @for lang in $(LANGS); do \
printf "$$lang: "; \
msgfmt -o /dev/null -c -v --statistics $$lang.po;\
done
-update: $(MODULE).pot $(POFILES)
+update: $(MODULE).pot $(addsuffix .po,$(LANGS))
20 years, 4 months
[Po4a-devel][CVS] po4a/po/pod Makefile,1.11,1.12
by Martin Quinson
Update of /cvsroot/po4a/po4a/po/pod
In directory haydn:/tmp/cvs-serv1413
Modified Files:
Makefile
Log Message:
Huge improvement by Jordi allowing to handle more than one language
Index: Makefile
===================================================================
RCS file: /cvsroot/po4a/po4a/po/pod/Makefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Makefile 26 May 2004 18:03:12 -0000 1.11
+++ Makefile 29 Jun 2004 19:16:57 -0000 1.12
@@ -11,10 +11,8 @@
PATHFILES=$(PATHLIBS) $(PATHSCRIPTS) $(PATHDOCS)
-POFILES=$(wildcard *.po)
-
-TARGET_LANG=fr
-TRANSLATIONS=$(foreach lang,$(TARGET_LANG),$(foreach file,$(FILES),$(file).$(lang).pod))
+LANGS=$(basename $(wildcard *.po))
+TRANSLATIONS=$(foreach lang,$(LANGS),$(foreach file,$(FILES),$(file).$(lang).pod))
all: po4a-pod.pot $(TRANSLATIONS)
@@ -39,30 +37,38 @@
fi
@msgfmt --statistics $@
-LocalePo4a%.fr.pod: ../../lib/Locale/Po4a/% fr.po
- @PERL5LIB=../../lib ../../po4a-translate -f pod -v -m $< -p fr.po -l $@
- @if [ -e $@ ] ; then \
- mv -f $@ `echo $@| \
+
+##### BEGIN TEMPLATES #####
+define TEMPLATES
+
+LocalePo4a%.$(1).pod: ../../lib/Locale/Po4a/% $(1).po
+ @PERL5LIB=../../lib ../../po4a-translate -f pod -v -m $$< -p $(1).po -l $$@
+ @if [ -e $$@ ] ; then \
+ mv -f $$@ `echo $$@| \
sed 's/LocalePo4a/Locale::Po4a::/' | \
sed 's/\.pm//'` ; \
fi
-%.fr.pod: ../../% fr.po
- @PERL5LIB=../../lib ../../po4a-translate -f pod -v -m $< -p fr.po -l $@ || true
+%.$(1).pod: ../../% $(1).po
+ @PERL5LIB=../../lib ../../po4a-translate -f pod -v -m $$< -p $(1).po -l $$@ || true
-%.fr.pod: ../../doc/%.pod fr.po
- @PERL5LIB=../../lib ../../po4a-translate -f pod -v -m $< -p fr.po -l $@ || true
+%.$(1).pod: ../../doc/%.pod $(1).po
+ @PERL5LIB=../../lib ../../po4a-translate -f pod -v -m $$< -p $(1).po -l $$@ || true
+
+endef
+##### END TEMPLATES #####
+
+$(foreach lang,$(LANGS),$(eval $(call TEMPLATES,$(lang))))
clean:
rm -f messages *.mo *.pod *~
check:
- @for file in $(POFILES); do \
- lang=`echo $$file | sed 's/\.po//'`; \
+ @for lang in $(LANGS); do \
printf "$$lang: "; \
msgfmt -o /dev/null -c -v --statistics $$lang.po;\
done
-update: po4a-pod.pot $(POFILES) $(TRANSLATIONS)
+update: po4a-pod.pot $(addsuffix .po,$(LANGS)) $(TRANSLATIONS)
-.PHONY:check clean install update
+.PHONY:all check clean install update
20 years, 4 months
[Po4a-devel][CVS] po4a/lib/Locale/Po4a TransTractor.pm,1.18,1.19
by Martin Quinson
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv4790
Modified Files:
TransTractor.pm
Log Message:
Fix two typos [Michael Wiedmann]
Index: TransTractor.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TransTractor.pm,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- TransTractor.pm 29 Jun 2004 03:48:29 -0000 1.18
+++ TransTractor.pm 29 Jun 2004 17:46:06 -0000 1.19
@@ -31,7 +31,7 @@
where they were not expected like documentation.
This class is the ancestor of all po4a parsers used to parse a document to
-search translatable strings, extract them to a po file and remplace them by
+search translatable strings, extract them to a po file and replace them by
their translation in the output document.
More formally, it takes the following arguments as input:
@@ -60,7 +60,7 @@
=item -
a translated document, with the same structure than the one in input, but
-with all translatable strings remplaced with the translations found in the
+with all translatable strings replaced with the translations found in the
po file provided in input.
=back
20 years, 4 months
[Po4a-devel]Patch for tests
by Jordi Vilalta
Hi,
after fixing the refline offset there are some tests that fail, because
they have old reflines.
I attach a patch to fix them.
Regards,
Jordi Vilalta
20 years, 4 months
[Po4a-devel]TransTractor.pm: typos
by Michael Wiedmann
Hi,
the following diff output corrects two typos in TransTractor.pm.
Michael
Index: TransTractor.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TransTractor.pm,v
retrieving revision 1.18
diff -u -r1.18 TransTractor.pm
--- TransTractor.pm 29 Jun 2004 03:48:29 -0000 1.18
+++ TransTractor.pm 29 Jun 2004 06:56:35 -0000
@@ -31,7 +31,7 @@
where they were not expected like documentation.
This class is the ancestor of all po4a parsers used to parse a document to
-search translatable strings, extract them to a po file and remplace them by
+search translatable strings, extract them to a po file and replace them by
their translation in the output document.
More formally, it takes the following arguments as input:
@@ -60,7 +60,7 @@
=item -
a translated document, with the same structure than the one in input, but
-with all translatable strings remplaced with the translations found in the
+with all translatable strings replaced with the translations found in the
po file provided in input.
=back
--
20 years, 4 months