Author: vago-vago
Description:
Hi, In [http://az.wikipedia.org/wiki/Ana_S%C9%99hif%C9%99 Azerbaijan Wikipedia] has a problem switching to Arabic scripts visually (such as the [http://kk.wikipedia.org/wiki/%D0%91%D0%B0%D1%81%D1%82%D1%8B_%D0%B1%D0%B5%D1%82 Kazakh Wikipedia], they have even 3 - [http://translatewiki.net/w/i.php?title=Special%3ATranslate&task=view&group=core&language=kk-latn&limit=100 Latin], [http://translatewiki.net/w/i.php?title=Special%3ATranslate&task=view&group=core&language=kk-cyrl&limit=100 Cyrillic] and [http://translatewiki.net/w/i.php?title=Special%3ATranslate&task=view&group=core&language=kk-arab&limit=100 Arabic]) How do we solve this problem? More accurately as you can to help us?
The main text on Latinas and Arabic only visually (how the [http://ku.wikipedia.org/wiki/Destp%C3%AAk Kurdish Wikipedia], or in [http://kk.wikipedia.org/wiki/%D0%91%D0%B0%D1%81%D1%82%D1%8B_%D0%B1%D0%B5%D1%82 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 ([[bugzilla:6756]]) and for [[bugzilla:02020]] & [[bugzilla:04295]]
if (wgUserLanguage == "az-arab")
{
document.direction="rtl"; document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/common/common_rtl.css">'); document.write('<style type="text/css">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;} </style>'); if (skin == "monobook"){ document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/monobook/rtl.css">'); }
}
Sincerely,
Version: 1.17.x
Severity: normal