2-I have used poedit to translate some strings from django.po
3-In settings.py I've changed some code.
....LANGUAGE_CODE = 'pt-br'
4-USE_I18N = True
Didn't worked!
So I tried to use a translation to another language.
5-....LANGUAGE_CODE = 'fr' #I've tried to use french translation only
to test
Didn't work too
I don't have experience with this, so, maybe I'm doing something
wrong . Can anyone help me?
> 2-I have used poedit to translate some strings from django.po
> 3-In settings.py I've changed some code.
> ....LANGUAGE_CODE = 'pt-br'
> 4-USE_I18N = True
> Didn't worked!
> So I tried to use a translation to another language.
> 5-....LANGUAGE_CODE = 'fr' #I've tried to use french translation only
> to test
> Didn't work too
> I don't have experience with this, so, maybe I'm doing something
> wrong . Can anyone help me?
> On 13 dez, 12:00, Andre Duarte <clint.tecnolo...@gmail.com> wrote: > > I'm planning to make a initial translation to pt_BR and then someone > > can improve. > > So, what I did:
> > 2-I have used poedit to translate some strings from django.po > > 3-In settings.py I've changed some code. > > ....LANGUAGE_CODE = 'pt-br' > > 4-USE_I18N = True > > Didn't worked! > > So I tried to use a translation to another language. > > 5-....LANGUAGE_CODE = 'fr' #I've tried to use french translation only > > to test > > Didn't work too
> > I don't have experience with this, so, maybe I'm doing something > > wrong . Can anyone help me?
Other django projects are ok.
So, I was inspecting the code to figure out why translate don't work
with Satchmo and the only diference I found is this
"django.middleware.locale.LocaleMiddleware" , so I removed this and
translations are now working but with django/utils/locale/(my_lang)/
LC_MESSAGES instead satchmo/locale/(my_lang)/LC_MESSAGES
On 13 dez, 14:20, "Bruce Kroeze" <bkro...@gmail.com> wrote:
> Andre, is that location enabled on your machine? Ubuntu and Debian do not
> come with locales set up for many common locales.
> > Andre, is that location enabled on your machine? Ubuntu and Debian do > not > > come with locales set up for many common locales. > How can I see this?
How?
aptitude install mozilla-firefox-locale-pt-br
My Firefox was in English so, the requests are in "en" not in "pt-br"
and then when LocaleMiddleware get the request and change my
language. :-D
"""
This is a very simple middleware that parses a request
and decides what translation object to install in the current
thread context. This allows pages to be dynamically
translated to the language the user desires (if the language
is available, of course).
"""
Now I' going to work on my translation and soon as possible I'll send
the django.po.
Tk's
On 13 dez, 16:19, "Bruce Kroeze" <bkro...@gmail.com> wrote:
> > > Andre, is that location enabled on your machine? Ubuntu and Debian do
> > not
> > > come with locales set up for many common locales.
> > How can I see this?
Andre Duarte wrote: > Problem solved, Bruce thanks for your pacience!
> How? > aptitude install mozilla-firefox-locale-pt-br > My Firefox was in English so, the requests are in "en" not in "pt-br" > and then when LocaleMiddleware get the request and change my > language. :-D
The language Firefox requests during content negotiation does not have to be the same as the one the user interface shows: you may set it via Edit -> Preferences -> Advanced -> General -> Languages -> Choose...
For instance, I see the English user interface, but have Italian and English as chosen languages, in that order of preference.
I've been pretty much convinced that we've got to have autoescape, and it's got to be on by default. It's basically a tradeoff between annoyance (of having to turn it off when you need it off) and security, and security has to win that argument. -- Jacob Kaplan-Moss, Django developer, July 2007
> Andre Duarte wrote:
> > Problem solved, Bruce thanks for your pacience!
> > How?
> > aptitude install mozilla-firefox-locale-pt-br
> > My Firefox was in English so, the requests are in "en" not in "pt-br"
> > and then when LocaleMiddleware get the request and change my
> > language. :-D
> The language Firefox requests during content negotiation does not have
> to be the same as the one the user interface shows: you may set it via
> Edit -> Preferences -> Advanced -> General -> Languages -> Choose...
> For instance, I see the English user interface, but have Italian and
> English as chosen languages, in that order of preference.
> I've been pretty much convinced that we've got to have autoescape,
> and it's got to be on by default. It's basically a tradeoff
> between annoyance (of having to turn it off when you need it off)
> and security, and security has to win that argument.
> -- Jacob Kaplan-Moss, Django developer, July 2007
Tanks Chris Moffitt, Itīs work for Firefox, but for IE donīt. On IE seens only Django default words appears with translate, and Satchmo words steel in English after LANGUAGE_CODE = pt_BR Do you know if have another way to modify the default locale?
> Tanks Chris Moffitt, > It s work for Firefox, but for IE don t. > On IE seens only Django default words appears with translate, and > Satchmo words steel in English after LANGUAGE_CODE = pt_BR > Do you know if have another way to modify the default locale?