2010-11-30 15:35:52 +01:00
|
|
|
# HG changeset patch
|
2014-02-03 16:34:42 +01:00
|
|
|
# Parent f144d934d339d048bf9b650fc776397029150dd6
|
2010-11-30 15:35:52 +01:00
|
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
|
|
|
Add searchplugins to chrome packaging for proper localization
|
|
|
|
|
|
|
|
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
|
|
|
|
--- a/browser/app/profile/firefox.js
|
|
|
|
+++ b/browser/app/profile/firefox.js
|
2014-02-03 16:34:42 +01:00
|
|
|
@@ -381,16 +381,20 @@ pref("browser.helperApps.deleteTempFileO
|
2013-12-11 09:31:54 +01:00
|
|
|
#endif
|
2010-11-30 15:35:52 +01:00
|
|
|
|
|
|
|
// search engines URL
|
2011-07-23 16:46:28 +02:00
|
|
|
pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/%LOCALE%/firefox/search-engines/");
|
2010-11-30 15:35:52 +01:00
|
|
|
|
|
|
|
// pointer to the default engine name
|
|
|
|
pref("browser.search.defaultenginename", "chrome://browser-region/locale/region.properties");
|
|
|
|
|
|
|
|
+// Tell the search service to load search plugins from the locale JAR
|
|
|
|
+pref("browser.search.loadFromJars", true);
|
|
|
|
+pref("browser.search.jarURIs", "chrome://browser/locale/searchplugins/");
|
|
|
|
+
|
|
|
|
// disable logging for the search service by default
|
|
|
|
pref("browser.search.log", false);
|
|
|
|
|
|
|
|
// Ordering of Search Engines in the Engine list.
|
|
|
|
pref("browser.search.order.1", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.search.order.2", "chrome://browser-region/locale/region.properties");
|
|
|
|
pref("browser.search.order.3", "chrome://browser-region/locale/region.properties");
|
|
|
|
|
|
|
|
diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in
|
|
|
|
--- a/browser/locales/Makefile.in
|
|
|
|
+++ b/browser/locales/Makefile.in
|
2014-02-03 16:34:42 +01:00
|
|
|
@@ -66,21 +66,23 @@ STUB_HOOK = $(NSINSTALL) -D "$(_ABS_DIST
|
2013-05-14 16:33:59 +02:00
|
|
|
cp ../installer/windows/l10ngen/stub.exe "$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe"; \
|
|
|
|
chmod 0755 "$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_STUB_BASENAME).exe"; \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2014-02-03 16:34:42 +01:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT) $(DIST_SUBDIR),windows metro)
|
|
|
|
SEARCHPLUGINS_NAMES = $(shell cat $(call MERGE_FILE,/searchplugins/metrolist.txt))
|
|
|
|
else
|
2013-05-14 16:33:59 +02:00
|
|
|
-SEARCHPLUGINS_NAMES = $(shell cat $(call MERGE_FILE,/searchplugins/list.txt))
|
|
|
|
+SEARCHPLUGINS_NAMES = $(shell cat \
|
2014-02-03 16:34:42 +01:00
|
|
|
+ $(firstword $(wildcard $(LOCALE_SRCDIR)/searchplugins/list.txt) \
|
|
|
|
+ @srcdir@/en-US/searchplugins/list.txt ) )
|
|
|
|
endif
|
2013-05-14 16:33:59 +02:00
|
|
|
SEARCHPLUGINS_PATH := $(FINAL_TARGET)/searchplugins
|
|
|
|
SEARCHPLUGINS := $(addsuffix .xml,$(SEARCHPLUGINS_NAMES))
|
|
|
|
-PP_TARGETS += SEARCHPLUGINS
|
|
|
|
+#PP_TARGETS += SEARCHPLUGINS
|
|
|
|
|
|
|
|
# Required for l10n.mk - defines a list of app sub dirs that should
|
|
|
|
# be included in langpack xpis.
|
|
|
|
ifdef MOZ_METRO
|
|
|
|
# metro build, include both app folders
|
|
|
|
DIST_SUBDIRS = browser metro
|
|
|
|
else
|
|
|
|
DIST_SUBDIRS = $(DIST_SUBDIR)
|
2014-02-03 16:34:42 +01:00
|
|
|
@@ -127,20 +129,44 @@ install:: $(addprefix generic/profile/,$
|
2010-11-30 15:35:52 +01:00
|
|
|
|
2011-06-01 08:05:09 +02:00
|
|
|
install:: $(call MERGE_FILES,$(addprefix profile/chrome/,$(PROFILE_CHROME)))
|
2010-11-30 15:35:52 +01:00
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/profile/chrome
|
|
|
|
|
2013-05-14 16:33:59 +02:00
|
|
|
# metro build calls back here for search engine plugins
|
|
|
|
searchplugins: $(addprefix $(FINAL_TARGET)/searchplugins/,$(SEARCHPLUGINS))
|
|
|
|
.PHONY: searchplugins
|
2010-11-30 15:35:52 +01:00
|
|
|
|
|
|
|
+tmp-search.jar.mn::
|
|
|
|
+ printf "$(AB_CD).jar:" > $@
|
2013-05-14 16:33:59 +02:00
|
|
|
+ printf "$(foreach plugin,$(SEARCHPLUGINS), \n locale/browser/searchplugins/$(plugin) ($(plugin)))" >> $@
|
|
|
|
+ @echo >> $@
|
2012-04-20 21:18:58 +02:00
|
|
|
+
|
2013-05-14 16:33:59 +02:00
|
|
|
+searchplugins-jar:: $(SEARCHPLUGINS)
|
|
|
|
+ for SEARCHPLUGIN in $^; do \
|
2013-08-07 14:18:59 +02:00
|
|
|
+ $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
|
|
|
|
+ $$SEARCHPLUGIN > $$SEARCHPLUGIN-new ; \
|
|
|
|
+ mv $$SEARCHPLUGIN-new $$SEARCHPLUGIN ; \
|
2013-05-14 16:33:59 +02:00
|
|
|
+ done
|
|
|
|
+
|
|
|
|
+searchplugins-jar:: tmp-search.jar.mn
|
2014-02-03 16:34:42 +01:00
|
|
|
+ $(call py_action,jar_maker,\
|
2013-08-07 14:18:59 +02:00
|
|
|
+ $(QUIET) -j $(FINAL_TARGET)/chrome \
|
|
|
|
+ -s $(topsrcdir)/$(relativesrcdir)/en-US/searchplugins \
|
|
|
|
+ -s $(LOCALE_SRCDIR)/searchplugins \
|
2014-02-03 16:34:42 +01:00
|
|
|
+ $(MAKE_JARS_FLAGS) tmp-search.jar.mn)
|
2013-05-14 16:33:59 +02:00
|
|
|
+
|
|
|
|
+libs:: searchplugins-jar
|
2010-11-30 15:35:52 +01:00
|
|
|
+
|
|
|
|
+GARBAGE += tmp-search.jar.mn
|
2013-05-14 16:33:59 +02:00
|
|
|
+
|
2010-11-30 15:35:52 +01:00
|
|
|
libs-%:
|
|
|
|
$(NSINSTALL) -D $(DIST)/install
|
2013-02-19 20:24:59 +01:00
|
|
|
@$(MAKE) -C ../../toolkit/locales libs-$*
|
|
|
|
@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$*
|
2013-05-14 16:33:59 +02:00
|
|
|
+ @$(MAKE) -B searchplugins-jar AB_CD=$* XPI_NAME=locale-$*
|
2013-08-07 14:18:59 +02:00
|
|
|
ifdef MOZ_WEBAPP_RUNTIME
|
|
|
|
@$(MAKE) -C ../../webapprt/locales AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
endif
|
2013-02-19 20:24:59 +01:00
|
|
|
@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
@$(MAKE) -C ../../intl/locales AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
|
2013-05-14 16:33:59 +02:00
|
|
|
ifdef MOZ_METRO
|
|
|
|
@$(MAKE) -C ../metro/locales AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
diff --git a/browser/locales/en-US/searchplugins/google.xml b/browser/locales/en-US/searchplugins/google.xml
|
|
|
|
--- a/browser/locales/en-US/searchplugins/google.xml
|
|
|
|
+++ b/browser/locales/en-US/searchplugins/google.xml
|
2014-02-03 16:34:42 +01:00
|
|
|
@@ -9,25 +9,17 @@
|
2013-08-07 14:18:59 +02:00
|
|
|
<Image width="16" height="16">data:image/x-icon;base64,AAABAAIAEBAAAAAAAAB9AQAAJgAAACAgAAAAAAAA8gIAAKMBAACJUE5HDQoaCgAAAA1JSERSAAA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CALUkApmULdjUqxQVAQnl3D/X/yQda4QBEq2TYc12By091MQ17Bg3R88nHKlQbVmHvj89awNBLYrwT9zXY2aBAxTkGFdiSxP/Jp6FLDw+AS7GfsdJTJ2EqSO5khD43nGfBARy/ZxOQgZHe7GPM1jzUvChUtmnBAXQPcKGMJp3fdFGq6NByEhiAO4b/YptFfQJwNyQ/bZkVQGcf90Ja25ndIyrKBOa/f8wIpwi3X1G8UcxNu7ozUS7tiH0jBswwS3RIaF1w6LYKU/ML2+8sGnjygQswtKrVIy/Qd9qQP6LnO64q4fPAKpxyZIymHo1jWk6p1ag2BsdNwQMHcC+M5kHFJX+YlPxpVlbCx2mZ5DzPI04k4kUwHHdskU3pH76iftG8yWlkAAAAAElFTkSuQmCC</Image>
|
2013-05-14 16:33:59 +02:00
|
|
|
<Url type="application/x-suggestions+json" method="GET" template="https://www.google.com/complete/search?client=firefox&q={searchTerms}"/>
|
|
|
|
<Url type="text/html" method="GET" template="https://www.google.com/search">
|
|
|
|
<Param name="q" value="{searchTerms}"/>
|
|
|
|
<Param name="ie" value="utf-8"/>
|
|
|
|
<Param name="oe" value="utf-8"/>
|
|
|
|
<Param name="aq" value="t"/>
|
|
|
|
<Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
|
|
|
|
-#if MOZ_UPDATE_CHANNEL == beta
|
|
|
|
- <MozParam name="client" condition="defaultEngine" trueValue="firefox-beta" falseValue="firefox"/>
|
|
|
|
-#elif MOZ_UPDATE_CHANNEL == aurora
|
|
|
|
- <MozParam name="client" condition="defaultEngine" trueValue="firefox-aurora" falseValue="firefox"/>
|
|
|
|
-#elif MOZ_UPDATE_CHANNEL == nightly
|
|
|
|
- <MozParam name="client" condition="defaultEngine" trueValue="firefox-nightly" falseValue="firefox"/>
|
|
|
|
-#else
|
|
|
|
<MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
|
|
|
|
-#endif
|
|
|
|
<MozParam name="channel" condition="purpose" purpose="contextmenu" value="rcs"/>
|
|
|
|
<MozParam name="channel" condition="purpose" purpose="keyword" value="fflb"/>
|
2014-02-03 16:34:42 +01:00
|
|
|
<MozParam name="channel" condition="purpose" purpose="searchbar" value="sb"/>
|
2013-05-14 16:33:59 +02:00
|
|
|
<MozParam name="channel" condition="purpose" purpose="homepage" value="np"/>
|
|
|
|
<MozParam name="source" condition="purpose" purpose="homepage" value="hp"/>
|
|
|
|
</Url>
|
|
|
|
<SearchForm>https://www.google.com/</SearchForm>
|
|
|
|
</SearchPlugin>
|
2010-11-30 15:35:52 +01:00
|
|
|
diff --git a/browser/locales/jar.mn b/browser/locales/jar.mn
|
|
|
|
--- a/browser/locales/jar.mn
|
|
|
|
+++ b/browser/locales/jar.mn
|
2014-02-03 16:34:42 +01:00
|
|
|
@@ -124,14 +124,15 @@
|
2013-05-14 16:33:59 +02:00
|
|
|
locale/browser/syncQuota.properties (%chrome/browser/syncQuota.properties)
|
|
|
|
#endif
|
|
|
|
% locale browser-region @AB_CD@ %locale/browser-region/
|
2011-01-24 10:14:26 +01:00
|
|
|
locale/browser-region/region.properties (%chrome/browser-region/region.properties)
|
|
|
|
# the following files are browser-specific overrides
|
2012-11-20 21:34:15 +01:00
|
|
|
locale/browser/netError.dtd (%chrome/overrides/netError.dtd)
|
|
|
|
locale/browser/appstrings.properties (%chrome/overrides/appstrings.properties)
|
|
|
|
locale/browser/downloads/settingsChange.dtd (%chrome/overrides/settingsChange.dtd)
|
2013-05-14 16:33:59 +02:00
|
|
|
+ locale/browser/searchplugins/list.txt (%searchplugins/list.txt)
|
2010-11-30 15:35:52 +01:00
|
|
|
% override chrome://global/locale/netError.dtd chrome://browser/locale/netError.dtd
|
|
|
|
% override chrome://global/locale/appstrings.properties chrome://browser/locale/appstrings.properties
|
|
|
|
% override chrome://mozapps/locale/downloads/settingsChange.dtd chrome://browser/locale/downloads/settingsChange.dtd
|
2012-08-28 20:40:50 +02:00
|
|
|
% locale pdf.js @AB_CD@ %locale/pdfviewer/
|
|
|
|
locale/pdfviewer/viewer.properties (%pdfviewer/viewer.properties)
|
2013-08-07 14:18:59 +02:00
|
|
|
locale/pdfviewer/chrome.properties (%pdfviewer/chrome.properties)
|