Page MenuHomePhabricator

"Other languages" box in Translate extension should use an HTML list
Closed, DeclinedPublic

Description

<languages /> in [[mw:Extension:Translate]] appears to output:


<table> <tbody> <tr valign="top"> <td class="mw-pt-languages-label">Other languages:</td> <td class="mw-pt-languages-list"><a href="/wiki/CodeEditor/be-tarask" title="CodeEditor/be-tarask">Belarusian (Taraškievica orthography)</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/cs" title="CodeEditor/cs">Czech</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/de" title="CodeEditor/de">German</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<span class="mw-pt-languages-ui mw-pt-languages-selected">English</span>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/es" title="CodeEditor/es">Spanish</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/fo" title="CodeEditor/fo">Faroese</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-4.png" alt="67%" title="67%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/fr" title="CodeEditor/fr">French</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/gl" title="CodeEditor/gl">Galician</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/hi" title="CodeEditor/hi">Hindi</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/hu" title="CodeEditor/hu">Hungarian</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="83%" title="83%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/it" title="CodeEditor/it">Italian</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="83%" title="83%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/ja" title="CodeEditor/ja">Japanese</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/ko" title="CodeEditor/ko">Korean</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/lb" title="CodeEditor/lb">Luxembourgish</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-1.png" alt="17%" title="17%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/mk" title="CodeEditor/mk">Macedonian</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="83%" title="83%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/mr" title="CodeEditor/mr">Marathi</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-1.png" alt="0%" title="0%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/pl" title="CodeEditor/pl">Polish</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/pt" title="CodeEditor/pt">Portuguese</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/pt-br" title="CodeEditor/pt-br">Brazilian Portuguese</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="83%" title="83%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/ro" title="CodeEditor/ro">Romanian</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="83%" title="83%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/ru" title="CodeEditor/ru">Russian</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-4.png" alt="67%" title="67%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/sv" title="CodeEditor/sv">Swedish</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/uk" title="CodeEditor/uk">Ukrainian</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/vi" title="CodeEditor/vi">Vietnamese</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-1.png" alt="17%" title="17%" width="9" height="9" />&#160;• ‎<a href="/wiki/CodeEditor/zh" title="CodeEditor/zh">Chinese</a>&#160;<img src="//bits.wikimedia.org/static-1.22wmf19/extensions/Translate/resources/images/prog-5.png" alt="100%" title="100%" width="9" height="9" /></td> </tr> </tbody> </table>

This should be an HTML list (<ul><li>...</li></ul>).

This is related to bug 55386.


Version: unspecified
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=55386

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 2:11 AM
bzimport set Reference to bz55389.
bzimport added a subscriber: Unknown Object (MLST).

I suggest deferring this to after the redesign of the language bar.

andnlnbn18 wrote:

Can I work on it?

(In reply to comment #2)

Can I work on it?

Sure! Let us know if you need something or if you abandon the task.

andnlnbn18 wrote:

Thankyou for assigning it

Lekshmi, if you're still tuned: please ask your question on MediaWiki-Internationalization next time, not #wikimedia. Thanks!

andnlnbn18 wrote:

I can't access the channel mediawiki-i18n and
Iam not able to download the translate extension into the mediawiki set onlocal host.Can anyone help me out?

Better ask further support questions on https://www.mediawiki.org/wiki/Extension_talk:Translate instead.
You may want to try https://www.mediawiki.org/wiki/Git/Tutorial and/or https://www.mediawiki.org/wiki/MediaWiki-Vagrant (the latter has a so called "role" which includes install of Translate).

andnlnbn18 wrote:

I have already cloned the core and set up mediawiki on localhost.I have cloned trsnslate in extensions directory but Iam not able to download the lanuage extension bundle and when i try to add configuration settings to localsettings.php Iam gettinf database error?Can you please help me out?

(In reply to comment #6)

I can't access the channel mediawiki-i18n

See http://www.mediawiki.org/wiki/MediaWiki_on_IRC and its Talk page for further questions.

(In reply to comment #8)

when i try to add configuration settings to
localsettings.php Iam gettinf database error?Can you please help me out?

Please ask on IRC or https://www.mediawiki.org/wiki/Project:Support_desk , plus always provide *specific* information there by providing your exact steps and the exact full error message. Discussing generic setup issues is out of scope and off-topic for this bug report. Thanks for your understanding.

andnlnbn18 wrote:

Can I reproduce the page Extension:translate on my localhost?

I am not getting the above page on my translate extension

The page is part of Git: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FTranslate.git/HEAD/specials%2FSpecialTranslate.php - for general support on making stuff work please use the wikipages, IRC or mailing lists.

andnlnbn18 wrote:

Is the change to be made in /Extensions/Translate/tag/SpecialPageTranslation.php to deal with this bug?Sorry to bother
Thanks in advance.

andnlnbn18: It's part of your job to find the correct place where to make the changes, by testing and trying. :) Feel free to point out a specific line and explain what you think the code does and what needs to be done.

andnlnbn18: I am resetting the assignee of this issue to default because there has been no signs of progress for the last months. Feel free to assign it to yourself again when you plan to work on this. Thanks for your understanding.

"Other languages" works fine for me. I could not actually reproduce this bug. Can anyone help me with this?

"Other languages" works fine for me.

Hi @Phoenix303. Thanks for retesting!
Could you tell us where you tested this (URL highly welcome) and which exact steps you performed (preferably as a list of steps that anybody else without technical knowledge could just follow without having to interpret)?

Hello @Aklapper
I have tested this bug in my local domain but I can list out the steps I have followed :

  1. Installed and configured translation extension
  2. Translated my page to "Hindi" language using <translate></translate> tag and added <languages/> tag on top of it to list all the languages that page has been translated to.

It worked fine with listing all the languages I have translated it to.
I had also asked this in MediaWiki-General IRC and it turns out that the requirement was not clear to me. This bug asks for making it to the list. Please let me know if i misunderstood anything.

Change 181630 had a related patch set uploaded (by Phoenix303):
"Other languages" box changed to use HTML List

https://gerrit.wikimedia.org/r/181630

Patch-For-Review

siebrand set Security to None.

I've removed the gci 2014 tag. This item shouldn't have been promoted in GCI, as Gerrit 149585 has a full redesign of the language bar implemented during GSoC that isn't merged yet. Making changes in the language bar area is both duplicate work and makes keeping the yet unmerged patch set for the language bar changes in a working order harder.

Change 181630 abandoned by Phoenix303:
"Other languages" box changed to use HTML List

https://gerrit.wikimedia.org/r/181630

Nemo_bis claimed this task.

I disagree with the decisions, but Translate maintainers are clearly entrenched in their veto against any improvement of the current language bar. Closing.