Page MenuHomePhabricator

Translatable page header is at the bottom of the page
Open, LowPublic

Description

When I visit https://www.mediawiki.org/wiki/Help:Extension:Translate logged out. The header <<<Translate this page; This page contains changes which are not marked for translation.>>> is at the bottom of the page. When I am logged in it is displayed correctly at the top of the page.


Version: wmf-deployment
Severity: normal
URL: https://www.mediawiki.org/wiki/Help:Extension:Translate

Details

Reference
bz40694

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:55 AM
bzimport set Reference to bz40694.
bzimport added a subscriber: Unknown Object (MLST).

This works as expected on translatewiki.net, so I have no idea what is going on. Maybe the WMF setup is doing something weird that breaks the output hook?

I've verified that the bug is not present when logged in with a non-translation admin account (t. adm. see "This page has changes since it was last marked for translation" instead).

When logged out, the mw-pt-translate-header element, rather than at the beginning of bodyContent, is at the end, before printfooter and after HTML comments "NewPP limit report [...]" and e.g. "Saved in parser cache with key mediawikiwiki:stable-pcache:idhash:75815-0!*!0!!en!4!* and timestamp 20121002121216".

Not a Translate issue. Moving to Wikimedia/Site config (probably local CSS thing)

Seems to be related to caching (logged in vs. anonymous), adding Tim to cc.

(In reply to comment #0)

When I visit https://www.mediawiki.org/wiki/Help:Extension:Translate logged
out. The header <<<Translate this page; This page contains changes which are
not marked for translation.>>> is at the bottom of the page. When I am logged
in it is displayed correctly at the top of the page.

Works for me. In incognito mode in Chrome I see it at the top of the page..

(In reply to comment #5)

Works for me. In incognito mode in Chrome I see it at the top of the page..

It's at the bottom for me in incognito mode, both Chromium 20.0.1132.47 Built from source for Fedora release 17 (Beefy Miracle) and Chrome 22.0.1229.92. Served by mw31.

I assume the header has changed in the meantime to

"This page is a translated version of a page Help:Extension:Translate and the translation is 15% complete."

Cannot reproduce: I am logged out and it's displayed at the top.
Using Epiphany 3.2 and Chrome 24.0.

Created attachment 11738
Screenshot of the problem

I can still reproduce just be opening the page in chrome incognito mode. Screenshot attached.

Attached:

hhheader.png (900×1 px, 102 KB)

I actually think that "This page is a translated version of..." should be at the bottom of the page by default and not at the top. It gets too much in the way for reading.

One option would be to place it next (above/below) "This page was last modified on..." since it's the same type of information.

Should I open a new request?

(In reply to comment #9)

Should I open a new request?

Yes.

(In reply to comment #11)

See also https://bugzilla.wikimedia.org/show_bug.cgi?id=53872

This comment is not relevant to this issue.

Created attachment 14827
"Translate this page" bar at the bottom of the page

Just happened to me when visiting [[mw:Help:Logging_in]] as an unregistered user; bypassing the cache and purging didn't help.

By the way, I was visiting the page in a secondary browser because in my main browser (where I was logged in) the language bar was unstyled (on that specific page, but also others). In the end the latter issue was corrected by purging as logged in user, but this didn't help the issue described in this bug. Just a coincidence, or is this bug a consequence of recurring but temporary problems with CSS/cache/ResourceLoader and if so, is that a MediaWiki or Wikimedia issue?

Attached:

TranslateBottom.png (698×1 px, 119 KB)

(In reply to Nemo from comment #13)

By the way

I don't believe this bug has anything to do with Resource Loader. The header is added in PHP side. Please open separate issue for the missing styles, if it not already exists.