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>
master
intrigeri 2008-10-13 18:21:59 +02:00
parent d39f69da7f
commit 32cc0b336a
2 changed files with 7 additions and 7 deletions

View File

@ -45,9 +45,10 @@ sub getsetup () { #{{{
}, },
po_slave_languages => { po_slave_languages => {
type => "string", type => "string",
example => {'fr' => { 'name' => 'Français' }, example => {
'es' => { 'name' => 'Castellano' }, 'fr' => 'Français',
'de' => { 'name' => 'Deutsch' }, 'es' => 'Castellano',
'de' => 'Deutsch'
}, },
description => "slave languages (PO files)", description => "slave languages (PO files)",
safe => 1, safe => 1,
@ -244,7 +245,6 @@ sub istranslation ($) { #{{{
return 0; return 0;
} #}}} } #}}}
package IkiWiki::PageSpec; package IkiWiki::PageSpec;
use warnings; use warnings;
use strict; use strict;

View File

@ -41,9 +41,9 @@ Configuration
`po_slave_languages` is used to set the list of supported "slave" `po_slave_languages` is used to set the list of supported "slave"
languages, such as: languages, such as:
po_slave_languages => { 'fr' => { 'name' => 'Français', }, po_slave_languages => { 'fr' => 'Français',
'es' => { 'name' => 'Castellano', }, 'es' => 'Castellano',
'de' => { 'name' => 'Deutsch', } 'de' => 'Deutsch',
} }
Decide which pages are translatable Decide which pages are translatable