Page MenuHomePhabricator

Language translation list should not be converted by LanguageConverter on a translatable page
Open, LowPublic

Description

See https://meta.wikimedia.org/w/index.php?title=IPv6_initiative/2012_IPv6_Day_announcement/zh&variant=zh-hans&uselang=ja

The language selector in Japanese is converted as Chinese, and generating unwanted characters (which are not used in Japanese but in Chinese).


Version: unspecified
Severity: normal

Details

Reference
bz37559

Related Objects

StatusSubtypeAssignedTask
In ProgressWinston_Sung
In ProgressWinston_Sung
OpenNone
StalledNone
ResolvedNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
Invalid GWicke
Resolvedliangent
Resolvedthiemowmde
OpenNone
Resolvedcscott
Resolvedcscott
Resolved Elitre
Resolvedcscott
Resolvedcscott
Resolvedcscott
Resolvedcscott
Resolvedcscott
OpenNone
DuplicateBUG REPORTNone
Resolvedcscott
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedBUG REPORTJgiannelos
OpenNone

Event Timeline

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

(In reply to bug 37557 comment #1)

For the <languages /> however it should be easy to fix because it's separate
from the page content. For the sentence above it, it's already correct.

No. For the sentence above it: that sentence before and after going through the converter are exactly the same...

BTW, <div lang="*"> is also an issue here.

(In reply to comment #1)

(In reply to bug 37557 comment #1)

For the <languages /> however it should be easy to fix because it's separate
from the page content. For the sentence above it, it's already correct.

No. For the sentence above it: that sentence before and after going through the
converter are exactly the same...

Ouch, by checking https://meta.wikimedia.org/w/index.php?title=IPv6_initiative/2012_IPv6_Day_announcement/sr&variant=sr-ec&uselang=en I found you're right.

This isn't as easy as I thought, since it would need setting $parser->getOptions()->setInterfaceMessage( true ); but it is in the same parser object as the rest of the page, thus marking the whole page as interface (thus disabling the conversion).

Can somebody tell me steps to reproduce, or provide a screenshot that marks what's wrong? I have looked at the two links here but I ignorantly fail to see the issue so far - sorry. :-/

The language selector in Japanese is converted as Chinese, and generating
unwanted characters (which are not used in Japanese but in Chinese).

Which ones are these?

This is the correct selection bar:

他言語での翻訳: チェコ語 100% • ‎ドイツ語 93% • ‎Zazaki 20% • ‎英語 100% • ‎スペイン語 53% • ‎ペルシア語 100% • ‎フランス語 100% • ‎ヒンディー語 20% • ‎インドネシア語 87% • ‎イタリア語 93% • ‎日本語 93% • ‎韓国語 93% • ‎マケドニア語 87% • ‎オランダ語 100% • ‎ポーランド語 93% • ‎ポルトガル語[ブラジル] 7% • ‎ロシア語 93% • ‎シンハラ語 7% • ‎アルバニア語 13% • ‎セルビア語 7% • ‎スワヒリ語 93% • ‎中国語 93% • ‎Chinese (China) 93% • ‎簡体中国語 100% • ‎繁体中国語 93% • ‎Chinese (Hong Kong) 93% • ‎中文(澳門)‎ 93% • ‎中文(马来西亚)‎ 93% • ‎Chinese (Singapore) 93% • ‎Chinese (Taiwan) 93%

When it's "converted to zh-hans" when misinterpreted as Chinese, it becomes:

他言语での翻訳: チェコ语 100% • ‎ドイツ语 93% • ‎Zazaki 20% • ‎英语 100% • ‎スペイン语 53% • ‎ペルシア语 100% • ‎フランス语 100% • ‎ヒンディー语 20% • ‎インドネシア语 87% • ‎イタリア语 93% • ‎日本语 93% • ‎韩国语 93% • ‎マケドニア语 87% • ‎オランダ语 100% • ‎ポーランド语 93% • ‎ポルトガル语[ブラジル] 7% • ‎ロシア语 93% • ‎シンハラ语 7% • ‎アルバニア语 13% • ‎セルビア语 7% • ‎スワヒリ语 93% • ‎中国语 93% • ‎Chinese (China) 93% • ‎简体中国语 100% • ‎繁体中国语 93% • ‎Chinese (Hong Kong) 93% • ‎中文(澳门)‎ 93% • ‎中文(马来西亚)‎ 93% • ‎Chinese (Singapore) 93% • ‎Chinese (Taiwan) 93%

I don't think that this task is still valid, @liangent those language names are autonym now

Aklapper changed the task status from Open to Stalled.Jul 20 2017, 9:48 PM

I don't think that this task is still valid, @liangent those language names are autonym now

@liangent: Do you know / agree?

I don't think that this task is still valid, @liangent those language names are autonym now

Unfortunately closing this Phabricator task as no further information has been provided and as T39559#3434017 implies that this is not the case anymore.
@liangent: If this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!

TripleCamera2022 subscribed.

This still happens. Reopening.
Screenshots:

T39559_screenshot1.png (637×2 px, 198 KB)

T39559_screenshot2.png (630×2 px, 193 KB)

Aklapper removed a subscriber: wikibugs-l-list.

Hi @TripleCamera2022, thanks for your comment and welcome to Wikimedia Phabricator.
This ticket has been closed for years already. If you run into some problem, please file a new ticket: See https://www.mediawiki.org/wiki/How_to_report_a_bug and fill out the template at https://phabricator.wikimedia.org/maniphest/task/edit/form/43/ - thanks!

After looking into the issue, I believe this was a mis-close as it was never been solved.

Okay, in that case let's reopen and stay in this ticket. Thanks for the second opinion!

Winston_Sung renamed this task from Language selector should be treated differently on a translatable page to Language translation list should not be converted by LanguageConverter on a translatable page.Apr 24 2023, 11:56 AM
Winston_Sung moved this task from Backlog to Core on the MediaWiki-Language-converter board.