[Sugar-devel] [PATCH] Wireless key dialog: Translate more strings (OLPC#9268)

Daniel Drake dsd at laptop.org
Wed Sep 14 13:32:34 EDT 2011

On Mon, Aug 1, 2011 at 6:11 PM, Sascha Silbe <silbe at activitycentral.com> wrote:
> As you are already touching this code, please consider replacing the %s
> with %r (the difference is in how strings containing special characters
> and quotes get displayed) and using a singleton tuple for the string
> formatting parameter (self._ssid) for consistency with other code.

%s seems to match the way that names are displayed in other parts of
the UI, so I will stick with that.

I don't understand your comment about using a singleton tuple - can
you explain or show me the code that you refer to? Are you suggesting
packing it into a tuple and using some kind of alternative to %r/%s
that peeks into the tuple?


More information about the Sugar-devel mailing list