Closed Bug 811690 Opened 12 years ago Closed 12 years ago

Can't access jp top page

Categories

(developer.mozilla.org Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ghost, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11 Steps to reproduce: See https://developer.mozilla.org/ja/ Actual results: Green monster appears.
Luke, Sheppy, do you know what might have caused this? I would say a translated variable, but we haven't pushed localization strings in a while.
Flags: needinfo?(lcrouch)
Someone (I think possibly you ethertank? :) keeps changing this back to a bad value with % characters: http://screencast.com/t/LeRn7Bx7 The URL there needs to be 'https://developer.mozilla.org/ja/docs/Project:日本語版' so django doesn't interpret '%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88' as a bunch of string interpolation variables. I can fix and push but whoever translates needs to run svn up before they translate next time to get the latest changes.
Flags: needinfo?(lcrouch)
Marking as fixed. That said, more than a couple of contributors have done this. ethertank: Could you tell us a little more about why you translated those characters? We can look into warning against this mistake moving forward.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
(In reply to John Karahalis [:openjck] from comment #3) Thank you for fix ! I don't know why it was so. Please try to copy and paste following URL into the location bar. https://developer.mozilla.org/ja/docs/Project:日本語版 URL will encode. This is very similar to the string in the screen shot.
The problem is that a % character triggers python's string interpolation. I.e., it looks for an argument passed into the '%E6' So, we need to avoid percent-encoding characters in the l10n message files. The files are utf8 encoded so they should support any such characters without percent-encoding.
A more permanent fix will be found in bug 812200.
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.