Yes, I force the language pt_BR for example with this code:

Just set to en_US or en for example

On file: /usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/
trac/web/main.py

Editing the line: 313

    def _get_locale(self, req):
        if Locale:
            available = [locale_id.replace('_', '-') for locale_id in
                         translation.get_available_locales()]

            preferred = req.session.get('language', req.languages)
            if not isinstance(preferred, list):
                preferred = [preferred]
            negotiated = Locale.negotiate(preferred, available,
sep='-')
            negotiated = 'pt_BR'
            self.log.debug("Negotiated locale oba: %s ->
%s",preferred, negotiated)
            return negotiated

I force the language pt_BR, inserting this line "  negotiated =
'pt_BR'   "

On 5 set, 14:44, Itamar O <[email protected]> wrote:
> Hi list,
>
> I noticed that when I use trac console applications (e.g. trac-admin),
> it sometimes auto-detects the locale of the OS, and uses the appropriate
> Trac locale.
> This is usually a good thing, I guess,
> but I use a console that displays question marks when confronted with Hebrew
> characters,
> which makes using the console applications somewhat challenging...
>
> Is there a way to make the console application ignore the OS locale and use
> the default English one?
>
> Thanks,
> Itamar.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to