Last modified: 2006-11-08 13:29:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6756 - Enabling RTL direction for languages with LTR and RTL script variantes
Enabling RTL direction for languages with LTR and RTL script variantes
Status: RESOLVED DUPLICATE of bug 6100
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 6700 6701
Blocks: 6706
  Show dependency treegraph
 
Reported: 2006-07-20 12:57 UTC by AlefZet
Modified: 2006-11-08 13:29 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description AlefZet 2006-07-20 12:57:10 UTC
For kk-cn being Arabic script need RTL direction
Comment 1 Jimmy Collins 2006-09-21 11:17:34 UTC
In r16586.
Comment 2 AlefZet 2006-10-15 11:39:27 UTC
It is not affected for multi-variant wiki. direction always is 'LTR'. Setting $rtl = true; in 
doughter MessagesKk_cn file ignored by MediaWiki. 
  
Comment 3 Rotem Liss 2006-11-06 18:02:05 UTC
It's probably the problem of Bug 6100.

*** This bug has been marked as a duplicate of 6100 ***
Comment 4 AlefZet 2006-11-07 20:27:07 UTC
This bug isn't duplicate 6100. 
Try do following: install wiki with ltr/rtl script variants (currently it is 'kk' only). After that 
click to  قازاق tab. Interface and content will switched to 'kk-cn' (Arabic script), but the 
direction still left-to-right.
I think: probably MediaWiki does not read setting $rtl = true; from MessagesKk_cn.php, and try read 
from main messages file MessagesKk.php only. 
Direction should be RTL when switched to 'kk-cn'. The variable $rtl should be readed 1) from 
current messages file (current variant), 2) if $rtl is not in this file, read from main messages 
file, and 3) default messages file (en). 

Bellow is temporary quick&dirty Javascript workaround for this issue:

if (wgUserLanguage == "kk-cn") 
{
  document.write('<link rel="stylesheet" type="text/css" 
href="'+stylepath+'/common/common_rtl.css">');
  document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/'+skin+'/rtl.css">');
}

(Place this statements to MediaWiki:<skin_name>.js)
Comment 5 AlefZet 2006-11-08 08:40:09 UTC
(In reply to comment #4)
Forgot 'html {direction: rtl;}', so JavaScript should be:
if (wgUserLanguage == "kk-cn") 
{
  document.direction="rtl";
  document.write('<style type="text/css">html {direction: rtl;}</style>');
  document.write('<link rel="stylesheet" type="text/css" 
href="'+stylepath+'/common/common_rtl.css">');
  document.write('<link rel="stylesheet" type="text/css" href="'+stylepath+'/monobook/rtl.css">');
}
And only place is monobook.js (other skins does not work).
Comment 6 Rotem Liss 2006-11-08 13:29:31 UTC
MediaWiki has two languages: interface language and content language. The
interface language is the langauge which the user selects: in preference, in
uselang, *or as a variant*. Most messages are used from this language. The
content language is used to get the namespaces and all the other things which
depend on the language of the content. Now, also the page direction is used from
the content language, though it should be used from the interface language.
That's Bug 6100. Here, the interface language is the variant ($wgLang - e.g.
kk-cn), and the content language is the main language ($wgContLang - kk). The
direction is read from the content language (kk), not from the interface
language (kk-cn), and that's the exact problem. If the software reads the
direction from the interface language, it also reads the variant direction, and
therefore it is RTL when using kk-cn. It doesn't for now, but if Bug 6100 will
be fixed, it will.

Remarking as a duplicate.

*** This bug has been marked as a duplicate of 6100 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links