[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-10 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

Nemo federicol...@tiscali.it changed:

   What|Removed |Added

   Keywords||i18n
 CC||federicol...@tiscali.it

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

C. Scott Ananian canan...@wikimedia.org changed:

   What|Removed |Added

 CC||canan...@wikimedia.org,
   ||da...@sheetmusic.org.uk,
   ||jsahl...@wikimedia.org,
   ||niklas.laxst...@gmail.com,
   ||siebr...@kitano.nl
  Component|PDF renderer|Translate
Product|OCG |MediaWiki extensions
Summary|Japanese fonts on   |Japanese fonts on
   |translated pages rendered   |translated pages print as
   |as Tofu (square boxes)  |Tofu because lang
   ||attribute is missing.

--- Comment #2 from C. Scott Ananian canan...@wikimedia.org ---
The issue is that the Translation extension is not adding the proper lang
attribute on the translated message, so we are trying to render the entire
thing as English text.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

--- Comment #3 from Niklas Laxström niklas.laxst...@gmail.com ---
What translated message? The content is wrapped inside div
id=mw-content-text lang=ja dir=ltr class=mw-content-ltr/div. I do
not understand what is the problem and how it is related to Translate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

--- Comment #4 from C. Scott Ananian canan...@wikimedia.org ---
Ah, sorry -- you're right.  That's in the PHP parser output.

It's missing from the Parsoid output, however:
http://parsoid-lb.eqiad.wikimedia.org/metawiki/Tech/News/2014/40/ja?oldid=10019558

That has lang=en.

Could you describe how your extension sets the lang attribute on the content
(if you know) before I reassign this bug back over to Parsoid?  Presumably I
need to get this information via some API, as the desired content language is
not present in
https://meta.wikimedia.org/w/index.php?title=Tech/News/2014/40/jaaction=raw
for instance (which I assume is the raw text which Parsoid is working with).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

--- Comment #5 from Niklas Laxström niklas.laxst...@gmail.com ---
Via the hook:
https://github.com/wikimedia/mediawiki-extensions-Translate/blob/master/tag/PageTranslationHooks.php#L67

I am surprised if the page content language is not yet exposed in the API in
any way. If not, let's add it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

C. Scott Ananian canan...@wikimedia.org changed:

   What|Removed |Added

 CC||elitr...@gmail.com,
   ||jforres...@wikimedia.org,
   ||ssas...@wikimedia.org
  Component|Translate   |General
   Assignee|wikibugs-l@lists.wikimedia. |parsoid-t...@wikimedia.org
   |org |
Product|MediaWiki extensions|Parsoid

--- Comment #6 from C. Scott Ananian canan...@wikimedia.org ---
Ok, great.  I'm going to reassign it to Parsoid; I'll open a new bug if it
turns out the page content language isn't exposed via some API.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 71380] Japanese fonts on translated pages print as Tofu because lang attribute is missing.

2014-10-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=71380

ssas...@wikimedia.org changed:

   What|Removed |Added

   Priority|Unprioritized   |Normal

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l