2006-12-22 11:15:30 +01:00
|
|
|
I can't translate "Discussion" link in `templates/inlinepage.tmpl`
|
|
|
|
and `templates/page.tmpl` files, because it's hardcoded in
|
|
|
|
ikiwiki sources:
|
|
|
|
|
|
|
|
ptecza@horus:~/svn/ikiwiki$ rgrep -i DISCUSSIONLINK . |grep -v '.svn'
|
|
|
|
./templates/inlinepage.tmpl:<TMPL_IF NAME="DISCUSSIONLINK">
|
|
|
|
./templates/inlinepage.tmpl:<li><TMPL_VAR DISCUSSIONLINK></li>
|
|
|
|
./templates/page.tmpl:<TMPL_IF NAME="DISCUSSIONLINK">
|
|
|
|
./templates/page.tmpl:<li><TMPL_VAR DISCUSSIONLINK><br /></li>
|
|
|
|
./IkiWiki/Plugin/inline.pm: $template->param(discussionlink => htmllink($page, $params{page}, "Discussion", 1, 1));
|
|
|
|
./IkiWiki/Render.pm: $template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1));
|
|
|
|
|
|
|
|
I hope it's a bug, not a feature, because I don't have the same
|
|
|
|
problem with other links, for example "Edit", "RecentChanges"
|
2007-07-08 01:48:00 +02:00
|
|
|
or "History". --[[Paweł|ptecza]]
|
2006-12-22 21:34:01 +01:00
|
|
|
|
|
|
|
> There are good reasons for feeding a full html link into the template,
|
|
|
|
> rather than the urls used for the other links. For one, the Discussion
|
|
|
|
> link needs to be different if the Discussion page doesn't yet exist.
|
2006-12-28 20:41:10 +01:00
|
|
|
|
2007-07-08 01:48:00 +02:00
|
|
|
>> You can always use `<tmpl_if>` and `<tmpl_else>` construct in that place ;) --[[Paweł|ptecza]]
|
2006-12-28 21:44:48 +01:00
|
|
|
|
|
|
|
>>> Not without duplicating the logic that constructs a link to an
|
|
|
|
>>> existing/nonexisting page in two places, one in code in ikiwiki and one
|
|
|
|
>>> in the template. Not good design. --[[Joey]]
|
2006-12-28 20:41:10 +01:00
|
|
|
|
2006-12-22 21:34:01 +01:00
|
|
|
> As noted in [[patchqueue/l10n]], there are some other places in ikiwiki
|
|
|
|
> that hard code English strings, and I feel that using standard gettext
|
|
|
|
> and po files is the best approach for these, although Recai suggested an
|
|
|
|
> approach of translating the strings using a template file. --[[Joey]]
|
2006-12-28 20:41:10 +01:00
|
|
|
|
|
|
|
>> You know that I rather prefer static templates, but it's your choice,
|
|
|
|
>> of course.
|
|
|
|
>>
|
|
|
|
>> BTW, is there a chance for configurable name of Discussion page?
|
|
|
|
>> In my wiki I use only Polish name of pages, so I would like to have
|
2007-07-08 01:48:00 +02:00
|
|
|
>> dyskusja.html page, instead of discussion.html page. --[[Paweł|ptecza]]
|
2006-12-28 21:44:48 +01:00
|
|
|
|
2006-12-29 05:38:40 +01:00
|
|
|
>>> Ikiwiki is now fully internationalised, so you can change the name of
|
|
|
|
>>> the Discussion page and quite a lot more (but hardly everything) by
|
|
|
|
>>> translating it. [[bugs/done]]! There's a `po/debconf.pot` in the source
|
|
|
|
>>> now for translating. See [[translation]]. --[[Joey]]
|
2006-12-29 21:53:34 +01:00
|
|
|
|
2007-07-08 01:48:00 +02:00
|
|
|
>>>> Joey, you're great! ;) Thanks a lot! I'll try ikiwiki l10n stuff soon. --[[Paweł|ptecza]]
|