$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";
foreach my $file (@$files) {
# List here all languages that have translations.
# Listing languages without active translations
# will excessively bloat things.
- po_slave_languages => {
- 'es' => 'Español',
- 'de' => 'Deutsch',
- 'fr' => 'Français',
- 'da' => 'Dansk',
- 'cs' => 'česky',
- },
- po_master_language => { 'code' => 'en', 'name' => 'English' },
+ po_slave_languages => [
+ 'es|Español',
+ 'de|Deutsch',
+ 'fr|Français',
+ 'da|Dansk',
+ 'cs|česky',
+ ],
+ po_master_language => 'en|English',
po_translatable_pages => "*",
add_plugins => [qw{po}],