<br>On Tue, Sep 27, 2011 at 2:22 PM, Daniel Drake <span dir="ltr"><<a href="mailto:dsd@laptop.org">dsd@laptop.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Sep 27, 2011 at 12:57 AM, Chris Leonard<br>
<<a href="mailto:cjlhomeaddress@gmail.com">cjlhomeaddress@gmail.com</a>> wrote:<br>
> I looked at this commit<br>
><br>
> <a href="http://git.sugarlabs.org/speak/mainline/commit/b7c2e4d33cee6757ef1f9a960a9fca65f242f5c9" target="_blank">http://git.sugarlabs.org/speak/mainline/commit/b7c2e4d33cee6757ef1f9a960a9fca65f242f5c9</a><br>
><br>
> and I wonder if it really solves the problem from a L10n perspective.<br>
<br>
</div>It's a bad commit regardless of l10n stuff, and further shows a lack of testing.<br>
<br>
>>> print "%(speak)s %(speak)s" % ('a', 'b')<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
TypeError: format requires a mapping<br>
<br>
You have to provide a dictionary with the mapping of variable name to string.<br>
<font color="#888888"><br></font></blockquote><div><br></div><div>Yes, I only did the gettext change, re-package and test basic functionalities.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888">
Daniel<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br>