]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po: Configuring the same language as master and slave confuses processing; so filter...
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 10 Apr 2010 22:28:15 +0000 (18:28 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 10 Apr 2010 22:28:15 +0000 (18:28 -0400)
IkiWiki/Plugin/po.pm
debian/changelog

index 00c58fbe54f4992dd802496157ecd267a2ac30bf..759e812e61bb3218be256504585ee61e122dd4ee 100644 (file)
@@ -133,6 +133,7 @@ sub checkconfig () {
                                      $field, 'po'));
                }
        }
+       delete $config{po_slave_languages}{$config{po_master_language}{code}};;
 
        map {
                islanguagecode($_)
@@ -174,7 +175,6 @@ sub checkconfig () {
                if ($config{po_master_language}{code} ne 'en') {
                        # Add underlay containing translated source files
                        # for the master language.
-print STDERR "added underlay locale/$config{po_master_language}{code}/$underlay\n";
                        add_underlay("locale/$config{po_master_language}{code}/$underlay")
                                if -d "$config{underlaydirbase}/locale/$config{po_master_language}{code}/$underlay";
                }
index 113138358f92f2e1762c7bbd0c8b9ecec1d00072..2085785276f447b2d8693731f08e1c13575d8f05 100644 (file)
@@ -25,6 +25,8 @@ ikiwiki (3.20100410) UNRELEASED; urgency=low
   * Update dependency for git-core to git transition.
   * po: Check that translated underlay directories exist before using them
     for master language.
+  * po: Configuring the same language as master and slave confuses processing;
+    so filter out such a misconfiguration.
 
  -- Joey Hess <joeyh@debian.org>  Sun, 04 Apr 2010 12:17:11 -0400