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

S. Daniel Francis francis at sugarlabs.org
Tue Aug 14 19:21:46 EDT 2012


2012/8/14 Manuel Kaufmann <humitos at gmail.com>:
> On Tue, Aug 14, 2012 at 3:49 PM, Gonzalo Odiard <gonzalo at 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 solution is. Here is the thread:
>
>  * http://lists.sugarlabs.org/archive/sugar-devel/2012-August/038928.html
-1
I already explained my position at that thread, and my namesake dsd is
also disagreeing as I can see.

> With this patch there is no need to change the source code of all the
> activities, they should work as they are. But, we can omit the import
> of gettext as _ because this patch installs it as a builtin
> function[1]:
>
> from gettext import gettext as _
>
> For this reason, we can omit this line in new Activities.
>
+1
Does the old import generate a conflict or the developers must use a
conditional for backward compatibility?


More information about the Sugar-devel mailing list