Last modified: 2014-11-16 07:32:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39559, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37559 - Language selector should be treated differently on a translatable page
Language selector should be treated differently on a translatable page
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 37338
  Show dependency treegraph
 
Reported: 2012-06-13 18:22 UTC by Liangent
Modified: 2014-11-16 07:32 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2012-06-13 18:22:10 UTC
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).
Comment 1 Liangent 2012-06-13 18:45:57 UTC
(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...
Comment 2 Liangent 2012-06-13 18:47:14 UTC
BTW, <div lang="*"> is also an issue here.
Comment 3 Liangent 2012-06-13 18:48:58 UTC
(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.
Comment 4 Robin Pepermans (SPQRobin) 2012-06-15 01:23:13 UTC
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).
Comment 5 Andre Klapper 2013-04-04 12:23:57 UTC
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?
Comment 6 Liangent 2013-04-04 12:34:26 UTC
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%

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links