[Po4a-commits] r2763 - in /trunk/t: 23-man.t data-23/tbl-textblock.1 data-23/tbl-textblock.pot

mquinson at users.alioth.debian.org mquinson at users.alioth.debian.org
Sun Jun 22 19:24:04 UTC 2014


Author: mquinson
Date: Sun Jun 22 19:24:04 2014
New Revision: 2763

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2763
Log:
add a test case against Debian's #748601

Added:
    trunk/t/data-23/tbl-textblock.1
    trunk/t/data-23/tbl-textblock.pot
Modified:
    trunk/t/23-man.t

Modified: trunk/t/23-man.t
URL: http://svn.debian.org/wsvn/po4a/trunk/t/23-man.t?rev=2763&op=diff
==============================================================================
--- trunk/t/23-man.t	(original)
+++ trunk/t/23-man.t	Sun Jun 22 19:24:04 2014
@@ -130,6 +130,13 @@
     'run'  => "perl ../po4a-translate -f #format# -m data-23/mdoc.1 -p data-23/mdoc.fr.po -l tmp/mdoc.fr -L ISO-8859-1",
     'test' => "diff -u $diff_pod_flags data-23/mdoc.fr tmp/mdoc.fr",
     'doc'  => "translate this document",
+};
+
+# tbl format
+push @tests, {
+    'run'  => "LC_ALL=C perl ../po4a-gettextize -f #format# -m data-23/tbl-textblock.1 -p tmp/tbl-textblock.pot 2>/dev/null",
+    'test' => "perl compare-po.pl data-23/tbl-textblock.pot tmp/tbl-textblock.pot",
+    'doc'  => "Right handling of text blocs in tbl macros",
 };
 
 # Mixed mdoc and roff format
@@ -197,7 +204,7 @@
   'doc'  => "translate this document",
 };
 
-use Test::More tests => 70; # $formats * $tests * 2
+use Test::More tests => 72; # $formats * $tests * 2
 
 foreach my $format (@formats) {
     for (my $i=0; $i<scalar @tests; $i++) {

Added: trunk/t/data-23/tbl-textblock.1
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-23/tbl-textblock.1?rev=2763&op=file
==============================================================================
--- trunk/t/data-23/tbl-textblock.1	(added)
+++ trunk/t/data-23/tbl-textblock.1	Sun Jun 22 19:24:04 2014
@@ -0,0 +1,26 @@
+.\" This chunk comes from ps(1). It is intented to test
+.\" https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748601
+
+%cpu    %CPU    T{
+cpu utilization of the process in "##.#" format.  It is the CPU time
+used divided by the time the process has been running (cputime/realtime
+ratio), expressed as a percentage. It will not add up to 100% unless you
+are lucky.  (alias\ \fBpcpu\fR).
+T}
+
+
+class   CLS     T{
+scheduling class of the process.  (alias\ \fBpolicy\fR,\ \fBcls\fR).
+Field's possible values are:
+.br
+\-      not reported
+.br
+TS      SCHED_OTHER
+.br
+FF      SCHED_FIFO
+.br
+RR      SCHED_RR
+.br
+?       unknown value
+T}
+			    

Added: trunk/t/data-23/tbl-textblock.pot
URL: http://svn.debian.org/wsvn/po4a/trunk/t/data-23/tbl-textblock.pot?rev=2763&op=file
==============================================================================
--- trunk/t/data-23/tbl-textblock.pot	(added)
+++ trunk/t/data-23/tbl-textblock.pot	Sun Jun 22 19:24:04 2014
@@ -0,0 +1,60 @@
+# SOME DESCRIPTIVE TITLE
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"POT-Creation-Date: 2014-06-22 21:21+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#.  This chunk comes from ps(1). It is intented to test
+#.  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748601
+#. type: Plain text
+#: data-23/tbl-textblock.1:10
+msgid ""
+"%cpu %CPU T{ cpu utilization of the process in \"##.#\" format.  It is the "
+"CPU time used divided by the time the process has been running "
+"(cputime/realtime ratio), expressed as a percentage. It will not add up to "
+"100% unless you are lucky.  (alias\\ B<pcpu>).  T}"
+msgstr ""
+
+#. type: Plain text
+#: data-23/tbl-textblock.1:15
+msgid ""
+"class CLS T{ scheduling class of the process.  (alias\\ B<policy>,\\ "
+"B<cls>).  Field's possible values are:"
+msgstr ""
+
+#. type: Plain text
+#: data-23/tbl-textblock.1:17
+msgid "- not reported"
+msgstr ""
+
+#. type: Plain text
+#: data-23/tbl-textblock.1:19
+msgid "TS SCHED_OTHER"
+msgstr ""
+
+#. type: Plain text
+#: data-23/tbl-textblock.1:21
+msgid "FF SCHED_FIFO"
+msgstr ""
+
+#. type: Plain text
+#: data-23/tbl-textblock.1:23
+msgid "RR SCHED_RR"
+msgstr ""
+
+#. type: Plain text
+#: data-23/tbl-textblock.1:26
+msgid "? unknown value T}"
+msgstr ""




More information about the Po4a-commits mailing list