[aur-dev] Adding the HE language.

PyroPeter abi1789 at googlemail.com
Sat Aug 14 09:24:10 EDT 2010


On 08/14/2010 02:28 PM, foo bar wrote:
> On 08/08/2010 12:17 AM, Netanel Shine wrote:
>> btw, it should be RTL, if you didnt know, mybe because of that it display
>> like a bug.
>>
> If we set the lang-attribute on the <body>-tag, we can use CSS to swich
> the whole body to direction:rtl;.
> (Somehow my chromium does not check the <xml>-tag's lang-attribute.)
> This is demonstrated here: http://keks.selfip.org/tmp/aur-lang.html
>
> I will upload a patch for that shortly.
>
> <http://keks.selfip.org/tmp/aur-lang.html>
>

I just noticed you are setting xml:lang and lang on the <html>-tag. So 
there isn't even any change needed. (Btw. that why I hate php, mixing 
markup and code is extremely obscure)

The main problem seems to be the frequency of text-align-declarations in 
the existing style-sheets.

This is what I have atm:

<------------ snip ------------->
diff --git a/web/html/css/containers.css b/web/html/css/containers.css
index fc092de..fe7d26b 100644
--- a/web/html/css/containers.css
+++ b/web/html/css/containers.css
@@ -3,6 +3,12 @@ body,table,td,img {
    margin: 0;
    padding: 0;
  }
+
+/* Language specific formatting */
+body:lang(hu) {
+  direction:rtl;
+}
+
  /* Main Wrapper Data Format */
  td.preHeader {
    background-color: #000;
<--------------- snap ------------------>

It would be nice to get some comments from right-to-left reading people.
Why does direction:rtl; put punctuation at the beginning of the line? Is 
that wanted behavior or just a browser bug?

-- 
irc: PyroPeter at freenode


More information about the aur-dev mailing list