Otherwise I can do translation system. But it will be in its own way
with dictionaries and shelve. But it will be difficult if someone
decides to translate.
po has its own editor.
В 19:22 +1000 на 03.08.2011 (ср), Steven D'Aprano написа:
> Григор Колев wrote:
> > Hi.
> > Some one help me.
> > Ha
I do not understand
I have bg.po file
And try the following.
import gettext
instance = gettext.GNUTranslations(open('bg.po'))
IOError: [Errno 0] Bad magic number: 'bg.po'
and this
instance = gettext.Catalog('bg.po')
IOError: [Errno 2] No translation file found for domain: 'bg.po'
В 14:48 +05
Григор Колев wrote:
Hi.
Some one help me.
Haw can I use .po translation file for my program.
This is not a standard part of Python. Is this a django thing? You
should ask on a django forum.
--
Steven
___
Tutor maillist - Tutor@python.org
To
2011/8/3 Григор Колев
> Hi.
> Some one help me.
> Haw can I use .po translation file for my program.
>
> cat = gettext.Catalog(domain, localedir)
> what should be domain
>
Domain is usually the name of po file it defaults to django and djangojs in
some cases.
>
>