]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/ikiwiki_is_not_truly_localizable.mdwn
web commit by http://www.openidfrance.fr/beaufils
[git.ikiwiki.info.git] / doc / bugs / ikiwiki_is_not_truly_localizable.mdwn
1 A lot of strings in ikiwiki are hardcoded and not taken for locales resources through gettext. This is bad because ikiwiki is thus difficult to spread for non-english users.
3 I mean that, for instance in CGI.pm, line like:
5 `my @buttons=("Save Page", "Preview", "Cancel");`
7 should be written as
9 `my @buttons=(gettext("Save Page"), gettext("Preview"), gettext("Cancel"));`
11 In standards templates things seems wrongly written too. For instance in page.tmpl line like:
13 `<li><a href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a></li>`
15 should be written as
17 `<li><a href="<TMPL_VAR EDITURL>" rel="nofollow"><TMPL_VAR EDITURL_TEXT</a></li>`
19 with EDITURL_TEXT variable initialized in Render.pm through a gettext call. 
21 Am I wrong ?
23 If not I can spend some time preparing patch for such correction if it can help.
25 -- [[/users/bbb]]