summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-10-13 18:21:59 +0200
committerintrigeri <intrigeri@boum.org>2008-10-18 15:49:10 +0200
commit32cc0b336ae830831787b2024b855ed7db0a1589 (patch)
treeba3bbb1c58287083102ada00f73a299f0b22c60f
parentd39f69da7f392fb73a54b9fbeddfac497f5b824b (diff)
po plugin: po_slave_languages is a hash, rather than a hash of hashes
The latter seems to be unsupported by ikiwiki config system. Signed-off-by: intrigeri <intrigeri@boum.org>
-rw-r--r--IkiWiki/Plugin/po.pm8
-rw-r--r--doc/plugins/po.mdwn6
2 files changed, 7 insertions, 7 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index e06fd5043..0c95f6c14 100644
--- a/IkiWiki/Plugin/po.pm
+++ b/IkiWiki/Plugin/po.pm
@@ -45,9 +45,10 @@ sub getsetup () { #{{{
},
po_slave_languages => {
type => "string",
- example => {'fr' => { 'name' => 'Français' },
- 'es' => { 'name' => 'Castellano' },
- 'de' => { 'name' => 'Deutsch' },
+ example => {
+ 'fr' => 'Français',
+ 'es' => 'Castellano',
+ 'de' => 'Deutsch'
},
description => "slave languages (PO files)",
safe => 1,
@@ -244,7 +245,6 @@ sub istranslation ($) { #{{{
return 0;
} #}}}
-
package IkiWiki::PageSpec;
use warnings;
use strict;
diff --git a/doc/plugins/po.mdwn b/doc/plugins/po.mdwn
index daee882ad..28b69e04b 100644
--- a/doc/plugins/po.mdwn
+++ b/doc/plugins/po.mdwn
@@ -41,9 +41,9 @@ Configuration
`po_slave_languages` is used to set the list of supported "slave"
languages, such as:
- po_slave_languages => { 'fr' => { 'name' => 'Français', },
- 'es' => { 'name' => 'Castellano', },
- 'de' => { 'name' => 'Deutsch', }
+ po_slave_languages => { 'fr' => 'Français',
+ 'es' => 'Castellano',
+ 'de' => 'Deutsch',
}
Decide which pages are translatable