further fixes for config data structure change
parent
20239007a7
commit
a4b4b464d2
|
@ -22,7 +22,8 @@ foreach my $file (@$files) {
|
||||||
$pagesources{$page}=$file; # used by po plugin functions
|
$pagesources{$page}=$file; # used by po plugin functions
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $ll (@{$config{po_slave_languages}}) {
|
foreach my $lang (@{$config{po_slave_languages}}) {
|
||||||
|
my ($ll, $name)=IkiWiki::Plugin::po::splitlangpair($lang);
|
||||||
$config{destdir}="../underlays/locale/$ll";
|
$config{destdir}="../underlays/locale/$ll";
|
||||||
|
|
||||||
foreach my $file (@$files) {
|
foreach my $file (@$files) {
|
||||||
|
|
|
@ -6,14 +6,14 @@ use IkiWiki::Setup::Standard {
|
||||||
# List here all languages that have translations.
|
# List here all languages that have translations.
|
||||||
# Listing languages without active translations
|
# Listing languages without active translations
|
||||||
# will excessively bloat things.
|
# will excessively bloat things.
|
||||||
po_slave_languages => {
|
po_slave_languages => [
|
||||||
'es' => 'Español',
|
'es|Español',
|
||||||
'de' => 'Deutsch',
|
'de|Deutsch',
|
||||||
'fr' => 'Français',
|
'fr|Français',
|
||||||
'da' => 'Dansk',
|
'da|Dansk',
|
||||||
'cs' => 'česky',
|
'cs|česky',
|
||||||
},
|
],
|
||||||
po_master_language => { 'code' => 'en', 'name' => 'English' },
|
po_master_language => 'en|English',
|
||||||
po_translatable_pages => "*",
|
po_translatable_pages => "*",
|
||||||
add_plugins => [qw{po}],
|
add_plugins => [qw{po}],
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue