Bug 569118 - Use C_() instead of Q_() with context (orca)
- From: Willie Walker <William Walker Sun COM>
- To: gnome-i18n gnome org
- Subject: Bug 569118 - Use C_() instead of Q_() with context (orca)
- Date: Mon, 26 Jan 2009 07:18:59 -0500
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]