Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Firefox OS Simulator and languages

77 views
Skip to first unread message

Francesco Lodolo [:flod]

unread,
May 3, 2013, 3:21:48 AM5/3/13
to Mozilla l10n Mailing List, Staś Małolepszy
Hi,
can someone help me finding out how languages are included in the
Firefox OS Simulator (or who I can talk to to find out)?

Out of curiosity I've just downloaded version 3.0 and you can choose
only among 10 languages. Personally I think this would be a great tool
for QA localization (no need to use command line, git, etc.).

Francesco

KAMI911 KAMI911

unread,
May 3, 2013, 3:46:26 AM5/3/13
to Francesco Lodolo [:flod], Mozilla l10n Mailing List, Staś Małolepszy
Hi,

I agree. For first version I manually hacked thge language files, but It
would be better to automatically provide them with the latest version.

KAMI

2013/5/3 Francesco Lodolo [:flod] <fl...@lodolo.net>
> ______________________________**_________________
> dev-l10n mailing list
> dev-...@lists.mozilla.org
> https://lists.mozilla.org/**listinfo/dev-l10n<https://lists.mozilla.org/listinfo/dev-l10n>
>

Julen Ruiz Aizpuru

unread,
May 3, 2013, 3:46:24 AM5/3/13
to Mozilla l10n Mailing List
or., 2013.eko mairen 03a 09:21(e)an, Francesco Lodolo [:flod](e)k idatzi
zuen:
> Hi,
> can someone help me finding out how languages are included in the
> Firefox OS Simulator (or who I can talk to to find out)?

I'd bet that's:
https://github.com/mozilla/r2d2b2g/blob/master/build/languages.json

> Out of curiosity I've just downloaded version 3.0 and you can choose
> only among 10 languages. Personally I think this would be a great tool
> for QA localization (no need to use command line, git, etc.).

+1 on this.
Asking would-be testers to setup a build environment is overkill. Same
for actual phones, but that's a separate story I guess.

Julen.

Francesco Lodolo [:flod]

unread,
May 3, 2013, 4:07:59 AM5/3/13
to dev-...@lists.mozilla.org
Il 03/05/13 09:46, Julen Ruiz Aizpuru ha scritto:
I think so. Snooping around I also see this, so it looks like strings
are coming from the gaia-l10n repository
https://github.com/mozilla/r2d2b2g/blob/master/build/make-locales.py

I wonder if opening a new issue on GitHub is the right way to go.

Francesco

Axel Hecht

unread,
May 3, 2013, 5:03:51 AM5/3/13
to
Yeah, github issue would be right. Myk is the guy driving the addon.

That said, I'm not sure how much that wins you, I don't think that addon
updates as frequently as your localizations do?

Asking everybody using that addon for developing apps to update every
day or two doesn't sound very compelling.

On the other hand, if one/two/three of you would maintain a l10n-focused
version, that might be more like it? Different addon-id, more granular
version numbers, different update url would be my thought ad-hoc.

And then figure out how to make that publish often.

If you can get that to work, I bet mrz would be happy to help out with
blockers on infra. I was tempted to say l10n.mozilla-community.org, but
that is already such an overloaded poor baby.

Axel

Francesco Lodolo [:flod]

unread,
May 3, 2013, 5:20:45 AM5/3/13
to dev-...@lists.mozilla.org
Il 03/05/13 11:03, Axel Hecht ha scritto:
> That said, I'm not sure how much that wins you, I don't think that
> addon updates as frequently as your localizations do?
> Asking everybody using that addon for developing apps to update every
> day or two doesn't sound very compelling.
Localizations will definitely update more often than the add-on. Talking
from experience, a few minutes on a phone and I realized I had to change
a lot of things in my localization.
Considering how heavy the add-on is in terms of download, I would never
dream of updating it every time a language does some QA.

Besides we have already received some requests on our support forum (the
usual "Why isn't it available in Italian?"), so at least having
localized milestones would help ;-)
I'll try opening a new issue on GitHub to request the inclusion of more
strings and see how it goes.
> On the other hand, if one/two/three of you would maintain a
> l10n-focused version, that might be more like it? Different addon-id,
> more granular version numbers, different update url would be my
> thought ad-hoc.
This could be interesting. I'll try to have a look at the add-on in the
next days and see how it works and if I can build it locally (never
tried that). Suggestions where to ask for help in case I hit a wall
during the process (irc channel, mailing list)?

Francesco

Ibraahiima SAAR

unread,
May 3, 2013, 5:41:06 AM5/3/13
to Francesco Lodolo [:flod], dev-l10n
Hi
Is there a way to test "not-yet-shipped" localizations of Firefox OS on a *real
*phone? Or are we going to be able to hack developer phones to add our onw
locales?
Cheers
Ibrahima


2013/5/3 Francesco Lodolo [:flod] <fl...@lodolo.net>

> Il 03/05/13 09:46, Julen Ruiz Aizpuru ha scritto:
>
> I'd bet that's:
>> https://github.com/mozilla/**r2d2b2g/blob/master/build/**languages.json<https://github.com/mozilla/r2d2b2g/blob/master/build/languages.json>
>>
> I think so. Snooping around I also see this, so it looks like strings are
> coming from the gaia-l10n repository
> https://github.com/mozilla/**r2d2b2g/blob/master/build/**make-locales.py<https://github.com/mozilla/r2d2b2g/blob/master/build/make-locales.py>
>
> I wonder if opening a new issue on GitHub is the right way to go.
>
> Francesco
>

Julen Ruiz Aizpuru

unread,
May 3, 2013, 7:40:38 AM5/3/13
to dev-l10n
or., 2013.eko mairen 03a 11:41(e)an, Ibraahiima SAAR(e)k idatzi zuen:
> Hi
> Is there a way to test "not-yet-shipped" localizations of Firefox OS on a *real
> *phone? Or are we going to be able to hack developer phones to add our onw
> locales?

These instructions work fine both for a real device and for a desktop build:
http://www.pijusmagnificus.com/2013/04/30/test-your-gaia-localization/

Julen.

Ibraahiima SAAR

unread,
May 3, 2013, 8:25:01 AM5/3/13
to Julen Ruiz Aizpuru, dev-l10n
Thanks a lot Julen
That seems real helpful and not too impossible to do. I'd like to know if
there are unofficial lists of phones that would work for this or that have
been successfully flashed by others. Also, are the Firefox OS developper
phones hackable to support a given locale?
Cheers man
Ibrahima


2013/5/3 Julen Ruiz Aizpuru <jul...@gmail.com>

> or., 2013.eko mairen 03a 11:41(e)an, Ibraahiima SAAR(e)k idatzi zuen:
>
>> Hi
>> Is there a way to test "not-yet-shipped" localizations of Firefox OS on a
>> *real
>> *phone? Or are we going to be able to hack developer phones to add our onw
>> locales?
>>
>
> These instructions work fine both for a real device and for a desktop
> build:
> http://www.pijusmagnificus.**com/2013/04/30/test-your-gaia-**localization/<http://www.pijusmagnificus.com/2013/04/30/test-your-gaia-localization/>
>
> Julen.

Axel Hecht

unread,
May 3, 2013, 10:28:43 AM5/3/13
to
On 5/3/13 2:25 PM, Ibraahiima SAAR wrote:
> Thanks a lot Julen
> That seems real helpful and not too impossible to do. I'd like to know if
> there are unofficial lists of phones that would work for this or that have
> been successfully flashed by others. Also, are the Firefox OS developper
> phones hackable to support a given locale?

The instructions on that blog post should work OK with the geeksphone,
as long as you stay close the build it has on it. I.e., IIRC, you want
to use the 1.0.1 branch for that.

Axel

Myk Melez

unread,
May 3, 2013, 8:28:11 PM5/3/13
to Axel Hecht, dev-...@lists.mozilla.org
On 2013/05/03 02:03, Axel Hecht wrote:
> Yeah, github issue would be right. Myk is the guy driving the addon.
And I'm subscribed to this list! So I'm happy to chat here in addition
to responding to GitHub issues.

I did recently add six more locales to the Simulator, which added about
half a megabyte to the package size. And I'm not necessarily opposed to
adding more. But I'm concerned about making the addon even larger, since
it's already very large, and we've been trying to make it smaller.

> That said, I'm not sure how much that wins you, I don't think that
> addon updates as frequently as your localizations do?
Typically, I push a preview build containing the latest development
changes once per week. But sometimes I skip a week or two, or I skip
updating Gaia. So preview builds with updated versions of Gaia can come
out less frequently.

Release builds come out every 1-3 months.

> Asking everybody using that addon for developing apps to update every
> day or two doesn't sound very compelling.
>
> On the other hand, if one/two/three of you would maintain a
> l10n-focused version, that might be more like it? Different addon-id,
> more granular version numbers, different update url would be my
> thought ad-hoc.
>
> And then figure out how to make that publish often.
This is a great idea! And last month I did some work to making building
the Simulator with additional locales much easier. Here's a description
of the process for building with Gaia's "all languages" file and then
packaging your build for distribution to others:

https://github.com/mozilla/r2d2b2g/issues/124#issuecomment-17420895

It's pretty straightforward, and it works on all three primary OSes!
(Use MozillaBuild on Windows.) Plus it doesn't actually require a
compiler, as there's no actual compilation (the process uses
pre-compiled builds of B2G Desktop). So it's worth setting up regular
builds for localizers. And I'm happy to answer questions and
troubleshoot problems as you do so!

-myk

Francesco Lodolo [:flod]

unread,
May 3, 2013, 10:35:20 PM5/3/13
to Myk Melez, Axel Hecht, Mozilla l10n Mailing List
> I did recently add six more locales to the Simulator, which added about
> half a megabyte to the package size. And I'm not necessarily opposed to
> adding more. But I'm concerned about making the addon even larger, since
> it's already very large, and we've been trying to make it smaller.


Ok, this makes sense. Could you add a note in the description on AMO about
the languages included? This would probably save us a lot of questions.


> This is a great idea! And last month I did some work to making building
> the Simulator with additional locales much easier. Here's a description of
> the process for building with Gaia's "all languages" file and then
> packaging your build for distribution to others:
>
> https://github.com/mozilla/**r2d2b2g/issues/124#**issuecomment-17420895<https://github.com/mozilla/r2d2b2g/issues/124#issuecomment-17420895>
>
> It's pretty straightforward, and it works on all three primary OSes! (Use
> MozillaBuild on Windows.) Plus it doesn't actually require a compiler, as
> there's no actual compilation (the process uses pre-compiled builds of B2G
> Desktop). So it's worth setting up regular builds for localizers. And I'm
> happy to answer questions and troubleshoot problems as you do so!
>

Great. I'll definitely take a look into it and ping you if I find problems.
Once I see that everything works as expected, I'll try to understand where
to put builds, manage updates, etc.

Francesco

Francesco Lodolo [:flod]

unread,
May 4, 2013, 3:58:05 AM5/4/13
to dev-...@lists.mozilla.org, m...@mozilla.org
Hi myk,
great work :-) So far I've tried only on Mac and it works just fine. For
the record, the resulting .xpi is 56.2MB.

Once you've built your first package, will these commands be enough to
update and rebuild?
> cd r2d2b2g
> git pull
> export LOCALES_FILE=${PWD}/gaia/locales/languages_all.json
> make locales
> make build
> make package
My next step will be to try building it on Linux (VM) and Windows (I
need to set-up the environment first on both systems).

About the "l10n-r2d2b2g", I was thinking:

* Do we want to host it on AMO? TBH I'm not sure about that,
considering the review process.
* If not on AMO, where?
* Should this add-on auto-update or, if you want to update, you just
download a new .xpi? BTW, we need some way to build the .xpi with a
different ID, or it will download updates from AMO of the original
add-on.
* How often should this add-on be updated? Weekly or less? Building is
really fast, uploading it somewhere at 30 KB/s is going to take a
lot more time.

Francesco


Archaeopteryx

unread,
May 4, 2013, 10:57:26 AM5/4/13
to dev-...@lists.mozilla.org
> About the "l10n-r2d2b2g", I was thinking:
>
> * Do we want to host it on AMO? TBH I'm not sure about that,
> considering the review process.
> * If not on AMO, where?
Does http://mozdev.org/ accept files so huge?

> * Should this add-on auto-update or, if you want to update, you just
> download a new .xpi? BTW, we need some way to build the .xpi with a
> different ID, or it will download updates from AMO of the original
> add-on.
If you have an updateURL (which you will need anyway if you don't host
on AMO and want to provide updates), there is no need to change the id.
> * How often should this add-on be updated? Weekly or less? Building is
> really fast, uploading it somewhere at 30 KB/s is going to take a
> lot more time.
As often as possible. The "two updates on Nightly channel per day"
strategy currently supported for the Unagi phone offers a fast workflow
with translating, pushing, and verifying in the product a few hours later.

Sebastian

Francesco Lodolo [:flod]

unread,
May 4, 2013, 12:53:13 PM5/4/13
to dev-...@lists.mozilla.org
Il 04/05/13 16:57, Archaeopteryx ha scritto:
> If you have an updateURL (which you will need anyway if you don't host
> on AMO and want to provide updates), there is no need to change the id.
I was worried that Firefox checks the ID anyway on AMO, even if you
provide an updateurl, and finding one there things get complicated.
Unfortunately I didn't find anything useful on MDN to clear this up, but
considering you're also an AMO editor I guess I found my answer ;-)
> As often as possible. The "two updates on Nightly channel per day"
> strategy currently supported for the Unagi phone offers a fast
> workflow with translating, pushing, and verifying in the product a few
> hours later.
That's a lot... Here's what I was thinking.

*Main localizer(s)*

If you're localizing Gaia, you need something quick to check what you're
doing and be sure that you're really fixing things (is this label the
button name or the section title? Will it fit in that tiny space? etc.).

It could be a developer phone where you can push strings directly,
running Gaia inside Firefox and using developer tools, or hack your
language into a desktop build or simulator. That's possible and pretty
easy even if you don't want to mess up your system, e.g. it took me 30
minutes to setup a VM with Debian and build the xpi for Linux.

*Testers (QA)*

That's where I think the simulator will be a powerful tool. You want to
provide people with an easy tool to use, and the add-on format is just
perfect. And that's also why I'm not sure if automatic update is
something you want to provide:

* occasional users don't want to be constantly bothered with updates
of 75MB (that's the size of the Linux build). They're just curious
to test it in their own language, and they won't probably take the
time to provide feedback on the localization.
* testers: you want (need) these people to test the localization, find
errors and provide useful feedback. These users should be willing to
download an updated .xpi whenever they want to run some tests, and
you probably won't be updating your localization every day.

Having said that, if you want to have nightly updates you probably need
3 VMs online somewhere, not a simple home computer with an ADSL
connection ;-)

Francesco




Axel Hecht

unread,
May 6, 2013, 7:06:13 AM5/6/13
to
On 5/4/13 6:53 PM, Francesco Lodolo [:flod] wrote:
> Il 04/05/13 16:57, Archaeopteryx ha scritto:
>> If you have an updateURL (which you will need anyway if you don't host
>> on AMO and want to provide updates), there is no need to change the id.
> I was worried that Firefox checks the ID anyway on AMO, even if you
> provide an updateurl, and finding one there things get complicated.
> Unfortunately I didn't find anything useful on MDN to clear this up, but
> considering you're also an AMO editor I guess I found my answer ;-)

https://github.com/mozilla/r2d2b2g/blob/master/addon/package.json has
the ID, so you should be able to tweak that easily. I hope that that's
picked up consistently throughout the build process.

As for hosting, I was thinking about asking IT for some VM resources, if
we have something working. For download space, I'd just ask them for
input. Both of those would solve the upload and download problem.
Agreed, as mentioned above. I'd also prefer a bot to do all the work :-)

Axel

Francesco Lodolo [:flod]

unread,
May 6, 2013, 7:22:01 AM5/6/13
to dev-...@lists.mozilla.org
Il 06/05/13 13:06, Axel Hecht ha scritto:
> https://github.com/mozilla/r2d2b2g/blob/master/addon/package.json has
> the ID, so you should be able to tweak that easily. I hope that that's
> picked up consistently throughout the build process.
Ok. Right now I'm unpacking the extension, changing the ID and repacking
everything. Advantage is that I don't touch the original source, still
not sure why but this process adds over 1 MB to the final xpi (using zip
and sed from command line on OS X).
> As for hosting, I was thinking about asking IT for some VM resources,
> if we have something working. For download space, I'd just ask them
> for input. Both of those would solve the upload and download problem.
Best (right) way to do that?

In the meantime I put together something on my own server, if someone
wants to give it a try (DNS would probably need some more time to
propagate).
http://r2d2b2g.flod.org

Francesco

Axel Hecht

unread,
May 6, 2013, 10:31:25 AM5/6/13
to
On 5/6/13 1:22 PM, Francesco Lodolo [:flod] wrote:
> Il 06/05/13 13:06, Axel Hecht ha scritto:
>> https://github.com/mozilla/r2d2b2g/blob/master/addon/package.json has
>> the ID, so you should be able to tweak that easily. I hope that that's
>> picked up consistently throughout the build process.
> Ok. Right now I'm unpacking the extension, changing the ID and repacking
> everything. Advantage is that I don't touch the original source, still
> not sure why but this process adds over 1 MB to the final xpi (using zip
> and sed from command line on OS X).
>> As for hosting, I was thinking about asking IT for some VM resources,
>> if we have something working. For download space, I'd just ask them
>> for input. Both of those would solve the upload and download problem.
> Best (right) way to do that?

I'd file a bug. Also, do you need the three platforms for repackaging,
if that'd be all we do?

> In the meantime I put together something on my own server, if someone
> wants to give it a try (DNS would probably need some more time to
> propagate).
> http://r2d2b2g.flod.org

That site's up for me, you'd want to figure out how to tweak
https://developer.mozilla.org/en-US/docs/Install_Manifests#updateURL.

Axel

Francesco Lodolo [:flod]

unread,
May 6, 2013, 12:00:04 PM5/6/13
to Mozilla l10n Mailing List
> I'd file a bug. Also, do you need the three platforms for repackaging, if
> that'd be all we do?


Ok. Yes, as far as I understand it needs 3 VMs, one for each OS, plus a
webserver to serve files and updates.


> That site's up for me, you'd want to figure out how to tweak
> https://developer.mozilla.org/**en-US/docs/Install_Manifests#**updateURL<https://developer.mozilla.org/en-US/docs/Install_Manifests#updateURL>
> .


I'll look into that. Any other thought from other localizers about the
"automatic update yes/no"?

Francesco

Francesco Lodolo [:flod]

unread,
May 6, 2013, 11:43:47 PM5/6/13
to dev-...@lists.mozilla.org, m...@mozilla.org
Il 04/05/13 02:28, Myk Melez ha scritto:
> This is a great idea! And last month I did some work to making
> building the Simulator with additional locales much easier. Here's a
> description of the process for building with Gaia's "all languages"
> file and then packaging your build for distribution to others:
>
> https://github.com/mozilla/r2d2b2g/issues/124#issuecomment-17420895
Hi again,
I was looking at the install.rdf generated to understand how I can
manage the update, I think it should also contain a targetPlatform
considering it's not really cross-platform.

Francesco

Myk Melez

unread,
May 8, 2013, 3:55:53 PM5/8/13
to Axel Hecht, dev-...@lists.mozilla.org
On 2013/05/06 07:31, Axel Hecht wrote:
> That site's up for me, you'd want to figure out how to tweak
> https://developer.mozilla.org/en-US/docs/Install_Manifests#updateURL.
This feature is built into the Add-on SDK via the --update-link and
--update-url options for SDK's `cfx xpi` command, and it should be
straightforward to add support for those options to the Simulator's
`make package` target via environment variables, i.e.:

export UPDATE_LINK=...
export UPDATE_URL=...
make package

Alternately, since `make package` is a simple alias to `cfx xpi`, you
could simply bypass `make package` and access `cfx xpi` directly, which
doesn't require any Simulator code changes:

cd addon-sdk
. bin/activate
cd ../addon
cfx xpi --templatedir template/ --update-link=... --update-url=...

Here's more info on those options from the SDK docs:
>
>
> cfx xpi
>
> This tool is used to package your add-on as an XPI
> <https://developer.mozilla.org/en/XPI> file, which is the install file
> format for Mozilla add-ons.
>
> Called with no options, this command looks for a file called
> |package.json| in the current directory and creates the corresponding
> XPI file.
>
> Once you have built an XPI file you can distribute your add-on by
> submitting it to addons.mozilla.org <http://addons.mozilla.org>.
>
>
> updateURL and updateLink
>
> If you choose to host the XPI yourself you should enable the host
> application to find new versions of your add-on.
>
> To do this, include a URL in the XPI called the updateURL
> <https://developer.mozilla.org/en/install_manifests#updateURL>: the
> host application will go here to get information about updates. At the
> |updateURL| you host a file in the update RDF
> <https://developer.mozilla.org/en/extension_versioning,_update_and_compatibility#Update_RDF_Format>
> format: among other things, this includes another URL called
> |updateLink| which points to the updated XPI itself.
>
> The |--update-link| and |--update-url| options simplify this process.
> Both options take a URL as an argument.
>
> The |--update-link| option builds an update RDF alongside the XPI, and
> embeds the supplied URL in the update RDF as the value of |updateLink|.
>
> The |--update-url| option embeds the supplied URL in the XPI file, as
> the value of |updateURL|.
>
> Note that as the add-on documentation
> <https://developer.mozilla.org/en/extension_versioning,_update_and_compatibility#Securing_Updates>
> explains, you should make sure the update procedure for your add-on is
> secure, and this usually involves using HTTPS for the links.
>
> So if we run the following command:
>
> cfx xpi --update-link https://example.com/addon/latest
> --update-url https://example.com/addon/update_rdf
>
> |cfx| will create two files:
>
> * an XPI file which embeds |https://example.com/addon/update_rdf| as
> the value of |updateURL|
> * an RDF file which embeds |https://example.com/addon/latest| as the
> value of |updateLink|.
>

-myk

Francesco Lodolo [:flod]

unread,
May 9, 2013, 12:44:52 AM5/9/13
to dev-...@lists.mozilla.org
Il 08/05/13 21:55, Myk Melez ha scritto:
> Here's more info on those options from the SDK docs:
Thank you very much Myk, this helps a lot and I'll definitely look into
this.

The current version online at http://r2d2b2g.flod.org/ has automatic
updates enabled, but the process is still very experimental and flawed.

Main roadblock so far: if you don't provide updates over https (both
.xpi and update.rdf manifest), you need to

* add a public key to install.rdf (easy, it's always the same string)
* create a hash of the updated .xpi and add it to update.rdf (again,
easy to script)
* sign the final update.rdf with the private key (worst part so far)

I'll have to understand how Firefox updates deal with self-signed
certificates over https. I hope I'll have good news soon ;-)

Francesco



Jeff Beatty

unread,
May 9, 2013, 6:38:12 PM5/9/13
to
Ibrahima,

If you're going to hack a geeksphone for Fulah Ffx OS, be sure to take note of any virtual input issues for Fulah and look around to see if you can hack any Fulah input drivers onto the device. IIRC, Fulah (and many other languages) doesn't yet have a standard virtual keyboard for mobile devices, which is part of what makes it difficult to ship locales who have not previously had such a dominant presence on mobile devices.

Good luck!
Jeff

Francesco Lodolo [:flod]

unread,
May 10, 2013, 4:10:37 AM5/10/13
to dev-...@lists.mozilla.org
I'm still trying to figure it out, but this morning I've updated to
MozillaBuild 1.7 and get this error when trying to build the add-on

Traceback (most recent call last):
File "build/override-webapps.py", line 46, in <module>
File "c:\mozilla-build\python\lib\zipfile.py", line 1024, in extract
return self._extract_member(member, path, pwd)
File "c:\mozilla-build\python\lib\zipfile.py", line 1057, in
_extract_member
arcname = arcname.translate(table)
TypeError: character mapping must return integer, None or unicode

Is anyone else able to reproduce it?

Francesco

Julen Ruiz Aizpuru

unread,
May 10, 2013, 4:40:35 AM5/10/13
to dev-...@lists.mozilla.org
or., 2013.eko mairen 10a 10:10(e)an, Francesco Lodolo [:flod](e)k idatzi
zuen:
Sounds like a Python 2.7.4 bug (MozillaBuild 1.7 includes that version):
http://bugs.python.org/issue17656

Julen.

Francesco Lodolo [:flod]

unread,
May 10, 2013, 4:45:17 AM5/10/13
to dev-...@lists.mozilla.org
Il 10/05/13 10:40, Julen Ruiz Aizpuru ha scritto:
> Sounds like a Python 2.7.4 bug (MozillaBuild 1.7 includes that version):
> http://bugs.python.org/issue17656
Thanks Julen, at least I know it's not something wrong on my side ;-)

Francesco

Myk Melez

unread,
May 13, 2013, 7:25:34 PM5/13/13
to Julen Ruiz Aizpuru, dev-...@lists.mozilla.org
On 2013/05/10 01:40, Julen Ruiz Aizpuru wrote:
> Sounds like a Python 2.7.4 bug (MozillaBuild 1.7 includes that version):
> http://bugs.python.org/issue17656
I filed bug 871817 on updating Python in MozillaBuild to 2.7.5:

https://bugzilla.mozilla.org/show_bug.cgi?id=871817

-myk

Francesco Lodolo [:flod]

unread,
May 14, 2013, 12:08:17 AM5/14/13
to dev-...@lists.mozilla.org
Il 14/05/13 01:25, Myk Melez ha scritto:
> I filed bug 871817 on updating Python in MozillaBuild to 2.7.5:
Thanks Myk, was next thing on my todo list and I'll follow Ted's
suggestion about replacing the default Python ;-)

Quick update on the situation: updates outside of AMO are painful.

1) Non HTTPS
In order to have updates over HTTP you need to:

1. Add your public key to install.rdf (Install Manifest).
2. Calculate the hash of the .xpi file (e.g. with sha256, etc.), add it
to update.rdf
3. Sign the update.rdf (Update manifest) with your private key.

Step 2. and 3. must be repeated for each update, the problem is that
signing RDFs seems to be difficult to automate.

2) HTTPS
You need a real certificate with built-in root[1]. The update mechanism
won't trigger the "Add an exception" dialog for self-signed
certificates, and you need to manually set a couple of hidden
preferences to make it work[2], and by doing that you're practically
asking people to make their own browser less secure, which is less than
wanted.

Francesco

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=340198
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=435743#c68

Myk Melez

unread,
May 14, 2013, 11:30:22 AM5/14/13
to Francesco Lodolo [:flod], dev-...@lists.mozilla.org
On 2013/05/13 21:08, Francesco Lodolo [:flod] wrote:
> Il 14/05/13 01:25, Myk Melez ha scritto:
>> I filed bug 871817 on updating Python in MozillaBuild to 2.7.5:
> Thanks Myk, was next thing on my todo list and I'll follow Ted's
> suggestion about replacing the default Python ;-)
>
> Quick update on the situation: updates outside of AMO are painful.
I wonder how critical it is to provide automatic updates. Might it be
sufficient to have localizers manually update the l10n version of the addon?

-myk

Francesco Lodolo [:flod]

unread,
May 14, 2013, 11:34:28 AM5/14/13
to Myk Melez, Mozilla l10n Mailing List
>
> I wonder how critical it is to provide automatic updates. Might it be
> sufficient to have localizers manually update the l10n version of the addon?
>

That's still an unanswered question in this thread ;-)

IMO automatic updates for this kind of add-on are bad, considering both the
download size and the fact that the add-on will be updated even if your
locale is still the same (so you're not really interested in updating).

Francesco

Myk Melez

unread,
May 14, 2013, 11:36:12 AM5/14/13
to Francesco Lodolo [:flod], Mozilla l10n Mailing List
Sounds like we should forgo them for now. Then, if it turns out that we
need them later, we look for space on an HTTPS server to host them.

-myk

Francesco Lodolo [:flod]

unread,
May 15, 2013, 3:41:58 AM5/15/13
to dev-...@lists.mozilla.org
For those of you trying the Simulator on Nightly, there are currently
some issues
https://github.com/mozilla/r2d2b2g/issues/518

Francesco

Francesco Lodolo [:flod]

unread,
Jun 14, 2013, 1:24:35 AM6/14/13
to Mozilla l10n Mailing List
Hi,
quick heads-up: the Danish team made me notice that I wasn't really
including all locales in my version of the Simulator
http://r2d2b2g.flod.org/

With the last version available there's a new set of locales (starting from
version .20130613). You can see the added locales in green here:
https://github.com/mozilla-b2g/gaia/commit/76c869428333a75dc923822a92c6a88cb703b63d

Francesco

Michael Bauer

unread,
Jun 14, 2013, 7:23:27 AM6/14/13
to dev-...@lists.mozilla.org
It's a very cool tool, by the way, very simple to use, big kudos!

Michael

14/06/2013 06:24, sgrìobh Francesco Lodolo [:flod]:
0 new messages