https://bugzilla.wikimedia.org/show_bug.cgi?id=30977
Web browser: ---
Bug #: 30977
Summary: File namespace name in Special:FilePath may be shown
with incorrect directionality
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: i18n
Severity: normal
Priority: Unprioritized
Component: Special pages
AssignedTo: [email protected]
ReportedBy: [email protected]
Blocks: 28708
Classification: Unclassified
Special:FilePath says "{{ns:file}}:". If you're using an RTL wiki with
uselang=en, the ':' will be displayed at the wrong end of the word, so its
direction must be set explicitly according to the wiki's language.
I tried solving it by adding a magic word that returns the wiki's
directionality, but there was objection to it, saying that it's too complicated
(see Bug 30919). I gave it a thought and i agree with Niklas' comment: too much
markup in a message makes it hard to read and translate, so it should be
avoided.
Since the code part of the message would be the same in all the languages -
<span dir="XXX">{{ns:file}}:</span>, it can be written right in the PHP code
and passed to the message as a parameter. However, this message is called from
SpecialPage->outputHeader and i couldn't find an easy way to pass parameters to
it without overriding the function. But then i'm not not yet very experienced
with the message functions. Assistance would be appreciated.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l