Bug 569118 - Use C_() instead of Q_() with context (orca)



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


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