]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/po:_might_not_add_translated_versions_of_all_underlays.mdwn
response
[ikiwiki.git] / doc / bugs / po:_might_not_add_translated_versions_of_all_underlays.mdwn
1 [[plugins/po]]'s `checkconfig` looks in the `underlaydirs`, but plugins that
2 add underlays typically do so in their own `checkconfig`.
3
4 As far as I can see, this will result in it not adding translated versions
5 of underlays added by a plugin that comes after it in `$config{add_plugins}`;
6 for instance, if you have `add_plugins => qw(po smiley)`, you'll probably
7 not get the translated versions of `smileys.mdwn`. (I haven't tested this.)
8
9 > It doesn't happen because smiley adds the underlay unconditionally on 
10 > import. Which is really more usual.
11
12 To see them all, `po` should use `last => 1` when registering the hook.
13 --[[smcv]]
14
15 > At least all that don't last their hooks too! But, added, since
16 > it will make the problem much less likely to occur. --[[Joey]] [[done]]