Opened 16 years ago
Closed 16 years ago
#7973 closed enhancement (fixed)
Add a few debug messages about locale selection
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | i18n | Version: | 0.12dev |
Severity: | normal | Keywords: | babel |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I spent quite a lot of time to get I18N working because Babel is installed in a non standard location and it was not found by Trac. Unfortunatly, Trac is silent when it doesn't found Babel and it had been difficult to understand what whas the pb and after Babel was found, why it was not working…
I'd suggest to add a few debug message about locale selection. Attached is a proposed patch to trac/web/main.py.
Michel
Attachments (2)
Change History (7)
by , 16 years ago
Attachment: | main.py.patch added |
---|
comment:1 by , 16 years ago
Keywords: | babel added |
---|
comment:2 by , 16 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Version: | none → 0.12dev |
Can you please test the above patch? Thanks.
by , 16 years ago
Attachment: | t7973-Locale-negotiation-r7795.diff added |
---|
Improve diagnostics when Babel package is not found and add a debug message for Locale negotiation.
Ok, but the second log.debug about Babel not found should rather be done once in some place, next to the code to report Babel version, something like:
trac/web/chrome.py
(untested)