diff options
author | intrigeri <intrigeri@boum.org> | 2010-06-26 01:16:56 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-06-26 01:16:56 +0200 |
commit | 4f44534d72c9a9a947bc38a3cb4987705c25bea5 (patch) | |
tree | 0de696b5595e52ae03d9342b2f3e76428b7b41cd | |
parent | 924f559e5049a63488a5f2baca610299a7e02957 (diff) | |
download | ikiwiki-4f44534d72c9a9a947bc38a3cb4987705c25bea5.tar ikiwiki-4f44534d72c9a9a947bc38a3cb4987705c25bea5.tar.gz |
po: s/utf-8/UTF-8, to solve part of the double commit bug.
-rw-r--r-- | IkiWiki/Plugin/po.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 7d5dfee03..ac4401e48 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -902,15 +902,15 @@ sub refreshpot ($) { my $doc=Locale::Po4a::Chooser::new(po4a_type($masterfile), po4a_options($masterfile)); $doc->{TT}{utf_mode} = 1; - $doc->{TT}{file_in_charset} = 'utf-8'; - $doc->{TT}{file_out_charset} = 'utf-8'; + $doc->{TT}{file_in_charset} = 'UTF-8'; + $doc->{TT}{file_out_charset} = 'UTF-8'; $doc->read($masterfile); # let's cheat a bit to force porefs option to be passed to # Locale::Po4a::Po; this is undocument use of internal # Locale::Po4a::TransTractor's data, compulsory since this module # prevents us from using the porefs option. $doc->{TT}{po_out}=Locale::Po4a::Po->new({ 'porefs' => 'none' }); - $doc->{TT}{po_out}->set_charset('utf-8'); + $doc->{TT}{po_out}->set_charset('UTF-8'); # do the actual work $doc->parse; IkiWiki::prep_writefile(basename($potfile),dirname($potfile)); @@ -996,8 +996,8 @@ sub percenttranslated ($) { $doc->process( 'po_in_name' => [ $file ], 'file_in_name' => [ $masterfile ], - 'file_in_charset' => 'utf-8', - 'file_out_charset' => 'utf-8', + 'file_in_charset' => 'UTF-8', + 'file_out_charset' => 'UTF-8', ) or error("po(percenttranslated) ". sprintf(gettext("failed to translate %s"), $page)); my ($percent,$hit,$queries) = $doc->stats(); @@ -1143,8 +1143,8 @@ sub po_to_markup ($$) { $doc->process( 'po_in_name' => [ $infile ], 'file_in_name' => [ $masterfile ], - 'file_in_charset' => 'utf-8', - 'file_out_charset' => 'utf-8', + 'file_in_charset' => 'UTF-8', + 'file_out_charset' => 'UTF-8', ) or return $fail->(gettext("failed to translate")); $doc->write($outfile) or return $fail->(sprintf(gettext("failed to write %s"), $outfile)); |