Closed
Bug 488936
Opened 15 years ago
Closed 15 years ago
Store the install locale in its own file
Categories
(Toolkit :: Application Update, defect)
Toolkit
Application Update
Tracking
()
RESOLVED
FIXED
mozilla1.9.1
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
Details
(Keywords: fixed1.9.1)
Attachments
(3 files, 3 obsolete files)
2.36 KB,
patch
|
philor
:
review+
mschroeder
:
review+
kairo
:
review+
|
Details | Diff | Splinter Review |
8.20 KB,
patch
|
robert.strong.bugs
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
801 bytes,
patch
|
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
I think it is best to store the locale in its own file that it provided by toolkit. The reasons not to store it in platform.ini or application.ini are that they are not locale specific. The reason to make it part of toolkit is for xulrunner. I'm not keen on adding a file to accomplish this but I believe the benefits outweigh it.
Attachment #373411 -
Flags: review?(benjamin)
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #373411 -
Attachment is obsolete: true
Attachment #373417 -
Flags: review?(benjamin)
Attachment #373411 -
Flags: review?(benjamin)
Assignee | ||
Comment 2•15 years ago
|
||
A couple of other options are to: 1. add the locale to platform.ini and figure out a decent way to modify it during repackaging 2. make updater.ini a toolkit locale file which would require that all apps define MOZ_APP_DISPLAYNAME I personally prefer either having a separate file or adding the locale to platform.ini
Assignee | ||
Updated•15 years ago
|
Attachment #373417 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 3•15 years ago
|
||
Comment on attachment 373417 [details] [diff] [review] patch rev2 - use GreD for ini file location Ted, asking for your review as well since bsmedberg is away
Comment 4•15 years ago
|
||
Comment on attachment 373417 [details] [diff] [review] patch rev2 - use GreD for ini file location Not great, but probably the best solution overall.
Attachment #373417 -
Flags: review?(ted.mielczarek) → review+
Comment 5•15 years ago
|
||
The value in this new file is the "install locale". If we ever had a multi-locale install package, the value here might be "all" or "multi-europe" or some other arbitrary string? We should try really hard to make sure that the values here aren't used to actually localize the app, just provide for correct update selection. Also we should verify that this gets repacked correctly, perhaps as part of the l10n verification steps.
Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #5) > The value in this new file is the "install locale". If we ever had a > multi-locale install package, the value here might be "all" or "multi-europe" > or some other arbitrary string? The app.update.url pref could then omit the %LOCALE% param and have a custom param or the app could provide its own installLocale.ini if it really wanted to. I'll add an explanatory note to the top of the file as well. > We should try really hard to make sure that the values here aren't used to > actually localize the app, just provide for correct update selection. I'm not sure how this value could be used to localize the app. Could you provide some details? > Also we should verify that this gets repacked correctly, perhaps as part of the > l10n verification steps. I'll look into this.
Comment 7•15 years ago
|
||
I don't understand why this file would be in GreD and not the application directory: this is app-update, not platform-update.
> I'm not sure how this value could be used to localize the app. Could you
> provide some details?
I just mean we should tell people not to use this value for anything except application update.
Assignee | ||
Comment 8•15 years ago
|
||
With this patch it first looks for an update.locale file in the app dir and fall back to GreD if it doesn't exist. It also just uses a text file named update.locale instead of an ini file which makes it clearer that this is only used by app update. One reason to add this file to GreD is that most XULRunner apps just use the toolkit locale as their locale so this simplifies things for XULRunner apps as well as Firefoxm etc. since they no longer have to add this at the app level except in packages static in the locale section. This also makes it so app update xpcshell tests pass on XULRunner and app's that don't provide an updater.ini with locale info which happened with fennec. One reason to get it out of updater.ini is that the updater binary doesn't require the updater.ini to apply an update. When there is no updater.ini it just doesn't display UI. If a repackaging check is done I'd prefer to add it to an app provided Makefile since the file isn't required unless the app's update url contains %LOCALE%. I could add a check when the updater.ini is preprocessed but it seems like a bit of overkill since there are other files required by locales that don't have these checks.
Attachment #373417 -
Attachment is obsolete: true
Attachment #375874 -
Flags: review?(benjamin)
Attachment #373417 -
Flags: review?(benjamin)
Updated•15 years ago
|
Attachment #375874 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 9•15 years ago
|
||
This adds the new file to the packages-static files so app update doesn't break for trunk builds when this lands. The removal of the locale entry from the updater.ini can be done later in a separate bug.
Attachment #377725 -
Flags: review?(philringnalda)
Assignee | ||
Updated•15 years ago
|
Attachment #377725 -
Flags: review?(mschroeder)
Assignee | ||
Updated•15 years ago
|
Attachment #377725 -
Flags: review?(bugzilla)
Assignee | ||
Comment 10•15 years ago
|
||
Makes the locale test more resilient and restores throwing an error when the file with the locale is not found
Attachment #375874 -
Attachment is obsolete: true
Attachment #377729 -
Flags: review+
Comment 11•15 years ago
|
||
Comment on attachment 377725 [details] [diff] [review] patch comm-central r=me with an #ifndef MOZILLA_1_9_1_BRANCH wrapped around it so we don't panic about a missing file at 4am while respinning our next release :)
Attachment #377725 -
Flags: review?(philringnalda) → review+
Assignee | ||
Comment 12•15 years ago
|
||
(In reply to comment #11) > (From update of attachment 377725 [details] [diff] [review]) > r=me with an #ifndef MOZILLA_1_9_1_BRANCH wrapped around it so we don't panic > about a missing file at 4am while respinning our next release :) Per your suggestion I'll do this for all apps with the caveat that I will remove the ifdefs if this bug gets approved for 1.9.1
Updated•15 years ago
|
Attachment #377725 -
Flags: review?(mschroeder) → review+
Comment 13•15 years ago
|
||
Comment on attachment 377725 [details] [diff] [review] patch comm-central r=mschroeder for calendar
Assignee | ||
Comment 14•15 years ago
|
||
Comment on attachment 377725 [details] [diff] [review] patch comm-central kairo, can I get you to review this? I'll add ifdefs per comment #11 and comment #12
Attachment #377725 -
Flags: review?(kairo)
Comment 15•15 years ago
|
||
Comment on attachment 377725 [details] [diff] [review] patch comm-central doesn't comm-central also need the same updater_append.ini changes that browser/locales gets in the other patch?
Assignee | ||
Comment 16•15 years ago
|
||
This adds the new file to the packages-static files so app update doesn't break for trunk builds when this lands. The removal of the locale entry from the updater.ini can be done later in a separate bug.
Updated•15 years ago
|
Attachment #377725 -
Flags: review?(kairo) → review+
Comment 17•15 years ago
|
||
Comment on attachment 377729 [details] [diff] [review] mozilla-central patch to be checked in a191=beltzner, fixes a fennec bug, needs to bake on m-c for a green cycle before heading to 1.9.1
Attachment #377729 -
Flags: approval1.9.1+
Assignee | ||
Updated•15 years ago
|
Attachment #377725 -
Flags: review?(bugzilla)
Assignee | ||
Comment 18•15 years ago
|
||
Pushed to mozilla-central http://hg.mozilla.org/mozilla-central/rev/7bb72121c2a7 Pushed to comm-central http://hg.mozilla.org/comm-central/rev/c9e081937cc4
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 19•15 years ago
|
||
Pushed to mozilla-1.9.1 http://hg.mozilla.org/releases/mozilla-1.9.1/rev/e8fc03d9a29e Pushed to comm-central http://hg.mozilla.org/comm-central/rev/e470fc7f0aa1
Assignee | ||
Comment 20•15 years ago
|
||
Assignee | ||
Comment 21•15 years ago
|
||
Comment on attachment 379249 [details] [diff] [review] followup fix in Makefile.in for Mac and Linux (checked in) Pushed to mozilla-central http://hg.mozilla.org/mozilla-central/rev/dd5c8e01c741
Attachment #379249 -
Attachment description: followup fix in Makefile.in for Mac and Linux → followup fix in Makefile.in for Mac and Linux (checked in)
Updated•15 years ago
|
Attachment #379249 -
Flags: approval1.9.1+
Comment 22•15 years ago
|
||
Comment on attachment 379249 [details] [diff] [review] followup fix in Makefile.in for Mac and Linux (checked in) a191=beltzner
Assignee | ||
Comment 23•15 years ago
|
||
pushed to mozilla-1.9.1 http://hg.mozilla.org/releases/mozilla-1.9.1/rev/ae314e1051b6
Comment 25•15 years ago
|
||
Plausible, to speak in mythbusters. We're updating the source dir to the source stamp of the nightly before repackaging, so we need a new nightly post ae314e1051b6 to verify. PS: feel free to CC me on bugs like this right away.
Assignee | ||
Comment 26•15 years ago
|
||
fyi: I also just re-verified that it is fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•