Opened on 03/13/2015 at 08:55:22 PM
Closed on 03/13/2015 at 09:18:12 PM
#2145 closed defect (fixed)
[cms] Strings from random locales show up on "English" pages
Reported by: | trev | Assignee: | trev |
---|---|---|---|
Priority: | P2 | Milestone: | |
Module: | Sitescripts | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Platform: | Unknown | |
Ready: | yes | Confidential: | no |
Tester: | Verified working: | ||
Review URL(s): |
Description
How to reproduce
- Run python -m cms.bin.generate_static_pages on the web.adblockplus.org repository.
- Inspect the results, e.g. the en/about file.
Observed behaviour
Menu contains strings from random languages.
Expected behaviour
Menu language should be English only.
Background
The problem is due to the dictionary returned by source.read_locale() being modified. python -m cms.bin.generate_static_pages memoizes the result of this call, so on subsequent calls the same modified dictionary will be returned.
Attachments (0)
Change History (2)
Note: See
TracTickets for help on using
tickets.
Fixed: https://hg.adblockplus.org/cms/rev/bcc7a00aa7be