author | Wolfgang Rosenauer <wr@rosenauer.org> |
Thu, 11 Dec 2014 21:46:58 +0100 | |
branch | firefox35 |
changeset 818 | b3e373c6b688 |
parent 817 | 8ee1122377bb |
child 837 | a1f740acf68e |
permissions | -rw-r--r-- |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
1 |
# HG changeset patch |
817 | 2 |
# Parent 16846914f968944f991c8b12fdc38ce8fc099d73 |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
3 |
# User Wolfgang Rosenauer <wr@rosenauer.org> |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
4 |
Add searchplugins to chrome packaging for proper localization |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
5 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
6 |
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
7 |
--- a/browser/app/profile/firefox.js |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
8 |
+++ b/browser/app/profile/firefox.js |
807
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
9 |
@@ -389,16 +389,20 @@ pref("browser.helperApps.deleteTempFileO |
686
ab25aac2aa83
Firefox 26.0b5 update
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
653
diff
changeset
|
10 |
#endif |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
11 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
12 |
// search engines URL |
289
3c0dff7ca9c4
Update to version 6.0b1
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
251
diff
changeset
|
13 |
pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/%LOCALE%/firefox/search-engines/"); |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
14 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
15 |
// pointer to the default engine name |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
16 |
pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties"); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
17 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
18 |
+// Tell the search service to load search plugins from the locale JAR |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
19 |
+pref("browser.search.loadFromJars", true); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
20 |
+pref("browser.search.jarURIs", "chrome://browser/locale/searchplugins/"); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
21 |
+ |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
22 |
// disable logging for the search service by default |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
23 |
pref("browser.search.log", false); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
24 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
25 |
// Ordering of Search Engines in the Engine list. |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
26 |
pref("browser.search.order.1", "chrome://browser-region/locale/region.properties"); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
27 |
pref("browser.search.order.2", "chrome://browser-region/locale/region.properties"); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
28 |
pref("browser.search.order.3", "chrome://browser-region/locale/region.properties"); |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
29 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
30 |
diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
31 |
--- a/browser/locales/Makefile.in |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
32 |
+++ b/browser/locales/Makefile.in |
807
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
33 |
@@ -66,24 +66,27 @@ STUB_HOOK = $(NSINSTALL) -D '$(_ABS_DIST |
703 | 34 |
cp ../installer/windows/l10ngen/stub.exe '$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe'; \ |
35 |
chmod 0755 '$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe'; \ |
|
642 | 36 |
$(NULL) |
37 |
endif |
|
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
38 |
|
691
18c2dc922e51
update to Firefox 27.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
686
diff
changeset
|
39 |
ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro) |
18c2dc922e51
update to Firefox 27.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
686
diff
changeset
|
40 |
SEARCHPLUGINS_NAMES = $(shell cat $(call MERGE_FILE,/searchplugins/metrolist.txt)) |
18c2dc922e51
update to Firefox 27.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
686
diff
changeset
|
41 |
else |
805 | 42 |
-SEARCHPLUGINS_NAMES = $(shell cat $(call MERGE_FILE,/searchplugins/list.txt)) ddg |
642 | 43 |
+SEARCHPLUGINS_NAMES = $(shell cat \ |
791 | 44 |
+ $(firstword $(wildcard $(LOCALE_SRCDIR)/searchplugins/list.txt) \ |
805 | 45 |
+ @srcdir@/en-US/searchplugins/list.txt ) ) ddg |
691
18c2dc922e51
update to Firefox 27.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
686
diff
changeset
|
46 |
endif |
642 | 47 |
SEARCHPLUGINS_PATH := $(FINAL_TARGET)/searchplugins |
807
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
48 |
# metro build call a searchplugins target for search engine plugins |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
49 |
.PHONY: searchplugins |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
50 |
SEARCHPLUGINS_TARGET := libs searchplugins |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
51 |
-SEARCHPLUGINS := $(foreach plugin,$(addsuffix .xml,$(SEARCHPLUGINS_NAMES)),$(or $(wildcard $(call MERGE_FILE,searchplugins/$(plugin))),$(info Missing searchplugin: $(plugin)))) |
642 | 52 |
-PP_TARGETS += SEARCHPLUGINS |
807
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
53 |
+#SEARCHPLUGINS := $(foreach plugin,$(addsuffix .xml,$(SEARCHPLUGINS_NAMES)),$(or $(wildcard $(call MERGE_FILE,searchplugins/$(plugin))),$(info Missing searchplugin: $(plugin)))) |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
54 |
+SEARCHPLUGINS := $(addsuffix .xml,$(SEARCHPLUGINS_NAMES)) |
642 | 55 |
+#PP_TARGETS += SEARCHPLUGINS |
56 |
||
57 |
# Required for l10n.mk - defines a list of app sub dirs that should |
|
58 |
# be included in langpack xpis. |
|
59 |
ifdef MOZ_METRO |
|
60 |
# metro build, include both app folders |
|
61 |
DIST_SUBDIRS = browser metro |
|
62 |
else |
|
63 |
DIST_SUBDIRS = $(DIST_SUBDIR) |
|
807
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
64 |
@@ -117,16 +120,39 @@ NO_JA_JP_MAC_AB_CD := $(if $(filter ja-J |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
65 |
libs:: $(FINAL_TARGET)/defaults/profile/bookmarks.html ; |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
66 |
|
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
67 |
libs:: $(addprefix generic/profile/,$(PROFILE_FILES)) |
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
68 |
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/defaults/profile |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
69 |
|
703 | 70 |
libs:: $(call MERGE_FILES,$(addprefix profile/chrome/,$(PROFILE_CHROME))) |
71 |
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/defaults/profile/chrome |
|
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
72 |
|
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
73 |
+tmp-search.jar.mn:: |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
74 |
+ printf "$(AB_CD).jar:" > $@ |
642 | 75 |
+ printf "$(foreach plugin,$(SEARCHPLUGINS), \n locale/browser/searchplugins/$(plugin) ($(plugin)))" >> $@ |
76 |
+ @echo >> $@ |
|
409 | 77 |
+ |
642 | 78 |
+searchplugins-jar:: $(SEARCHPLUGINS) |
79 |
+ for SEARCHPLUGIN in $^; do \ |
|
709
7ce157f366c9
fix patch to use new preprocessor
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
703
diff
changeset
|
80 |
+ $(call py_action,preprocessor,$(DEFINES) $(ACDEFINES) \ |
7ce157f366c9
fix patch to use new preprocessor
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
703
diff
changeset
|
81 |
+ $$SEARCHPLUGIN > $$SEARCHPLUGIN-new) ; \ |
703 | 82 |
+ mv $$SEARCHPLUGIN-new $$SEARCHPLUGIN ; \ |
642 | 83 |
+ done |
84 |
+ |
|
85 |
+searchplugins-jar:: tmp-search.jar.mn |
|
691
18c2dc922e51
update to Firefox 27.0b2
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
686
diff
changeset
|
86 |
+ $(call py_action,jar_maker,\ |
703 | 87 |
+ $(QUIET) -j $(FINAL_TARGET)/chrome \ |
88 |
+ -s $(topsrcdir)/$(relativesrcdir)/en-US/searchplugins \ |
|
89 |
+ -s $(LOCALE_SRCDIR)/searchplugins \ |
|
90 |
+ $(MAKE_JARS_FLAGS) tmp-search.jar.mn) |
|
642 | 91 |
+ |
92 |
+libs:: searchplugins-jar |
|
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
93 |
+ |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
94 |
+GARBAGE += tmp-search.jar.mn |
642 | 95 |
+ |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
96 |
libs-%: |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
97 |
$(NSINSTALL) -D $(DIST)/install |
606
9d39369e1b4c
FF19beta cycle preparation (does not build yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
541
diff
changeset
|
98 |
@$(MAKE) -C ../../toolkit/locales libs-$* |
9d39369e1b4c
FF19beta cycle preparation (does not build yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
541
diff
changeset
|
99 |
@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$* |
653 | 100 |
ifdef MOZ_WEBAPP_RUNTIME |
101 |
@$(MAKE) -C ../../webapprt/locales AB_CD=$* XPI_NAME=locale-$* |
|
102 |
endif |
|
606
9d39369e1b4c
FF19beta cycle preparation (does not build yet)
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
541
diff
changeset
|
103 |
@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$* |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
104 |
diff --git a/browser/locales/jar.mn b/browser/locales/jar.mn |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
105 |
--- a/browser/locales/jar.mn |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
106 |
+++ b/browser/locales/jar.mn |
807
f54c68340963
Aurora 35.0 (20141115) uplift
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
805
diff
changeset
|
107 |
@@ -141,14 +141,15 @@ |
642 | 108 |
locale/browser/syncQuota.properties (%chrome/browser/syncQuota.properties) |
109 |
#endif |
|
110 |
% locale browser-region @AB_CD@ %locale/browser-region/ |
|
220
2538fd6a51be
update to 2.0b10/4.0b10
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
198
diff
changeset
|
111 |
locale/browser-region/region.properties (%chrome/browser-region/region.properties) |
2538fd6a51be
update to 2.0b10/4.0b10
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
198
diff
changeset
|
112 |
# the following files are browser-specific overrides |
541
830e50bbfc79
working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
515
diff
changeset
|
113 |
locale/browser/netError.dtd (%chrome/overrides/netError.dtd) |
830e50bbfc79
working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
515
diff
changeset
|
114 |
locale/browser/appstrings.properties (%chrome/overrides/appstrings.properties) |
830e50bbfc79
working Aurora 17.0 build
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
515
diff
changeset
|
115 |
locale/browser/downloads/settingsChange.dtd (%chrome/overrides/settingsChange.dtd) |
642 | 116 |
+ locale/browser/searchplugins/list.txt (%searchplugins/list.txt) |
198
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
117 |
% override chrome://global/locale/netError.dtd chrome://browser/locale/netError.dtd |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
118 |
% override chrome://global/locale/appstrings.properties chrome://browser/locale/appstrings.properties |
447791e42c9b
Package searchplugins into langpack chrome and load from there
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
diff
changeset
|
119 |
% override chrome://mozapps/locale/downloads/settingsChange.dtd chrome://browser/locale/downloads/settingsChange.dtd |
467
a9baaad57fa4
refreshed patches and removed obsolete ones
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
462
diff
changeset
|
120 |
% locale pdf.js @AB_CD@ %locale/pdfviewer/ |
a9baaad57fa4
refreshed patches and removed obsolete ones
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
462
diff
changeset
|
121 |
locale/pdfviewer/viewer.properties (%pdfviewer/viewer.properties) |
653 | 122 |
locale/pdfviewer/chrome.properties (%pdfviewer/chrome.properties) |