up!
nobody used i18n things?

On 3 май, 16:05, Konstantin Pavlovsky <[EMAIL PROTECTED]>
wrote:
> hi all
>
> I am working with administrative interface. and want to make it
> "speak" russian
> if it possible to translate names of Classes using i18n things?
>
> ive translated field lables with lazy gettext
>
> [code]
>     manager = models.ForeignKey(User,verbose_name=_("Manager"))
>     ordertext = models.TextField(_("Order contents"))
>     order_date = models.DateTimeField(_("Order date"))
>     client_name = models.CharField(_("Client"),maxlength=255)
>     order_state = models.ForeignKey(OrderStates,verbose_name=_("Order
> state"))
> [/code]
>
> i see them in russian.it works
> now i want modules to be called in russian.
> i added
> [code]
>     class Meta:
>         verbose_name = _('Order')
>         verbose_name_plural = _('Orders')
> [/code]
>
> Now a have module called Oders in index page of administrative
> interface
> I have ran make-messages , then putted nessesary frazes for Order and
> Orders (which appeared after i added those 2 lines above) and ran
> compile messages, but still no russian words appeared. i still have
> Orders instead of translation. And again - Descriptions for fields are
> working fine.
> i have this import above all
> [code]
> from django.utils.translation import gettext_lazy as _
> [/code]
>
> I need some advice here:) thanx
> P.S.
> I have svn trunk from 26 of april this year.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to