[Dextrose] [SoaS] Missing gettext dependency needed for localised activities
Walter Bender
walter.bender at gmail.com
Mon Sep 27 08:37:38 EDT 2010
On Mon, Sep 27, 2010 at 8:29 AM, Gary Martin <garycmartin at googlemail.com> wrote:
> On 23 Sep 2010, at 08:49, Simon Schampijer wrote:
>
>> On 09/21/2010 07:22 PM, Gary Martin wrote:
>>> Hi Simon,
>>>
>>> On 20 Sep 2010, at 11:30, Simon Schampijer wrote:
>>>
>>>> On 09/18/2010 04:01 PM, Gary Martin wrote:
>>>>> On 18 Sep 2010, at 10:52, "pbrobinson at gmail.com"<pbrobinson at gmail.com> wrote:
>>>>>
>>>>>> On Fri, Sep 17, 2010 at 9:57 PM, Gary C Martin
>>>>>> <garycmartin at googlemail.com> wrote:
>>>>>>> Hi Folks,
>>>>>>>
>>>>>>> Just wanted to email this ticket out and make sure the gettext package makes it into the Soas and Dextrose distros. Without it none of the activity po files will be built at bundle install time, thus failing to create the locale directory binary .mo files. Without this, activity translations will not work. This appears to be a break going back to at least Soas Mirabelle.
>>>>>>
>>>>>> Yep, it was dropped in Mirabelle because it pulled in horrific
>>>>>> dependencies and when I asked about it I was told it was historical
>>>>>> and that all the Activities should be pre-generating the translations
>>>>>> and that they shouldn't generated on local install.
>>>>>
>>>>> Ouch, that is news to me, no wonder activity localization is broken. Can you point me to the thread/ticket/wiki with that discussion? Including the binary .mo locale files in the source and/or .xo bundles is, to the best of my knowledge, not the usual workflow for activity releases.
>>>>
>>>> When you use the sugar tools it should just work fine:
>>>> "./setup.py dist_source" will create a tarball with just the *.po files.
>>>
>>> Oooh, so it does, learn't something new today, thanks :)
>>
>> Excellent :)
>>
>>>> "./setup.py dist_xo" will create the bundle with a locales folder that contains the .mo for the activity.
>>>
>>> Hmmm, now the question is does dist_xo build the locale folder and then make the bundle with it in, or do you have to manually build first before dist_xo?
>
> Thinking about it some more, whatever the case, without gettext I guess this still make Soas and Dextrose distributions broken for anyone hoping to do a little activity development/tinkering.
>
>>> I've just looked through a mix of past .xo releases of mine, some have locale directories and some don't (aargh!). I'm pretty sure I alway use ./setup.py dist_xo on an XO-1 running an official OLPC 0.82 or 0.84 to build my official .xo bundle releases.
>>
>> The code should do the right thing [1]. And from my testing it works fine as well. Not sure what might have went wrong on your end :/ Can you retry?
>
> Not sure yet, I'm still away from my flat, and the XO-1 (0.82) I usually do a final release from is up there, need to look through the ~/Activities directory to check the .xo bundle contents vs the directories I was using dist_xo from.
>
> FWIW, I've just gone through the 42 activities pre-installed in the "1dx2 Dextrose 2 International" XO-1 image, these were activities with po translations that were missing a locale directory:
>
> Abacus-17
In the case of Abacus, as far as I know, there are no po files, hence
no locale directory. (There is a .pot file, but there have never been
any translations committed.)
-walter
> Calculate-33
> Implode-9
>
> Regard,
> --Gary
>
>> Regards,
>> Simon
>>
>> [1] http://git.sugarlabs.org/projects/sugar-toolkit/repos/mainline/blobs/sucrose-0.84/src/sugar/activity/bundlebuilder.py#line283
>
> _______________________________________________
> SoaS mailing list
> SoaS at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/soas
>
--
Walter Bender
Sugar Labs
http://www.sugarlabs.org
More information about the Dextrose
mailing list