On Mar 24, 8:11 pm, Emilis Kuke <[email protected]> wrote:
> Hello Niklasro! Thanks for response.
>
> Does your pack and implementation work with verbose_name correctly. Is
> it possible to change language for this property outside of system.py
> configuration file. And if it you have a such implementation could you
> share it with me?
>
> I need to change language model like this
>
> class Advertisement(db.Model):
>   name = db.StringProperty(required=True,verbose_name=_(u'First name'))
>
> not in settings.py.
>
> LANGUAGE_CODE = 'lt'
>
> _ = lambda s: s
>
> LANGUAGES = (
>     ('en', _('English')),
>     ('lt', _('Lithuanian')),
>     )
>
> Views transtales very well  with
> 'localeurl.middleware.LocaleURLMiddleware', but doesn't translate out
> of the box model field, which represents label in my form value. So
> After changing language in url I must to change LANGUAGE_CODE in
> settings.py. So I'm in truble, becouse, I coudn't do this action the
> the fly. Firstly I should stop server, second change LANGUAGE_CODE
> variable value, and run server. So maybe do you have better solution
> for my problem.
>
> Thanks for the effor!
>
> --
> Sincerely,
>
> Emilis Kuke
>
> Tel.: +37067837043
My answer is yes, all appears here way it should. It is open and
appears flexible here for instance language code it works from here
http://www.koolbusiness.com?hl=it
Code is available montao.googlecode working to drop the custom request
handler towards implementation gae team know better.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to