Hi All:

I'm looking at http://bugzilla.gnome.org/show_bug.cgi?id=569118, which is a request to migrate to C_ from Q_. Doing this in the C programming language seems pretty straightforward, but I'm puzzled about how to do it in Python.

The current Orca code does the equivalent of this:

def Q_(s):
    s = _(s)
    s = s[s.find('|')+1:]
    return s

This was easy to do since we controlled the whole string. Now that a context is explicitly called out with the C_ method, it seems like we might need to make a different gettext method call. I'm not quite sure what to do.

Is there a Python precedence that exists that I can take a look at?

Will
_______________________________________________
gnome-i18n mailing list
gnome-i18n@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n

Reply via email to