2010-11-30 15:35:52 +01:00
|
|
|
# HG changeset patch
|
|
|
|
# User Wolfgang Rosenauer <wr@rosenauer.org>
|
2012-11-20 21:34:15 +01:00
|
|
|
# Parent ba286b90465d93b93487c0de6f8ebe5d1821d2c0
|
2010-11-30 15:35:52 +01:00
|
|
|
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
|
2012-11-20 21:34:15 +01:00
|
|
|
@@ -332,16 +332,20 @@ pref("browser.download.useToolkitUI", tr
|
2012-07-16 10:13:51 +02:00
|
|
|
pref("browser.download.panel.removeFinishedDownloads", false);
|
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
|
2012-11-20 21:34:15 +01:00
|
|
|
@@ -118,39 +118,48 @@ libs:: $(call MERGE_FILES,$(addprefix pr
|
2010-11-30 15:35:52 +01:00
|
|
|
install:: $(DESTDIR)$(mozappdir)/defaults/profile/bookmarks.html ;
|
|
|
|
|
|
|
|
install:: $(addprefix generic/profile/,$(PROFILE_FILES))
|
|
|
|
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/profile
|
|
|
|
|
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
|
|
|
|
|
2011-06-01 08:05:09 +02:00
|
|
|
-SEARCH_PLUGINS = $(shell cat $(call MERGE_FILE,/searchplugins/list.txt))
|
2010-11-30 15:35:52 +01:00
|
|
|
+SEARCH_PLUGINS = $(shell cat \
|
2012-04-20 21:18:58 +02:00
|
|
|
+ $(firstword $(wildcard $(LOCALE_SRCDIR)/searchplugins/list.txt) \
|
|
|
|
+ @srcdir@/en-US/searchplugins/list.txt ) )
|
2010-11-30 15:35:52 +01:00
|
|
|
|
|
|
|
-libs:: $(addsuffix .xml,$(SEARCH_PLUGINS))
|
2012-04-20 21:18:58 +02:00
|
|
|
- $(NSINSTALL) -D $(FINAL_TARGET)/searchplugins
|
|
|
|
- for SEARCH_PLUGIN in $^; do\
|
|
|
|
- SEARCH_PLUGIN_BASE=`basename $$SEARCH_PLUGIN`;\
|
2010-11-30 15:35:52 +01:00
|
|
|
+tmp-search.jar.mn::
|
|
|
|
+ printf "$(AB_CD).jar:" > $@
|
|
|
|
+ printf "$(foreach plugin,$(SEARCH_PLUGINS),$(subst __PLUGIN_SUBST__,$(plugin), \n locale/browser/searchplugins/__PLUGIN_SUBST__.xml (__PLUGIN_SUBST__.xml)))" >> $@
|
|
|
|
+ @echo >> $@
|
2012-04-20 21:18:58 +02:00
|
|
|
+
|
|
|
|
+searchplugins:: $(addsuffix .xml,$(SEARCH_PLUGINS))
|
|
|
|
+ for SEARCH_PLUGIN in $^; do \
|
|
|
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
|
|
|
|
- $$SEARCH_PLUGIN > $(FINAL_TARGET)/searchplugins/$$SEARCH_PLUGIN_BASE; \
|
|
|
|
+ $$SEARCH_PLUGIN > $$SEARCH_PLUGIN-new ; \
|
|
|
|
+ mv $$SEARCH_PLUGIN-new $$SEARCH_PLUGIN ; \
|
|
|
|
done
|
2010-11-30 15:35:52 +01:00
|
|
|
|
|
|
|
-install:: $(addsuffix .xml,$(SEARCH_PLUGINS))
|
2012-04-20 21:18:58 +02:00
|
|
|
- $(NSINSTALL) -D $(DESTDIR)$(mozappdir)/searchplugins
|
|
|
|
- for i in $^; do \
|
|
|
|
- SEARCH_PLUGIN_BASE=`basename $$SEARCH_PLUGIN`;\
|
|
|
|
- $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
|
|
|
|
- $$SEARCH_PLUGIN > $(DESTDIR)$(mozappdir)/searchplugins/$$SEARCH_PLUGIN_BASE; \
|
|
|
|
- done
|
|
|
|
+searchplugins:: tmp-search.jar.mn
|
2010-11-30 15:35:52 +01:00
|
|
|
+ $(PYTHON) $(MOZILLA_DIR)/config/JarMaker.py \
|
|
|
|
+ $(QUIET) -j $(FINAL_TARGET)/chrome \
|
|
|
|
+ -s $(topsrcdir)/$(relativesrcdir)/en-US/searchplugins \
|
|
|
|
+ -s $(LOCALE_SRCDIR)/searchplugins \
|
|
|
|
+ $(MAKE_JARS_FLAGS) tmp-search.jar.mn
|
2011-06-01 08:05:09 +02:00
|
|
|
|
2012-04-20 21:18:58 +02:00
|
|
|
+libs:: searchplugins
|
2010-11-30 15:35:52 +01:00
|
|
|
+
|
|
|
|
+GARBAGE += tmp-search.jar.mn
|
|
|
|
|
|
|
|
libs-%:
|
|
|
|
$(NSINSTALL) -D $(DIST)/install
|
|
|
|
@$(MAKE) -C ../../toolkit/locales libs-$* BOTH_MANIFESTS=1
|
|
|
|
@$(MAKE) -C ../../services/sync/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
|
|
|
|
+ @$(MAKE) -B searchplugins AB_CD=$* XPI_NAME=locale-$*
|
|
|
|
@$(MAKE) -C ../../extensions/spellcheck/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
|
2011-07-23 16:46:28 +02:00
|
|
|
@$(MAKE) -C ../../intl/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
|
|
|
|
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR) BOTH_MANIFESTS=1
|
2010-11-30 15:35:52 +01:00
|
|
|
@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$* BOTH_MANIFESTS=1
|
|
|
|
|
2011-06-01 08:05:09 +02:00
|
|
|
repackage-win32-installer: WIN32_INSTALLER_OUT=$(_ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe
|
2012-11-20 21:34:15 +01:00
|
|
|
repackage-win32-installer: $(call ESCAPE_WILDCARD,$(WIN32_INSTALLER_IN)) $(SUBMAKEFILES) libs-$(AB_CD)
|
|
|
|
@echo "Repackaging $(WIN32_INSTALLER_IN) into $(WIN32_INSTALLER_OUT)."
|
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
|
2012-08-28 20:40:50 +02:00
|
|
|
@@ -108,16 +108,17 @@
|
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)
|
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
|
2011-01-24 10:14:26 +01:00
|
|
|
+ locale/browser/searchplugins/list.txt (%searchplugins/list.txt)
|
2010-11-30 15:35:52 +01:00
|
|
|
% locale testpilot @AB_CD@ %locale/feedback/
|
|
|
|
locale/feedback/main.dtd (%feedback/main.dtd)
|
|
|
|
locale/feedback/main.properties (%feedback/main.properties)
|
2012-08-28 20:40:50 +02:00
|
|
|
% locale pdf.js @AB_CD@ %locale/pdfviewer/
|
|
|
|
locale/pdfviewer/viewer.properties (%pdfviewer/viewer.properties)
|
|
|
|
locale/pdfviewer/chrome.properties (%pdfviewer/chrome.properties)
|
2012-07-16 10:13:51 +02:00
|
|
|
#ifdef MOZ_WEBAPP_RUNTIME
|
2012-10-09 13:14:08 +02:00
|
|
|
../webapprt/chrome/@AB_CD@.jar:
|