po: Support running with a non-english master lang; add translated underlays
[ikiwiki] / underlaypo.setup
1 #!/usr/bin/perl
2 # Configuration file for ikiwiki that uses the po plugin to build/update
3 # po and pot files for pages in the underlays.
4
5 use IkiWiki::Setup::Standard {
6         # List here all languages that have translations.
7         # Listing languages without active translations
8         # will excessively bloat things.
9         po_slave_languages => {
10                 #'fr' => 'Français',
11                 #'es' => 'Español',
12                 #'de' => 'Deutsch',
13         },
14         po_master_language => { 'code' => 'en', 'name' => 'English' },
15         po_translatable_pages => "*",
16         add_plugins => [qw{po}],
17
18         wikiname => "ikiwiki",
19         srcdir => "po/underlays",
20         destdir => "po/html",
21         templatedir => "templates",
22         # we don't want to pull in the normal underlays
23         underlaydirbase => "po/underlays/empty",
24         underlaydir => "po/underlays/empty",
25         discussion => 0,
26         locale => '',
27         verbose => 1,
28         syslog => 0,
29 }