dogtail-devel [Bug 377298] dogtail is not localized



If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=377298

  dogtail | Framework | Ver: unspecified




------- Comment #24 from Michal Babej  2007-11-29 14:24 UTC -------
Update:

>  - bindtextdomain needs to set the locale dir.
i didn't use bindtextdomain, sorry, i didn't find any need to provide a path to
locales, the system default path works fine. Now i see Solaris has a different
locale path, so yes it needs some fixing.

>  - Some of .py loose '_' macro. It causes execution errors.
Yeah, that needs correction. _() is created by calling gettext.install(), so
before that call it's not available. So far i put it into tree.py and sniff
only.

>  - The single quotation does not work with intltool which is used by many
> translators.
See my note below.

>  - gnome.ui needs to be loaded.
I don't understand this one, sorry.

> Yes, I put the sniff and dogtail-recorder is saved in POTFILES.in at the moment
> however I think that finally we need to renamed sniff to sniff.py in the source
> files so that intltool-update can detect the file.

Note: Renaming sniff to sniff.py won't help at all, intltool-update uses
gettext on all files it can't parse itself - including python. Not only gettext
doesn't understand python's single quotation, even if it's valid. An example:
change the quit() function in sniff to:

def quit(*args):
    """
    haluska
    print _("asdfsadfsdfgdf")
    """
    gtk.main_quit()

and run intltool-update. It's going to create:
#: ../sniff/sniff:59
msgid "asdfsadfsdfgdf"
msgstr ""

because it doesn't understand python comments (and who knows what else).

> 
> > Unfortunately python's support for i18n isn't all-star either.

> I think when the python official package is available, the option is
> considered. At the moment, none python intltool is available and it's used by
> several python applications, gnome-menus, orca and etc.

I found that pygettext.py (python's xgettext,
http://svn.python.org/projects/python/trunk/Tools/i18n/pygettext.py)
is packaged for Fedora already in a package named "python-tools". Yeah that's
true intltool is not there, unfortunately. But then the only reason i see for
using intltool is sniff.glade.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=377298.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]