]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/PO_and_RTL_support.mdwn
Fixes perl-magick link
[ikiwiki.git] / doc / forum / PO_and_RTL_support.mdwn
1 A while ago I added RTL text support to my wiki:
2
3 <http://ikiwiki.info/tips/Right-to-left___40__RTL__41___page_text>
4
5 But this support does not work with PO files. When I write a page in
6 English, I need the Hebrew/Arabic translation to have additional text
7 (in my case, using the template directive) which causes the direction of the
8 text to be RTL.
9
10 I saw a recent patch which claims to solve the problem by exposing the
11 language code and direction to the templates (which would help a lot), but
12 when I go to the original website from which it came, it looks like the Arabic
13 text is still aligned LTR just like English:
14
15 <http://addons.nvda-project.org/index.ar.html>
16
17 Another issue is that I use Debian stable, and I'm not sure it's safe to
18 use some unstable ikiwiki (currently I use the version from backports) -
19 advice welcome :-)
20
21 It's still important to have the ability to change direction inside the page,
22 but the default direction specified either in CSS on in the page.tmpl file
23 should be dynamic. I didn't check how the PO plugin works, but it may be
24 necessary to update there, because if all it does is copy the HTML page and
25 switch strings with translations, it must be modified to also edit the
26 LTR/RTL directives so that different translations of the same page can have
27 different directions.
28
29 I hope I'll have some time to look into it myself, I'm just a bit behind now
30 with non-recent ikiwiki version (maybe it's time for me to try sid or from
31 source).
32
33 --[[fr33domlover]]