[Po4a-commits] po4a po4a,1.18,1.19

Jordi Vilalta po4a-devel@lists.alioth.debian.org
Sat, 06 Nov 2004 15:09:07 +0000


Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv13460

Modified Files:
	po4a 
Log Message:
Added the -L option (forgot to commit it before)


Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- po4a	17 Aug 2004 22:20:52 -0000	1.18
+++ po4a	6 Nov 2004 15:09:05 -0000	1.19
@@ -98,6 +98,12 @@
 master documents must use the same charset for now. This is a known
 limitation, and we are working on solving this.
 
+=item -L, --localized-charset
+
+Charset of the files containing the localized documents. Note that all
+translated documents will use the same charset for now. This is a known
+limitation, and we are working on solving this.
+
 =item -A, --addendum-charset
 
 Charset of the addenda. Note that all addenda should be in the same charset.
@@ -191,12 +197,13 @@
 $debug = 0;
 $split = 0;
 my ($threshold)=(80);
-my ($mastchar,$addchar);
+my ($mastchar,$locchar,$addchar);
 Getopt::Long::config('bundling', 'no_getopt_compat', 'no_auto_abbrev');
 GetOptions(
         'help|h'        => \$help,
     
 	'master-charset|M=s'    => \$mastchar,
+	'localized-charset|L=s' => \$locchar,
 	'addendum-charset|A=s' => \$addchar,
 
         'verbose|v'     => \@verbose,
@@ -406,6 +413,7 @@
 	              'file_out_name' => $document{$master}{$lang},
 	              'po_in_name'    => \@po_in_name,
                       'file_in_charset'  => $mastchar,
+                      'file_out_charset' => $locchar,
                       'addendum_charset' => $addchar);
 	
 	my ($percent,$hit,$queries) = $doc->stats();