Closed Bug 821330 Opened 12 years ago Closed 12 years ago

Form options in contribute page are in English while we have them translated

Categories

(www.mozilla.org :: Bedrock, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pascalc, Assigned: pmac)

References

(Blocks 1 open bug)

Details

https://www-dev.allizom.org/b/fr/contribute/

The form options are displayed in English while the strings are translated in contribute.lang

The code containing these strings is:
https://github.com/mozilla/bedrock/blob/master/apps/mozorg/forms.py
Blocks: bedrock-l10n
Whiteboard: u=dev c=l10n p=
Assignee: nobody → pmac
Whiteboard: u=dev c=l10n p=
Submitted https://github.com/mozilla/bedrock/pull/535

It's almost done w/ review.
Status: NEW → ASSIGNED
Commits pushed to master at https://github.com/mozilla/bedrock

https://github.com/mozilla/bedrock/commit/d1b9805bf167145999784bd530d8cf4400b1aff0
Bug 821330: Fix translations on contribute page.

* Fix gettext lazy to be able to find additional lang files specified in
  python modules.
* Mark all translated strings a safe so that html entities aren't
  escaped.
* Add `lang_files` kwarg to _() and _lazy() for searching alternate
  lang files for only that string. This will _NOT_ alter extraction.

https://github.com/mozilla/bedrock/commit/b8435608209e4f23bc050b8e6e6ca11d29ae16d9
Merge pull request #535 from pmclanahan/bug-821330-contribute-form-not-translating

Bug 821330: Fix translations on contribute page.
FYI, this works on dev-allizom, thanks
in production.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.