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 => {
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;

View File

@ -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