Граф коммитов

105 Коммитов

Автор SHA1 Сообщение Дата
Axel Hecht 78f557ab85 bug 1482695, add localization to langpacks for toolkit fluent, r=gps,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D3215

--HG--
extra : moz-landing-system : lando
2018-08-14 18:29:29 +00:00
Justin Wood d289c494d6 Bug 1455100 - Make devedition its own language pack addon id, by using MOZ_LANGPACK_EID again. r=nalexander,Pike
MozReview-Commit-ID: z1SJmCQflq

--HG--
extra : rebase_source : 4d5b6941f907e0e062a7f4466a246696290823fe
2018-04-19 14:48:11 -04:00
Tom Prince c8c9d47e92 Bug 1436662: Package translated uninstaller; r=pike,mshal
The uninstaller was being built as a side-effect of building `setup.exe`. In
Bug 1385227, that was moved from "somewhere" to part of the windows installer
packaging, which happens after the zip and mar are generated. Since the
installer we ship is actually repackaged from the zip[1], we stopped shipping
translated uninstallers.

This changes things around so that the uninstaller gets translated:
- Explicitly build the uninstaller as part of the L10n repack step.
- Use the same logic to build the installer locally as we do to create the ones
  we ship.

[1] Except on Thunderbird

Differential Revision: https://phabricator.services.mozilla.com/D672

--HG--
extra : rebase_source : 05fe935c1d2a9fbfeef786819bfe5913ed8ef862
extra : source : d6bf22099e2195dcb64c3c3d7700d3edd0850a3a
2018-04-16 12:49:53 -06:00
Brindusan Cristian 34b33a520a Backed out 2 changesets (bug 1436662) for build bustages on /installer/windows. CLOSED TREE
Backed out changeset fcb756834abb (bug 1436662)
Backed out changeset d6bf22099e21 (bug 1436662)
2018-04-17 19:08:21 +03:00
Tom Prince cdf80aa336 Bug 1436662: Package translated uninstaller; r=pike,mshal
The uninstaller was being built as a side-effect of building `setup.exe`. In
Bug 1385227, that was moved from "somewhere" to part of the windows installer
packaging, which happens after the zip and mar are generated. Since the
installer we ship is actually repackaged from the zip[1], we stopped shipping
translated uninstallers.

This changes things around so that the uninstaller gets translated:
- Explicitly build the uninstaller as part of the L10n repack step.
- Use the same logic to build the installer locally as we do to create the ones
  we ship.

[1] Except on Thunderbird

Differential Revision: https://phabricator.services.mozilla.com/D672

--HG--
extra : rebase_source : 2b28b9ff7196d12f4a188c8dddf750b9a5efac5b
extra : histedit_source : 9bc28891950ae8c226cfdefef6f8121ce0b51f58
2018-04-16 12:49:53 -06:00
Sylvestre Ledru c9e386cafc Bug 1438790 - Remove dead code generatesnippet.py r=Callek
MozReview-Commit-ID: D7lJJbMl8cV

--HG--
extra : rebase_source : 6730cd077cf1134767c5e2d706fb8b5ef6649955
2018-02-16 11:24:49 +01:00
Tom Prince 9b9e3e18d9 Bug 1424171: Allow passing defines to compare-locales; r=Pike,ted
MozReview-Commit-ID: DforOC6WFoL

--HG--
extra : rebase_source : 935033612f003a6622cc22313a3754f926ecfcfd
2017-12-11 14:53:03 -07:00
Sylvestre Ledru 064af18473 Bug 1407285 - Support spaces in toolkit/locales/l10n.mk r=Pike
MozReview-Commit-ID: CfJlnn2NdoH

--HG--
extra : rebase_source : aa5f6e4557be6abd6117b7566c2e3d87c5062fd2
2017-12-05 12:20:52 +01:00
Zibi Braniecki e62b350d3b Bug 1422997 - Fix multilocale.json in repacks. r=Pike
MozReview-Commit-ID: 8KBNmesxhpY

--HG--
extra : rebase_source : d7e483df25d9a58961c9486dfe09a51437394ee3
2017-12-04 16:14:23 -08:00
Axel Hecht 7245bd41b2 bug 1385227, use proper make steps to put l10n repacks in sequence, r=gps
This drops the abuse of make dependencies to factor our steps
in l10n repacks and language packs.
It's replaced with clobbers, libs, and the packaging, which
can be shared between installers and the language pack.

MozReview-Commit-ID: 2vEHp0QogXQ

--HG--
extra : rebase_source : c14f0b17904f8f9e0e3f004384c2a292ceeafe4f
extra : source : e95f8bd7b5190bf1d3fae75a88a15ebbe6613809
2017-08-04 17:19:12 +02:00
Zibi Braniecki c46d36dffb Bug 1362617 - Generalize MOZ_CHROME_MULTILOCALE to work for browser as well. r=gps,mshal,Pike,ted
MozReview-Commit-ID: 80ldQPhNyi7

--HG--
extra : rebase_source : d6a1c6fcc36ba7fb49df25fa4c73f4aa564db613
2017-10-23 08:04:24 -07:00
Sebastian Hengst 429ff227ee Backed out changeset 17ef68e368bb (bug 1362617) for build bustage on OS X. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 78500a66ae825039d21ea4d69a23ae2d6570ee38
2017-10-27 16:46:27 +02:00
Zibi Braniecki f31e020d7e Bug 1362617 - Generalize MOZ_CHROME_MULTILOCALE to work for browser as well. r=gps,mshal,Pike,ted
MozReview-Commit-ID: 80ldQPhNyi7

--HG--
extra : rebase_source : e40838ce14ebe1e4fae4d6742633c16b5c4387f9
2017-10-23 08:04:24 -07:00
Axel Hecht 76393466c5 bug 1408380, bustage fix for language pack defines, r=gandalf
Undoing some of my ideas to support l10n-merge for defines.inc.
We'll add that once compare-locales can actually merge them.

The culprit why this didn't work is that there's one level
of $(MAKE) invocation missing between the rule that
defines IS_LANGUAGE_REPACK and config.mk actually taking
that into account.

MozReview-Commit-ID: 2JJZrvAPhG0

--HG--
extra : rebase_source : 7984a98611b40d35c58b65194cedf1ac20127293
2017-10-13 16:46:40 +02:00
Zibi Braniecki 09f831b269 Bug 1395363 - Switch to webextension-langpacks. r=Pike
MozReview-Commit-ID: HFT0v0yWVVC

--HG--
extra : rebase_source : 8955a39ca7fb3b903ae611940c34952e970e84a1
2017-10-06 15:15:39 -07:00
Zibi Braniecki e9a86bc479 Bug 1405631 - Remove broken firefox-l10n.js code from langpacks. r=Pike
MozReview-Commit-ID: D1Nlz50dSi5

--HG--
extra : rebase_source : 9cad300ae0c56060bed58d49d9b27fd9f06bfacb
2017-10-04 13:48:22 +02:00
Zibi Braniecki 8677f9f1f6 Bug 1395459 - Store the version of the locale data in a langpack based on HG push timestamp. r=gps
MozReview-Commit-ID: ELx9VW81s6Q

--HG--
extra : rebase_source : 2ca118bea6c566899a5ac558d3548bf1b4037c77
2017-09-10 19:57:34 -07:00
Axel Hecht 187284c8d1 bug 1402401, don't break builds on broken locales, r=stas
We added a return error value for compare-locales so that it
can be used in automated checks more easily. For builds, though,
ignore that return value.
Also, mach doesn't like utf-8 encoded output, so let's print
unicode.

MozReview-Commit-ID: L4lzqhBE0By

--HG--
extra : rebase_source : 3a9c612dc99b0f0417eb02c4d8478f1a2f245436
2017-09-24 14:09:08 +02:00
Axel Hecht 3dc36a71a4 bug 1382005, update compare-locales to 2.1, r=glandium
Vendor new dependency for compare-locales, python-fluent.
This is the 0.4.2 release of python-fluent.

Also, make mach command a bare minimum wrapper.

The compare-locales mach command used to own a couple of defaults
and opinions.
Now that those opinions and defaults are in the Makefiles, this
command can be much simpler. As a side effect, this should
make the thunderbird port easier, where none of the mach defaults
worked.

Update l10n.mk for compare-locales 2.x:

The command line interface is different now, with positional arguments.
Also, the l10n config file isn't a default anymore (that never worked
for thunderbird).
And the merge dir is now the parent of the locale dir, much like
we already anticipated in the code.

MozReview-Commit-ID: DxVVKyVSt5y

--HG--
extra : rebase_source : 7c591fea8c7d9ecef615fb56f9359d4f1bd4b340
2017-09-18 18:31:24 +02:00
Zibi Braniecki 3ff66273fc Bug 1401937 - Fix the command to generate webext-langpacks. r=Pike
MozReview-Commit-ID: 5XXJBqP5ZF9

--HG--
extra : rebase_source : 140cd6b81a105df6a31709418b7762a61ecc5f7b
2017-09-21 14:38:56 +02:00
Axel Hecht 86eb17e169 Backout revision ec6c7dd9e25f (bug 1390461) for breaking Beta release automation.
MozReview-Commit-ID: CdPvaPuVGHE

--HG--
extra : rebase_source : 587ad51d0c37b1bb9e6261d9694cb87c078715d6
extra : histedit_source : 6f32c8a0ac853fad76c351dbb17402b36aacdcf8
2017-09-16 12:41:57 +02:00
Axel Hecht 4383c6ecf6 Backout revision e95f8bd7b519 and 84091f931dff (bug 1385227) for breaking Beta release automation.
--HG--
extra : rebase_source : 512c7603f1c600d9cd4ba4b17007ee9a9480e365
extra : histedit_source : be31be1ade27d0df5a25badc2def1a59f2a9c2fd%2Ca0db2bfd6e59dab72fb8c58063ea7592cfeb430e
2017-09-16 11:04:13 +02:00
Zibi Braniecki 38db965423 Bug 1395457 - De-hardcode product name when producing webext-langpack. r=kmag
MozReview-Commit-ID: D6TbDR7dkY6

--HG--
extra : rebase_source : 9e3d1bd23624fcc5b724ad24698779a7a90cb8c7
2017-09-07 13:16:20 -07:00
Zibi Braniecki 55a7b70e19 Bug 1395456 - Use MOZ_APP_MAXVERSION for strict_max_version in langpack manifest. r=Pike
MozReview-Commit-ID: 63BQQt4U8if

--HG--
extra : rebase_source : faf796d214298fa50e0d73a82a7b1a4d0e91de30
2017-08-31 11:54:26 -07:00
Zibi Braniecki 5e4528bed4 Bug 1390461 - Update langpack-webext to use WEBEXT_LANGPACKS mk flag. r=Pike
MozReview-Commit-ID: HdfCwaDvjTa

--HG--
extra : rebase_source : 16d60769d57cb8cea24dfb3bb02944efec3f1861
2017-08-27 17:27:19 -07:00
Sebastian Hengst e08ac68aa5 Backed out changeset 27f6228d4118 (bug 1390461) for frequently failing own check-clobber-l10n-x-test during build. r=backout on a CLOSED TREE 2017-08-31 10:57:59 +02:00
Zibi Braniecki 222035f58b Bug 1390461 - Update langpack-webext to use WEBEXT_LANGPACKS mk flag. r=Pike
MozReview-Commit-ID: HdfCwaDvjTa

--HG--
extra : rebase_source : 5f7b40da4365c79b760b7a6ca39be6d44782060f
2017-08-27 17:27:19 -07:00
Axel Hecht 315fd4ecf1 bug 1385227, use proper make steps to put l10n repacks in sequence, r=gps
This drops the abuse of make dependencies to factor our steps
in l10n repacks and language packs.
It's replaced with clobbers, libs, and the packaging, which
can be shared between installers and the language pack.

MozReview-Commit-ID: 2vEHp0QogXQ

--HG--
extra : rebase_source : fad397c5061fa1a613a4f4484c0d0be172116c1d
2017-08-04 17:19:12 +02:00
Sebastian Hengst 03cbf11c2a Backed out changeset 70bc0e060dd6 (bug 1385227)
MozReview-Commit-ID: LHxsFUC5eTg
2017-08-22 15:08:57 +02:00
Axel Hecht 38ddc7aa54 bug 1385227, use proper make steps to put l10n repacks in sequence, r=gps
This drops the abuse of make dependencies to factor our steps
in l10n repacks and language packs.
It's replaced with clobbers, libs, and the packaging, which
can be shared between installers and the language pack.

MozReview-Commit-ID: 2vEHp0QogXQ

--HG--
extra : rebase_source : 3cfad08c20a100a50306fc44f955589c0568e29a
2017-08-04 17:19:12 +02:00
Zibi Braniecki aa1cdf93c2 Bug 1365440 - Generate langpacks as webextensions. r=mshal
Introduce a new make command to produce new type of language packs based
on web extensions.

MozReview-Commit-ID: EltYtzT7ZRR

--HG--
extra : rebase_source : 6477be07c747e90992f18d8c7bff93fd48965200
2017-05-30 11:33:59 +02:00
Axel Hecht b9f1d30851 bug 1370506, for Nightly builds, automatically clone l10n repos for localized installers, r=glandium
Making more decisions on behalf of developers:

L10NBASEDIR is always defined, if not specified, it's ~/.mozbuild/l10n-central,
or in MOZBUILD_STATE_PATH/l10n-central if the state path in defined in the
environment.
If a locale isn't checked out, do that. The targets for which that works are
merge-%, installers-%, langpack-%

But only do that for Nightly builds, as for Beta and beyond, we have
explicit revisions to use for the builds, and we don't want to break release
builds silently with this.

MozReview-Commit-ID: EhGJPLuiyYO

--HG--
extra : rebase_source : 61a92396920965107a8811679552c1992b29155e
2017-06-15 19:47:28 +02:00
Axel Hecht aebc0e7f7e bug 1370506, always merge for l10n repacks, with internally set merge dir, r=glandium
To not merge the en-US language pack, the merge-% steps are in
a conditional function that disables that for en-US. Using a function
here as that's easier than a shell if in the merge rule, and
Makefile conditionals don't get evaluated late enough.

To liberate the l10n builds from settings in the automation,
we move the patch logic from LOCALE_MERGEDIR to REAL_LOCALE_MERGEDIR.

To determine strongly when we're in a repack or building a langpack,
the trick here is to

  export IS_LANGUAGE_REPACK

in l10n.mk, and only set that to true in the entry-point rules.

Now, we can use that value in config.mk to define the l10n-specific
rules.

I did the same thing for langpack-%, which allows us to disable
the crashreporter files for language packs, for example.

With that,

  make installers-de

just works, if you have localizations checked out.

For a while, we might run l10n-merge twice in automation, but it's really not
optional, so let's just make sure we run it.


MozReview-Commit-ID: 3nr33CKxkBQ

--HG--
extra : rebase_source : 0605a4adba018fa4b85d563cdafba80b0533bc91
2017-06-16 15:21:16 +02:00
Axel Hecht 2f6175c28a bug 1370506, libs-% and chrome-% targets should set AB_CD, r=glandium
Set AB_CD on per-locale entry point pattern rules.

Not setting this on the repackaging top-level pattern rules, as they
need AB_CD to be en-US to find the original package to unpack.
MozReview-Commit-ID: JqrLYyEyvvb

--HG--
extra : rebase_source : 82c840f16e131fe8f340e21ff86a34c70e3f7f97
2017-06-19 16:51:05 +02:00
Justin Wood c93d0cefa5 Bug 1381577 - Part R; Build system changes to support taskcluster backed windows l10n repacks. r=mshal
Land date changes to support windows nightlies onto central

This adds support for a seperate installer URL. We need this because in taskcluster the flow goes like this:
-|- Unsigned Build (outputs test files, unsigned .zip and similar files)
 \-|- Signing (outputs .zip with signed contents and a signed setup.exe and setup-stub.exe)
   \-|- Repackage (takes the signed .zip and generates unsigned update .mar and installers using the signed internal files)
     \-|- Repackage Signing (Takes the installers and signs them, and signs the update mar)

L10n tasks for windows need to take the .zip and the completed installer, and want to reuse as much
of the en-US signing as we can, so we pass in the URLs to artifacts from both signing steps in the chain.

MozReview-Commit-ID: 9nIo2CCTh9h

--HG--
extra : rebase_source : 6d2e9a77c9f0cb118ff5389f584034f491bbf0ed
2017-07-18 13:58:54 -04:00
Mike Shal 8e02493469 Bug 1329355 - Remove MOZ_PKG_PRETTYNAMES; r=ted
This is no longer relevant now that we use release promotion instead of
a separate release build with MOZ_PKG_PRETTYNAMES=1.

MozReview-Commit-ID: 11mgGJ7IDaK

--HG--
extra : rebase_source : da8fde3ae36779549b2097fc95d754f558cb88c8
2017-01-10 11:12:10 -05:00
Axel Hecht 4458fe9cad bug 1280683, keep a pristine copy of en-US installer for repacks, r=glandium
Let's use a pristine unpackaged directory of the en-US package, and just
rsync that to l10n-stage. That way, all repacks start off with a copy
of en-US without modifications of the previous repack.

Removing clobber-zip, that hasn't been used in ages, on the way.

Moving the creation of the branding dir to the INNER_UNMAKE_PACKAGE,
which is the command that needs it, to simplify rulesets.

MozReview-Commit-ID: 8WJtaAqjmk1

--HG--
extra : rebase_source : 2c60a09bc09c72d5d8cf3058a66f806059c93751
2016-11-23 22:19:19 +01:00
Justin Wood 1bd4fbdac9 Bug 1301509 - Make EN_US_PACKAGE_NAME a thing, so we can avoid simple names in l10n. r=mshal
MozReview-Commit-ID: 2oo0MS0nWQx

--HG--
extra : rebase_source : 5ac855a1bd0005e2c699afdc7e6d3b6a0816f903
2016-09-08 15:55:57 -04:00
Justin Wood d144d6ca85 Bug 1276110 - Workaround a wget bug by not performing internationalisation. r=ted
Taskclusters cloud-mirror sends a url-encoded response as a redirect, which allows it to point at the absolute url to the file in another AWS region and then it fetches and caches it while returning said file to our client (wget in this case)
Wget however is performing ASCII-->UTF8 conversion on the url on windows, while at the same time also performing a urldecodeon the redirected url.
This urldecode is breaking Taskclusters cloud-mirror, so we work around that by telling wget not to perform the conversion at all (we don't need charset conversion here)

Alternative option was to set --local-encoding=ASCII, however that option doesn't work on our current linux machines (and likely OSX builders, but untested there) while --no-iri works on all 3 platforms, so we are going with that.

MozReview-Commit-ID: EXmiDpozFNr

--HG--
extra : rebase_source : 551bb299d959ac2af1f1c9511b665b7d1a0d9f2a
2016-06-22 08:59:07 -04:00
Nick Alexander 9ab9fa5451 Bug 1260241 - Implement Fennec packaging in Python. r=glandium
A few notes:

* This doesn't accommodate general OMNIJAR_NAME definitions.  The
  current name (assets/omni.ja) is baked into the product in a few
  places, and is very unlikely to change, so we just error out if this
  isn't true.

* This makes the package-manifest.in file authoritative for what goes
  into assets/, libs/, and the APK root.  Previously,
  package-manifest.in wrote into assets/ and libs/ but
  upload-files-APK.mk also had a convoluted DIST_FILES filtering
  process to work through before a file actually made it into the APK.

* This is intentional about repackaging.  It simplifies the repackage
  step rather than trying to make unpackage-then-repackage the same as
  just package.  I pretty much never get repackaging correct the first
  time; this should help.  (I've manually tested it.)

* The ALREADY_SZIPPED during repackaging is subsumed by the previous
  check if UNPACKAGE is set.  The custom linker expects stored, not
  deflated, libraries, so there's some small legwork to accommodate
  that in mozjar.

MozReview-Commit-ID: JvVtIUSX685

--HG--
extra : rebase_source : fd8a9cfe3dc364d23b1065995db599f99e676e38
2016-03-28 20:01:07 -07:00
Mike Hommey 837f1ced88 Bug 1236259 - Quote MOZ_APP_ID; r=gps
This is glandium's suggested patch. Committing under his name reviewed
by me.

--HG--
extra : commitid : 5abfwXR51iA
extra : rebase_source : d7d3658687e5b825e2095682786653cc42bf201e
extra : amend_source : fde873074c7e5d29f0fd9b5452ed5d1bed2f279d
2016-01-04 10:58:42 -08:00
Mike Hommey ae8b4f0347 Bug 1235676 - Replace _ABS_DIST with ABS_DIST. r=mshal 2015-12-31 08:10:02 +09:00
Mike Hommey 147df9c988 Bug 1235151 - Use #include in toolkit/locales/generic/install.rdf instead of -I on the preprocessor command line. r=mshal 2015-12-31 07:26:35 +09:00
Mike Hommey 581d13d0d1 Bug 1235151 - Factor all the install.rdfs used for langpacks. r=mshal
The only difference between all of them is the application id they target.
Interestingly, the Fennec one is still targetting the XUL appid, instead
of the Android one, which doesn't seem right.


--HG--
rename : b2g/locales/generic/install.rdf => toolkit/locales/generic/install.rdf
2015-12-31 07:26:34 +09:00
Mike Hommey e88f90548f Bug 1222323 - Avoid passing extra defines to the compiler from config.mk. r=gps
C/C++ code should not be relying on XPI_NAME or AB_CD being defined, so
moving them out works.
2015-11-14 08:40:54 +09:00
Steven Michaud 4729fff432 Bug 1089363 - Fix for zh-TW download image dialog. r=glandium 2015-07-22 14:02:28 +08:00
Ryan VanderMeulen 80227c12ff Backed out changeset a3daf8050780 (bug 1089363) for OSX B2G desktop build bustage.
CLOSED TREE
2015-07-17 15:15:20 -04:00
Steven Michaud fc2f5e8328 Bug 1089363 - Fix for zh-TW download image dialog. r=glandium 2015-07-15 16:01:17 +08:00
Mike Hommey 622e7d63a3 Bug 1166538 - Use zip py_action in a few places. r=gps 2015-05-21 15:17:02 +09:00
Philipp Kewisch 9789a7eb9c Bug 1153192 - Cannot pass extra arguments to l10n-repack.py. r=gps 2015-04-19 22:57:20 +02:00