diff options
author | fr33domlover <fr33domlover@riseup.net> | 2014-09-17 09:40:59 +0300 |
---|---|---|
committer | fr33domlover <fr33domlover@riseup.net> | 2014-09-17 09:40:59 +0300 |
commit | 370f810a81582d5c4ded51143962905f9af08831 (patch) | |
tree | e50af4cca2369e05b7c3403ab02ec01cf1673254 | |
parent | 7a9b0888393365c982d728033732e140271510f1 (diff) | |
download | ikiwiki-370f810a81582d5c4ded51143962905f9af08831.tar ikiwiki-370f810a81582d5c4ded51143962905f9af08831.tar.gz |
Write forum page about RTL support of PO plugin
-rw-r--r-- | doc/forum/PO_and_RTL_support.mdwn | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/forum/PO_and_RTL_support.mdwn b/doc/forum/PO_and_RTL_support.mdwn new file mode 100644 index 000000000..849cd7147 --- /dev/null +++ b/doc/forum/PO_and_RTL_support.mdwn @@ -0,0 +1,33 @@ +A while ago I added RTL text support to my wiki: + +<http://ikiwiki.info/tips/Right-to-left___40__RTL__41___page_text> + +But this support does not work with PO files. When I write a page in +English, I need the Hebrew/Arabic translation to have additional text +(in my case, using the template directive) which causes the direction of the +text to be RTL. + +I saw a recent patch which claims to solve the problem by exposing the +language code and direction to the templates (which would help a lot), but +when I go to the original website from which it came, it looks like the Arabic +text is still aligned LTR just like English: + +<http://addons.nvda-project.org/index.ar.html> + +Another issue is that I use Debian stable, and I'm not sure it's safe to +use some unstable ikiwiki (currently I use the version from backports) - +advice welcome :-) + +It's still important to have the ability to change direction inside the page, +but the default direction specified either in CSS on in the page.tmpl file +should be dynamic. I didn't check how the PO plugin works, but it may be +necessary to update there, because if all it does is copy the HTML page and +switch strings with translations, it must be modified to also edit the +LTR/RTL directives so that different translations of the same page can have +different directions. + +I hope I'll have some time to look into it myself, I'm just a bit behind now +with non-recent ikiwiki version (maybe it's time for me to try sid or from +source). + +--[[fr33domlover]] |