[sugar] [PATCH] Complete i18n support for sugar-base

Tomeu Vizoso tomeu
Mon Jun 23 15:15:15 EDT 2008


Hmm, in sugar-base, we may need to do the same as we do in sugar-toolkit.

If for example the shell imports mime, gettext will think that its
domain is 'sugar', not 'sugar-base'.

I think that you need to add this to the top of mime.py:

_ = lambda msg: gettext.dgettext('sugar-base', msg)

There may be a cleaner solution, though...

Regards,

Tomeu

On Mon, Jun 23, 2008 at 8:55 PM, Sayamindu Dasgupta <sayamindu at gmail.com> wrote:
> Thanks to Tomeu on IRC - here's the complete patch. Sorry for the noise :-)
> Thanks,
> Sayamindu
>
>
> On Tue, Jun 24, 2008 at 12:14 AM, Sayamindu Dasgupta
> <sayamindu at gmail.com> wrote:
>> Patch attached. I also needed to add po/POTFILES.in (I'm not sure how
>> to make Git show that).
>> Thanks,
>> Sayamindu
>>
>>
>> --
>> Sayamindu Dasgupta
>> [http://sayamindu.randomink.org/ramblings]
>>
>
>
>
> --
> Sayamindu Dasgupta
> [http://sayamindu.randomink.org/ramblings]
>
> _______________________________________________
> Sugar mailing list
> Sugar at lists.laptop.org
> http://lists.laptop.org/listinfo/sugar
>
>



More information about the Sugar-devel mailing list