#4675 closed defect (wontfix)
Default locale in Tracd
Reported by: | DiGi | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | web frontend/tracd | Version: | 0.10.3 |
Severity: | minor | Keywords: | datetime locale |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It is impossible to set Locale for Tracd.
Trouble is condition if 'mod_python.options' in environ:
in def dispatch_request
(source:trunk/trac/web/main.py). Line 341 should not clear locate before set (line 343).
Best solution is change line 341 to read default locale from trac.ini
Attachments (0)
Change History (5)
comment:1 by , 18 years ago
Keywords: | datetime, locale → datetime locale |
---|---|
Severity: | normal → minor |
Version: | → 0.10.3 |
comment:2 by , 18 years ago
Replying to DiGi:
It is impossible to set Locale for Tracd.
Well, when I define
export LC_ALL="fr_FR"
before starting tracd
, locale is actually defined to the french locale.
Did you try to define LC_ALL
? Which locale are you using?
follow-up: 4 comment:3 by , 18 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
It is English Windows 2000. Sorry - I think that I have OS locale set to Czech (it is server, not my work pc) but I don't. After changing locale Trac starts displaying correct date format. But that option can be useful for logins, where you can't change user locale.
About your reply: where should I use that export?
Python don't like correct locale 'cs_CZ' (Python 2.4.4 (#71, Oct 18 2006, 08:34:43)
). I made some tests and 'cz' works fine.
comment:4 by , 18 years ago
Replying to DiGi:
But that option can be useful for logins, where you can't change user locale.
I'm not sure to understand what you meant here. Can you elaborate?
About your reply: where should I use that export?
This was an example with the french locale, you can use any other locale that suits your needs. Moreover, this was an example for Unix servers.
Python don't like correct locale 'cs_CZ' ({{{Python 2.4.4 (#
1, Oct 18 2006, 08:34:43)}}}). I made some tests and 'cz' works fine.
Python or Windows? Unfortunately, the local string depends on the OS.
comment:5 by , 18 years ago
Default locale on Windows is stored as user preference (somewhere in Registry, chnaged by regular OS dialog). It is OK if you have OS in your language or you can change that preference. Trouble is if you want run Tracd as system service on server.
For Trac-cgi you can override default locale in Apache config file. But You can't do this for tracd. It will always use User/Os defaults.
Some details about system: Trac 0.10.3 (official), Windows 2000 Server (updated), Tracd started as Task