Last modified: 2011-03-13 18:05:05 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 4126 - BiDi feature request: please create a variable {{CONTENTDIR}}
BiDi feature request: please create a variable {{CONTENTDIR}}
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://yi.wiktionary.org/wiki/project...
:
Depends on:
Blocks: rtl 1381
  Show dependency treegraph
 
Reported: 2005-12-01 01:17 UTC by lɛʁi לערי ריינהארט
Modified: 2011-03-13 18:05 UTC (History)
2 users (show)

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


Attachments

Description lɛʁi לערי ריינהארט 2005-12-01 01:17:00 UTC
Hallo!

background:

Last week [[MediaWiki:Sitenotice]] was changed to:

'''Notice:''' Uploads are disabled and images may not display for a few hours
today while we make [[meta:November 2005 image server|{{SITENAME}}]] faster.

This message did *not* display properly at RTL wiki's without a "local"
sitenotice. *Testcases will follow imediatelly.*

feature request:

{{CONTENTDIR}} should return 'ltr' for LTR type wiki's and 'rtl for RTL type wiki's.

This would allow to generate proper sitenotices (or MediaWiki:Farmnotice see
[[meta:Site_notice#MediaWiki:Farmnotice]]) which would display correctly
regardless of the LTR / RTL property of the wiki.

best regards reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-12-01 02:09:58 UTC
http://yi.wiktionary.org/wiki/project:Gangleri/tests/bugzilla/04126
provides some variations from
http://yi.wiktionary.org/w/index.php?title=MediaWiki:Sitenotice&action=history

The proper message would be:
<span dir="ltr" >'''Notice:''' Uploads are disabled and images may not display
for a few hours today while we make<span dir="ltr" > <span dir="{{CONTENTDIR}}"
>[[meta:November 2005 image server|{{SITENAME}}]]</span> </span>faster.</span>

or this message embeded in <center> ... </center>

The embeding <span dir="ltr" > <span dir="{{CONTENTDIR}}" >[[meta:November 2005
image server|{{SITENAME}}]]</span> </span> should display all SITENAMES
correctly with contain characters which are rendered context dependend according
to the browsers BiDi algoritm.

Unfortunatelly Mozilla Firefox and Netscape can *not* render this correctly in
their actual version.
Comment 2 lɛʁi לערי ריינהארט 2005-12-01 10:26:59 UTC
*note*

The counterpart of {{CONTENTDIR}} would be somthing as {{UIFDIR}} which should
return 'ltr' / 'rtl' according to the LTR / RTL property of the selected user
interface.

If ?uselang=xx / &uselang=xx is used it should probably return the value of the
LTR / RTL property of xx.

The question is how this information should be retrieved.

It is not available in Names.php at this moment but (probably) available trough
function isRTL() as in
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/languages/LanguageYi.php

Should the "default" value of function isRTL() be included in Names.php? This
would provide a better overview.
Comment 3 lɛʁi לערי ריינהארט 2005-12-02 09:44:34 UTC
*note* 

{{UIFDIR}} is not the same as {{USERIFCODE}} requested in
Bug 2085: request for a variable USERIFCODE (user interface language code)
Comment 4 Ævar Arnfjörð Bjarmason 2005-12-03 05:14:13 UTC
This would be useless since having it in the sitenotice as <span
dir={{CONTENTDIR}}> would generate <span dir=rtl> on RTL wikis when someone adds
an English sitenotice (which is LTR), I've added a comment in CommonSettings.php
on the cluster reminding admins to add wrap it in <span dir=ltr></span> which
should take care of it.

Marking this as INVALID.
Comment 5 lɛʁi לערי ריינהארט 2005-12-03 10:39:41 UTC
fixed url to [[wiktionary:yi:project:bugzilla/04126]]

There I made different test cases for RTL {{SITENAME}} as
װיקיװערטערבוך (פּרוּװ)
which should be rendered "visualy" in an RTL environment as
(װיקיװערטערבוך (פּרוּװ

Without {{CONTENTDIR}} MediaWiki:Sitenotice *might be broken / not rendered
correctly at RTL wiki's.

I am still investigating how different browsers behave for the provided testcases.
What I would like to achieve is proper rendering as shown in
[[wiktionary:yi:image:Bugzilla_04126_001.jpg]]

regards reinhardt [[user:gangleri]]
Comment 6 lɛʁi לערי ריינהארט 2005-12-03 12:48:00 UTC
(In reply to comment #4)
> This would be useless since having it in the sitenotice as <span
> dir={{CONTENTDIR}}> would generate <span dir=rtl> on RTL wikis when someone adds
> an English sitenotice (which is LTR), I've added a comment in CommonSettings.php
> on the cluster reminding admins to add wrap it in <span dir=ltr></span> which
> should take care of it.
> 
> Marking this as INVALID.

made [[wiktionary:yi:project:bugzilla/04126#bugzilla:04126.23c4]] to ilustrate
that there is still a problem

REOPENed the bug
Comment 7 Pablo Saratxaga 2006-05-26 23:48:46 UTC
This bug is invalid.

The problem is actually that the message WAS displayed according to content
directionality!
The proper solution is (as said upper) to enclose a sitenotice message in
English with a proper dir=ltr if it is to be shown on other (specially RTL)
wikis.

PS: <span dir=ltr> will set the directionality for the word ordering, but not for
the paragraph justification; for that use <div dir=ltr> instead.
Comment 8 Niklas Laxström 2008-07-12 20:30:08 UTC
Semantic CSS classes could be used instead.

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


Navigation
Links