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
parent
d39f69da7f
commit
32cc0b336a
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue