Hi,

I am using pybabel to create different catalogs for translation.  So
far, I got 2 po files and they are

translation/es/LC_MESSAGES/messages.po
translation/es/LC_MESSAGES/Domain1.po

1) what to do in code to use the Domain1.po.  I have tried

    print _('Some test to translate')  # this would use the
message.po, but I want to use the Domain1.po instead
    local_path = 'translations'
    domain = 'Domain1'
    t = gettext.translation(domain, "translations")
    print _('Some test to translate')

But got "IOError: [Errno 2] No translation file found for domain:
'Domain1'"

2) How do I tell the flask to use specific translation from a domain?
In php, I can specific what domain to sue in the _(' ') marker, but I
don't see how this can be done in flask, especially if the template
uses multiple catalog files and some translations in the catalog files
overlap

Thanks
Mason

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

Reply via email to