]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/PO_and_RTL_support/comment_11_3dfd5aad503d913bd00f7320593ab5eb._comment
Merge remote-tracking branch 'spalax/calendar-autocreate'
[ikiwiki.git] / doc / forum / PO_and_RTL_support / comment_11_3dfd5aad503d913bd00f7320593ab5eb._comment
1 [[!comment format=mdwn
2  username="smcv"
3  ip="81.100.115.242"
4  subject="comment 11"
5  date="2014-09-21T12:50:11Z"
6  content="""
7 > Yes, [a RTL meta tag] would help. But I'd need the PO plugin to
8 > respect this lang tag. Is this already possible?
9
10 Do you need the po plugin at all? The po plugin is specifically for
11 sites that are written in a master language (usually English) and
12 then translated into a bunch of other languages - the same general
13 approach as <https://www.debian.org/> (that site does not use IkiWiki
14 but the idea is the same).
15
16 If you're selecting languages in some other way -
17 e.g. all your content is in Arabic except that the `/programming/`
18 subtree is in English, or something like that - then the po
19 plugin is not designed for what you're doing, and adding support
20 for a new meta tag to the meta plugin would be a better way to
21 get the language code into the header. It could use the same
22 `TMPL_VAR` hooks in page.tmpl that po does? I'd review a patch.
23 """]]