Thread:User talk:Siebrand/Arabic script/reply (3)

The main text on Latinas and Arabic only visually (how the Kurdish Wikipedia, or in Kazakh wikipedia Cyrillic is main and the Arabic and latinas are visually)

Copied the script from mediawiki.common.js Kurdish Wikipedia to Azerbaijan. It seems that "az-latn" and "az-arab" need to create a translatewiki.net's and other something.

// Set user-defined "lang" attributes for the document element (from zh) var htmlE=document.documentElement; if (wgUserLanguage == "az"){ variant = "az"; } if (wgUserLanguage == "az-latn"){ variant = "az-Latn"; } if (wgUserLanguage == "az-arab"){ variant = "az-Arab"; htmlE.setAttribute("dir","rtl"); } htmlE.setAttribute("lang",variant); htmlE.setAttribute("xml:lang",variant); // Switch language variants of messages (from zh) function wgULS(latn,arab){ //       az=latn||arab; az=az; latn=latn; arab=arab; switch(wgUserLanguage){ case "az": return ku; case "az-arab": return arab; case "az-latn": return latn; default: return ""; } } // workaround for RTL (6756) and for 02020 & 04295 if (wgUserLanguage == "az-arab") { document.direction="rtl"; document.write(''); document.write('html {direction:rtl;} body {direction:ltr; unicode-bidi:embed; lang:ku-Arab; } html > body div#content ol {clear: left;} ol {margin-left:2.4em; margin-right:2.4em;} ul {margin-left:1.5em; margin-right:1.5em;} h1.firstHeading {background-position: bottom right; background-repeat: no-repeat;} h3 {font-size:110%;} h4 {font-size:100%;} h5 {font-size:90%;}  #catlinks {width:100%;}   #userloginForm {float: right !important;}  '); if (skin == "monobook"){ document.write(''); } }