[Po4a-commits] r2356 - /trunk/share/po4a-build

barbier-guest at users.alioth.debian.org barbier-guest at users.alioth.debian.org
Wed Nov 24 00:27:56 UTC 2010


Author: barbier-guest
Date: Wed Nov 24 00:27:53 2010
New Revision: 2356

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2356
Log:
Add comments in share/po4a-build to help translators

Modified:
    trunk/share/po4a-build

Modified: trunk/share/po4a-build
URL: http://svn.debian.org/wsvn/po4a/trunk/share/po4a-build?rev=2356&op=diff
==============================================================================
--- trunk/share/po4a-build (original)
+++ trunk/share/po4a-build Wed Nov 24 00:27:53 2010
@@ -254,14 +254,16 @@
 	for P in $XMLPACKAGES; do
 		if [ $d = $P ]; then
 			for X in $XMLMAN1; do
+				# TRANSLATORS: $X contains the name of the manual page
 				eval_gettext "Processing untranslated files for \$X (1). . ."; echo
 				MANDIR=$BASEDIR/$P/man/man1/
 				XML_CATALOG_FILES="/etc/xml/catalog" \
 				xsltproc -o $MANDIR --nonet $XSLFILE $XMLDIR/$X
 			done
 			for X3 in $XMLMAN3; do
+				# TRANSLATORS: $X3 contains the name of the manual page
 				eval_gettext "Processing untranslated files for \$X3 (3). . ."; echo
-					MANDIR=$BASEDIR/$P/man/man3/
+				MANDIR=$BASEDIR/$P/man/man3/
 				XML_CATALOG_FILES="/etc/xml/catalog" \
 				xsltproc -o $MANDIR --nonet $XSLFILE $XMLDIR/$X3
 			done
@@ -271,6 +273,7 @@
 		if [ $d = "$POD" ]; then
 			for file in $PODFILE; do
 				LOCAL=`basename $file`
+				# TRANSLATORS: $file contains the basename of the POD file
 				eval_gettext "Processing untranslated files for \$file (1) . . ."; echo
 				pod2man -s 1 $file $BASEDIR/$POD/man/man1/$LOCAL.1
 			done
@@ -278,6 +281,7 @@
 				for file in $PODMODULES; do
 					# a bit of sed magic to convert a path to a module name.
 					name=`echo $file| sed -e 's/^lib\///'|sed -e 's/\//::/g'|sed -e 's/\.pm$//'`
+					# TRANSLATORS: $name contains the Perl module name
 					eval_gettext "Processing untranslated files for \$name (3) . . ."; echo
 					pod2man -s 3 $file $BASEDIR/$POD/man/man3/$name.3
 				done
@@ -285,6 +289,7 @@
 			if [ -n "$POD5FILES" ]; then
 				for file in $POD5FILES; do
 					LOCAL=`basename $file`
+					# TRANSLATORS: $file contains the basename of the POD file
 					eval_gettext "Processing untranslated files for \$file (5) . . ."; echo
 					# shorten names that already contain the 5.
 					SHORT=`echo $LOCAL|cut -d'5' -f1|sed -e 's/\.$//'`
@@ -298,6 +303,7 @@
 			if [ -n "$POD7FILES" ]; then
 				for file in $POD7FILES; do
 					LOCAL=`basename $file`
+					# TRANSLATORS: $file contains the basename of the POD file
 					eval_gettext "Processing untranslated files for \$file (7) . . ."; echo
 					# shorten names that already contain the 7.
 					SHORT=`echo $LOCAL|cut -d'7' -f1|sed -e 's/\.$//'`
@@ -318,6 +324,7 @@
 			if [ $d = "$P" ]; then
 				for X in $XMLMAN1; do
 					if [ -f $XMLDIR/$l/$X ]; then
+						# TRANSLATORS: $l contains language code, $X contains the name of the manual page
 						eval_gettext "Processing \$l translations for \$X (1). . ."; echo
 						MANDIR=$BASEDIR/$P/man/$l/man1/
 						XML_CATALOG_FILES="/etc/xml/catalog" \
@@ -326,6 +333,7 @@
 				done
 				for X3 in $XMLMAN3; do
 					if [ -f $XMLDIR/$l/$X3 ]; then
+						# TRANSLATORS: $l contains language code, $X3 contains the name of the manual page
 						eval_gettext "Processing \$l translations for \$X3 (3). . ."; echo
 						MANDIR=$BASEDIR/$P/man/$l/man3/
 						XML_CATALOG_FILES="/etc/xml/catalog" \
@@ -339,6 +347,7 @@
 				for file in $PODFILE; do
 					LOCAL=`basename $file`
 					if [ -f $BASEDIR/pod/1/$l/$LOCAL ]; then
+						# TRANSLATORS: $l contains language code, $file contains the basename of the POD file
 						eval_gettext "Processing \$l translations for \$file (1). . ."; echo
 						pod2man --utf8 -s 1 $BASEDIR/pod/1/$l/$LOCAL $BASEDIR/$POD/man/$l/man1/$LOCAL.1
 					fi
@@ -349,6 +358,7 @@
 					# a bit of sed magic to convert a path to a module name.
 					name=`echo $file| sed -e 's/^lib\///'|sed -e 's/\//::/g'|sed -e 's/\.pm$//'`
 					if [ -f $BASEDIR/pod/3/$l/$file ]; then
+						# TRANSLATORS: $l contains language code, $name contains the Perl module name
 						eval_gettext "Processing \$l translations for \$name (3). . ."; echo
 						pod2man --utf8 -n $name -s 3 $BASEDIR/pod/3/$l/$file $BASEDIR/$POD/man/$l/man3/$name.3
 					fi
@@ -358,6 +368,7 @@
 				for file in $POD5FILES; do
 					LOCAL=`basename $file`
 					if [ -f $BASEDIR/pod/5/$l/$LOCAL ]; then
+						# TRANSLATORS: $l contains language code, $file contains the basename of the POD file
 						eval_gettext "Processing \$l translations for \$file (5). . ."; echo
 						# shorten names that already contain the 5.
 						SHORT=`echo $LOCAL|cut -d'5' -f1|sed -e 's/\.$//'`
@@ -373,6 +384,7 @@
 				for file in $POD7FILES; do
 					LOCAL=`basename $file`
 					if [ -f $BASEDIR/pod/7/$l/$LOCAL ]; then
+						# TRANSLATORS: $l contains language code, $file contains the basename of the POD file
 						eval_gettext "Processing \$l translations for \$file (7). . ."; echo
 						# shorten names that already contain the 7.
 						SHORT=`echo $LOCAL|cut -d'7' -f1|sed -e 's/\.$//'`




More information about the Po4a-commits mailing list