Closed
Bug 836277
Opened 11 years ago
Closed 11 years ago
missing link tooltip ends up in english
Categories
(support.mozilla.org :: Knowledge Base Software, task, P3)
support.mozilla.org
Knowledge Base Software
Tracking
(Not tracked)
RESOLVED
FIXED
2013Q1
People
(Reporter: willkg, Assigned: rrosario)
Details
(Whiteboard: u=user c=wiki p=1 s=2013.4)
If you do the following: 1. Translate a kb article adding a missing link. For example, "[[Ricky Rocks]]". 2. Approve the translation. 3. View the translation. If you hover over "Ricky Rocks", it'll say a tooltip like "Page does not exist" in the language you're looking at it in (assuming that language has it translated (I used the Pirate translation, but had to re-add it to LANGUAGE_CHOICES first)). 4. Then run: ./manage.py cron rebuild_kb which will go through and re-parse everything. 5. Once that is done (takes like 30 minutes on my machine--good coffee break), then go back and view the translation again. Outcome: The tool tip is in English because rebuild_kb parses everything using the english locale so gettext calls all return English. Expected: The tool tip is in the appropriate language.
Updated•11 years ago
|
Priority: -- → P3
Whiteboard: u=user c=wiki p= s=2013.4
Target Milestone: --- → 2013Q1
Reporter | ||
Comment 1•11 years ago
|
||
I just fiddled with similar things when doing email template stuff and wrote a context manager for setting the locale. In the code we'd create a context, then do the gettext/rendering calls, and it'd work fine. I'm pretty sure this is a 1 pointer.
Whiteboard: u=user c=wiki p= s=2013.4 → u=user c=wiki p=1 s=2013.4
Updated•11 years ago
|
Assignee: nobody → rdalal
Assignee | ||
Comment 3•11 years ago
|
||
In a pull request: https://github.com/mozilla/kitsune/pull/1179
Assignee | ||
Comment 4•11 years ago
|
||
Landed on master: https://github.com/mozilla/kitsune/commit/58df24c49fdeefb74cda547390984fd3b8ba95e2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•11 years ago
|
||
GAH! I didn't deploy yet
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•11 years ago
|
||
Deployed to prod now.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•