]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/ikiwiki_is_not_truly_localizable.mdwn
web commit by http://www.openidfrance.fr/beaufils
[ikiwiki.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.
2
3 I mean that, for instance in CGI.pm, line like:
4
5 `my @buttons=("Save Page", "Preview", "Cancel");`
6
7 should be written as
8
9 `my @buttons=(gettext("Save Page"), gettext("Preview"), gettext("Cancel"));`
10
11 In standards templates things seems wrongly written too. For instance in page.tmpl line like:
12
13 `<li><a href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a></li>`
14
15 should be written as
16
17 `<li><a href="<TMPL_VAR EDITURL>" rel="nofollow"><TMPL_VAR EDITURL_TEXT</a></li>`
18
19 with EDITURL_TEXT variable initialized in Render.pm through a gettext call. 
20
21 Am I wrong ?
22
23 If not I can spend some time preparing patch for such correction if it can help.
24
25 -- [[users/bbb]]