Page MenuHomePhabricator

uselang=foo should reference to existing pages in the content language in a single language content wiki
Closed, ResolvedPublic

Description

Author: gangleri

Description:
Hallo!

Please do not thing at multilanguage wikies as commons and meta: now.

This report relates to installations where the content is in one language only
and where uselang=foo should preserve the links to the pages where the content
is available.

To ilustrate the problem compare
http://nike.users.idler.fi/betawiki/special:Statistics?uselang=en
with
http://nike.users.idler.fi/betawiki/special:Statistics?uselang=fi
the url from above
http://nike.users.idler.fi/betawiki/special:Statistics?uselang=fr
or use any other language.

The link to the page defined via [[MediaWiki:Administrators]] should be handeled
in the same way as [[MediaWiki:Mainpage]] and the other items from the
[[MediaWiki:Sidebar]] are handeled:

  • the url does *not* change*
  • the requested rendering could be described as

[[{{int:Administrators}}|{{int:Administrators/foo}}]]

See also
http://nike.users.idler.fi/betawiki/category:MediaWiki/content_titles?uselang=en
about a list of MediaWiki messages "pointing" to pages in the content language /
messages that should be handeled as such (but are not).

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: enhancement
URL: http://nike.users.idler.fi/betawiki/special:Statistics?uselang=fr

Details

Reference
bz5941

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:13 PM
bzimport set Reference to bz5941.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

The specific case this bug reports is fixed in SVN trunk, r14214. The others
need looking into.

gangleri wrote:

Thanks Rob!

Another red content link is / might be [[IP Address]] at
http://nike.users.idler.fi/dev/index.php?title=user_talk:12.13.14.15&uselang=en

Not shure How [[MediaWiki:Ipaddress]] can be used as a "link" to a page in the
content language.

gangleri wrote:

Two more:

b)
editing a nonexisting page
http://nike.users.idler.fi/dev/index.php?title=Betawiki:Sandbox/page_does_not_exist&action=edit&uselang=en
see
http://nike.users.idler.fi/betawiki/MediaWiki_talk:Newarticletext?uselang=en
where
http://nike.users.idler.fi/betawiki/project:Help
is used

c) you need to have sysop rights:
deleting a page
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Newarticletext/en&action=delete
see
http://nike.users.idler.fi/betawiki/MediaWiki_talk:Confirmdeletetext?uselang=en
where
http://nike.users.idler.fi/betawiki/project:Policy
is used

As a general rule I would say that all [[Foo]] links which do neither link to
namespace special, user, (also image, category) and all {{int:foo}} inclusions
should point to identical pages when uselang=bar is used / when the user
interface is changed to another language.

This includes in particular:
all refereences to pages as [[{{ns:Project}}:Foo]], [[{{ns:Help}}:Foo]].

*note*
Please note that upper case pagenames are prefered in order to have identical
titles also at wikies where $wgCapitalLinks=false; (first character in titles
can be lower case). If a reference erquires lower cases pipe syntax should be used.

example message syntax: "You find [[{{ns:Project}}:Help|help]] ..."

best regards reinhardt [[user:gangleri]]

gangleri wrote:

PS.

As already suggested *all* standard Mediawiki messages from Messages containing
[[{{ns:Project}}:Foo|translation]] / [[{{ns:Help}}:Foo|translation]] wikiliks or
[{{fullurl:{{ns:Project}}:Foo|prarameters]}} text] /
[{{fullurl:{{ns:Help}}:Foo|prarameters]}} text] type references should be
handeled as

[[{{int:URL type message}}|translation]] / [{{fullurl:{{int:URL type
message}}|prarameters]}} text]
Where {{int:URL type message}} is *always* using the content language.

Some of these "URL type message" exist already but might not be refered
consitently others need to be added to Message.php.

gangleri wrote:

*note*

Sorry to post this here:
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Aboutsite&uselang=fi
differs from
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Aboutsite&uselang=en
regarding the rendering of
[[{{int:Aboutsite}}]]

The first url shows {{int:Aboutsite}} in Finnish, the seccond shows
{{int:Aboutsite}} in English.


Would be happy to have a magic word as requested at
Bug 2085: request for a variable USERIFCODE (user interface language code)
in order to link always to {{int:Aboutsite/{{USERIFCODE}}}}

There is another issue about using /fi at a Finnish wiki (in general using
/{{USERIFCODE}} at a wiki in {{USERIFCODE}} language. It would *not* work.

See that {{int:Aboutsite/fi}}} does *neither* render at
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Aboutpage&uselang=fi
*nor* at
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Aboutpage&uselang=en

Please open another reports if you want to split the topics. Thanks in advance!

gangleri wrote:

(In reply to comment #5)

Would be happy to have a magic word as requested at
Bug 2085: request for a variable USERIFCODE (user interface language code)
in order to link always to {{int:Aboutsite/{{USERIFCODE}}}}

This was the *wrong* reference. I did want to reference at:
Bug 5945: Variable {{CONTENTLANG}} (content language code)

gangleri wrote:

(In reply to comment #5)

*note*

Sorry to post this here:
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Aboutsite&uselang=fi
differs from
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Aboutsite&uselang=en
regarding the rendering of
[[{{int:Aboutsite}}]]

The first url shows {{int:Aboutsite}} in Finnish, the seccond shows
{{int:Aboutsite}} in English.

The behaviour of {{inf:Foo}} when [[MediaWiki:Foo/bar]] exists *beside*
[[MediaWiki:Foo]] might be *intended*.

*but* if
http://nike.users.idler.fi/dev/index.php?title=MediaWiki:Currentevents-url/en
does *not* exist {{int:Currentevents-url/en}} would render to the same
"destination" / "title" / "page".

see identical rendering at
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Currentevents-url&uselang=en
and
http://nike.users.idler.fi/dev/index.php?title=MediaWiki_talk:Currentevents-url&uselang=fi

gangleri wrote:

(In reply to comment #3)

This includes in particular:
all refereences to pages as [[{{ns:Project}}:Foo]], [[{{ns:Help}}:Foo]].

This sshould apply also for [[{{ns:Template}}:Foo]] see
[[MediaWiki:Disambiguationspage]].

Translations are getting better regarding these links, I see no reason to keep this bug open.

  • Bug 10703 has been marked as a duplicate of this bug. ***