[Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations

2012-08-14 Thread Manuel Kaufmann
gettext[1] supports both the GNU gettext catalog API and higher level, class-based API that may be more appropriate for Python files. This commit changes the code to use the higher level, class-based API to return Unicode objects instead 8bits strings as it was. This allows us to have the code

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations

2012-08-14 Thread Daniel Drake
On Tue, Aug 14, 2012 at 1:15 PM, Manuel Kaufmann humi...@gmail.com wrote: Broadly speaking, the issue is related with merging Unicode string with 8bits ones and this convey many problems that are difficult to find out and solve. In Python, is highly recommended to use Unicode throughout the

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations

2012-08-14 Thread Manuel Kaufmann
On Tue, Aug 14, 2012 at 6:55 PM, Daniel Drake d...@laptop.org wrote: So _ will suddenly change from returning a string to a unicode for all activities? Yes. Actually, this patch is only for the activities that are being ported to Gtk3 (because it affects just to sugar-toolkit-gtk3) and it's a

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations

2012-08-14 Thread Daniel Drake
On Tue, Aug 14, 2012 at 4:19 PM, Manuel Kaufmann humi...@gmail.com wrote: That is likely to break several things, for the same reasons that we recently saw in another thread: why doesn't pygi return unicode strings for GtkEntry.get_text() and so on? Can you point me out to that thread? I

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations

2012-08-14 Thread S. Daniel Francis
2012/8/14 Manuel Kaufmann humi...@gmail.com: On Tue, Aug 14, 2012 at 3:49 PM, Gonzalo Odiard gonz...@laptop.org wrote: Can you explain the problem you are trying to solve and why you think this is the right solution? I sent an email yesterday commenting what the problem is and what the best

Re: [Sugar-devel] [PATCH sugar-toolkit-gtk3] Use class-based API for gettext translations

2012-08-14 Thread Manuel Kaufmann
On Tue, Aug 14, 2012 at 7:35 PM, Daniel Drake d...@laptop.org wrote: Show us an activity that fails because of this and give some details/explanation. I've already explain this on the other thread (I linked it in this one too), it talks about Typing Turtle and the Congratulation.. string but