po: If msgmerge falls over on a problem po file, print a warning message, but don't let this problem crash ikiwiki entirely.
Add two template variables, expose html language code and language direction.
prune: do not prune beyond an optional base directory, and add a test Previously, prune("wiki/srcdir/sandbox/test.mdwn") could delete srcdir or even wiki, if they happened to be empty. This is rarely what you want: there's usually some base directory (destdir, srcdir, transientdir or another subdirectory of wikistatedir) beyond which you do not want to delete.
Added a "changes" hook. Renamed the "change" hook to "rendered", but the old hook name is called for now for back-compat.
avoid unnecessary uses of UNIVERSAL Foo->Bar->can("method") works just as well, even if Foo::Bar is not loaded. Using UNIVERSAL::can is deprecated. But, I was unable to easily eliminate conditional.pm's use of UNIVERSAL::can
po: add lang_code and lang_name template variables.
Merge remote-tracking branch 'intrigeri/po'
po: set Locale::Po4a::Xml's ontagerror option to warn only.
po: support language codes in the form of 'es_AR', and 'arn'. ... additionally to the previously supported two-letters codes.
fix targetpage replacement to support 3 argument form Oddly, this hadn't caused any visible breakage. Possibly inline, which is the only thing to use targetpage, resolves the function to the "real" one before po gets loaded?
avoid stomping on inline's rootpage sub if it's not already present If the inline plugin is not being loaded, or is perhaps loaded after po (when IkiWiki::Setup::getsetup loads all the plugins, for example), po should not inject its custom rootpage sub, as that will lead to a redefinition error message when inline loads.
run po checkconfig last so it can see underlays added in other checkconfig hooks
po: do not override homepage title when it was overridden.
po plugin: update injected urlto signature. The lack of $from will probably hurt setups using po_link_to = current, but at least we can fix the blocker bug that prevents any wiki using the po plugin to build.
make use of precompiled regex objects
use warn
avoid dups getting into @slavelanguages This could happen if checkconfig was run twice, I think.
po: Auto-upgrade old format settings to new formats when writing setup file.
po: Make the po_master_language use a langpair like "en|English", so it can be configured via the web.
po: Allow enabling via web setup. The only unsafe thing should be that enabling it with some languages will generate po files.