[Po4a-commits] "po4a/lib/Locale/Po4a Po.pm,1.89,1.90"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Fri Feb 29 20:03:06 UTC 2008


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory alioth:/tmp/cvs-serv518/lib/Locale/Po4a

Modified Files:
	Po.pm 
Log Message:
Warn when the read PO file contains messages with more than 2 plural forms.


Index: Po.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Po.pm,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -d -r1.89 -r1.90
--- Po.pm	29 Feb 2008 19:55:57 -0000	1.89
+++ Po.pm	29 Feb 2008 20:03:03 -0000	1.90
@@ -285,6 +285,9 @@
                     $buffer = "$2";
                 } elsif ($1 eq "2") {
                     $msgstr_plural = $buffer;
+                    warn wrap_ref_mod("$filename:$linenum",
+                                      "po4a::po",
+                                      dgettext("po4a", "Messages with more than 2 plural forms are not supported."));
                 }
             } elsif ($line =~ /^(".*")$/) {
                 # continuation of a line




More information about the Po4a-commits mailing list