зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1089363 - Fix for zh-TW download image dialog. r=glandium
This commit is contained in:
Родитель
3dc8ab47ea
Коммит
4729fff432
|
@ -29,22 +29,27 @@ endif
|
||||||
|
|
||||||
AB_CD = $(MOZ_UI_LOCALE)
|
AB_CD = $(MOZ_UI_LOCALE)
|
||||||
|
|
||||||
AB := $(firstword $(subst -, ,$(AB_CD)))
|
ifeq (zh-TW,$(AB_CD))
|
||||||
|
LPROJ_ROOT := $(subst -,_,$(AB_CD))
|
||||||
|
else
|
||||||
|
LPROJ_ROOT := $(firstword $(subst -, ,$(AB_CD)))
|
||||||
|
endif
|
||||||
|
LPROJ := Contents/Resources/$(LPROJ_ROOT).lproj
|
||||||
|
|
||||||
clean clobber repackage::
|
clean clobber repackage::
|
||||||
rm -rf $(DIST)/$(APP_NAME).app
|
rm -rf $(DIST)/$(APP_NAME).app
|
||||||
|
|
||||||
libs-preqs = \
|
libs-preqs = \
|
||||||
$(call mkdir_deps,$(DIST)/$(APP_NAME).app/Contents/MacOS) \
|
$(call mkdir_deps,$(DIST)/$(APP_NAME).app/Contents/MacOS) \
|
||||||
$(call mkdir_deps,$(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj) \
|
$(call mkdir_deps,$(DIST)/$(APP_NAME).app/$(LPROJ)) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
.PHONY: repackage
|
.PHONY: repackage
|
||||||
tools repackage:: $(libs-preqs)
|
tools repackage:: $(libs-preqs)
|
||||||
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app --exclude English.lproj
|
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents $(DIST)/$(APP_NAME).app --exclude English.lproj
|
||||||
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj
|
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(DIST)/$(APP_NAME).app/$(LPROJ)
|
||||||
sed -e 's/%MOZ_APP_VERSION%/$(MOZ_APP_VERSION)/' -e 's/%MOZ_APP_NAME%/$(MOZ_APP_NAME)/' -e 's/%APP_VERSION%/$(APP_VERSION)/' -e 's/%APP_NAME%/$(APP_NAME)/' -e 's/%APP_BINARY%/$(APP_BINARY)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist
|
sed -e 's/%MOZ_APP_VERSION%/$(MOZ_APP_VERSION)/' -e 's/%MOZ_APP_NAME%/$(MOZ_APP_NAME)/' -e 's/%APP_VERSION%/$(APP_VERSION)/' -e 's/%APP_NAME%/$(APP_NAME)/' -e 's/%APP_BINARY%/$(APP_BINARY)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(DIST)/$(APP_NAME).app/Contents/Info.plist
|
||||||
sed -e 's/%APP_VERSION%/$(APP_VERSION)/' -e 's/%APP_NAME%/$(APP_NAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(DIST)/$(APP_NAME).app/Contents/Resources/$(AB).lproj/InfoPlist.strings
|
sed -e 's/%APP_VERSION%/$(APP_VERSION)/' -e 's/%APP_NAME%/$(APP_NAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(DIST)/$(APP_NAME).app/$(LPROJ)/InfoPlist.strings
|
||||||
rsync -a --exclude 'mangle' --exclude 'shlibsign' --exclude-from='$(srcdir)/macbuild/Contents/MacOS-files.in' $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/Resources
|
rsync -a --exclude 'mangle' --exclude 'shlibsign' --exclude-from='$(srcdir)/macbuild/Contents/MacOS-files.in' $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/Resources
|
||||||
rsync -a --include-from='$(srcdir)/macbuild/Contents/MacOS-files.in' --exclude '*' $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/MacOS
|
rsync -a --include-from='$(srcdir)/macbuild/Contents/MacOS-files.in' --exclude '*' $(DIST)/bin/ $(DIST)/$(APP_NAME).app/Contents/MacOS
|
||||||
ifdef LIBXUL_SDK
|
ifdef LIBXUL_SDK
|
||||||
|
|
|
@ -79,7 +79,12 @@ endif
|
||||||
|
|
||||||
AB_CD = $(MOZ_UI_LOCALE)
|
AB_CD = $(MOZ_UI_LOCALE)
|
||||||
|
|
||||||
AB := $(firstword $(subst -, ,$(AB_CD)))
|
ifeq (zh-TW,$(AB_CD))
|
||||||
|
LPROJ_ROOT := $(subst -,_,$(AB_CD))
|
||||||
|
else
|
||||||
|
LPROJ_ROOT := $(firstword $(subst -, ,$(AB_CD)))
|
||||||
|
endif
|
||||||
|
LPROJ := Contents/Resources/$(LPROJ_ROOT).lproj
|
||||||
|
|
||||||
clean clobber repackage::
|
clean clobber repackage::
|
||||||
$(RM) -r $(dist_dest)
|
$(RM) -r $(dist_dest)
|
||||||
|
@ -89,11 +94,11 @@ MAC_BUNDLE_VERSION = $(shell $(PYTHON) $(srcdir)/macversion.py --version=$(MOZ_A
|
||||||
.PHONY: repackage
|
.PHONY: repackage
|
||||||
tools repackage:: $(PROGRAM)
|
tools repackage:: $(PROGRAM)
|
||||||
$(MKDIR) -p $(dist_dest)/Contents/MacOS
|
$(MKDIR) -p $(dist_dest)/Contents/MacOS
|
||||||
$(MKDIR) -p $(dist_dest)/Contents/Resources/$(AB).lproj
|
$(MKDIR) -p $(dist_dest)/$(LPROJ)
|
||||||
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents $(dist_dest) --exclude English.lproj
|
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents $(dist_dest) --exclude English.lproj
|
||||||
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(dist_dest)/Contents/Resources/$(AB).lproj
|
rsync -a --exclude '*.in' $(srcdir)/macbuild/Contents/Resources/English.lproj/ $(dist_dest)/$(LPROJ)
|
||||||
sed -e 's/%APP_VERSION%/$(MOZ_APP_VERSION)/' -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' -e 's/%MOZ_MACBUNDLE_ID%/$(MOZ_MACBUNDLE_ID)/' -e 's/%MAC_BUNDLE_VERSION%/$(MAC_BUNDLE_VERSION)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(dist_dest)/Contents/Info.plist
|
sed -e 's/%APP_VERSION%/$(MOZ_APP_VERSION)/' -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' -e 's/%MOZ_MACBUNDLE_ID%/$(MOZ_MACBUNDLE_ID)/' -e 's/%MAC_BUNDLE_VERSION%/$(MAC_BUNDLE_VERSION)/' $(srcdir)/macbuild/Contents/Info.plist.in > $(dist_dest)/Contents/Info.plist
|
||||||
sed -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(dist_dest)/Contents/Resources/$(AB).lproj/InfoPlist.strings
|
sed -e 's/%MAC_APP_NAME%/$(MAC_APP_NAME)/' $(srcdir)/macbuild/Contents/Resources/English.lproj/InfoPlist.strings.in | iconv -f UTF-8 -t UTF-16 > $(dist_dest)/$(LPROJ)/InfoPlist.strings
|
||||||
rsync -a --exclude-from='$(srcdir)/macbuild/Contents/MacOS-files.in' $(DIST)/bin/ $(dist_dest)/Contents/Resources
|
rsync -a --exclude-from='$(srcdir)/macbuild/Contents/MacOS-files.in' $(DIST)/bin/ $(dist_dest)/Contents/Resources
|
||||||
rsync -a --include-from='$(srcdir)/macbuild/Contents/MacOS-files.in' --exclude '*' $(DIST)/bin/ $(dist_dest)/Contents/MacOS
|
rsync -a --include-from='$(srcdir)/macbuild/Contents/MacOS-files.in' --exclude '*' $(DIST)/bin/ $(dist_dest)/Contents/MacOS
|
||||||
$(RM) $(dist_dest)/Contents/MacOS/$(PROGRAM)
|
$(RM) $(dist_dest)/Contents/MacOS/$(PROGRAM)
|
||||||
|
|
|
@ -126,8 +126,13 @@ RESPATH = $(BINPATH)
|
||||||
endif
|
endif
|
||||||
DEFINES += -DRESPATH=$(RESPATH)
|
DEFINES += -DRESPATH=$(RESPATH)
|
||||||
|
|
||||||
AB = $(firstword $(subst -, ,$(AB_CD)))
|
LPROJ_ROOT = $(firstword $(subst -, ,$(AB_CD)))
|
||||||
DEFINES += -DAB=$(AB)
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||||
|
ifeq (zh-TW,$(AB_CD))
|
||||||
|
LPROJ_ROOT := $(subst -,_,$(AB_CD))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
DEFINES += -DLPROJ_ROOT=$(LPROJ_ROOT)
|
||||||
|
|
||||||
DEFINES += -DMOZ_ICU_VERSION=$(MOZ_ICU_VERSION)
|
DEFINES += -DMOZ_ICU_VERSION=$(MOZ_ICU_VERSION)
|
||||||
ifdef MOZ_NATIVE_ICU
|
ifdef MOZ_NATIVE_ICU
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
@APPNAME@/Contents/PkgInfo
|
@APPNAME@/Contents/PkgInfo
|
||||||
@RESPATH@/firefox.icns
|
@RESPATH@/firefox.icns
|
||||||
@RESPATH@/document.icns
|
@RESPATH@/document.icns
|
||||||
@RESPATH@/@AB@.lproj/*
|
@RESPATH@/@LPROJ_ROOT@.lproj/*
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[@AB_CD@]
|
[@AB_CD@]
|
||||||
|
|
|
@ -32,7 +32,12 @@ run_for_effects := $(shell if test ! -d $(DIST); then $(NSINSTALL) -D $(DIST); f
|
||||||
# This makefile uses variable overrides from the libs-% target to
|
# This makefile uses variable overrides from the libs-% target to
|
||||||
# build non-default locales to non-default dist/ locations. Be aware!
|
# build non-default locales to non-default dist/ locations. Be aware!
|
||||||
|
|
||||||
AB = $(firstword $(subst -, ,$(AB_CD)))
|
LPROJ_ROOT = $(firstword $(subst -, ,$(AB_CD)))
|
||||||
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||||
|
ifeq (zh-TW,$(AB_CD))
|
||||||
|
LPROJ_ROOT := $(subst -,_,$(AB_CD))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# These are defaulted to be compatible with the files the wget-en-US target
|
# These are defaulted to be compatible with the files the wget-en-US target
|
||||||
# pulls. You may override them if you provide your own files. You _must_
|
# pulls. You may override them if you provide your own files. You _must_
|
||||||
|
@ -116,8 +121,8 @@ endif
|
||||||
$(if $(filter omni,$(MOZ_PACKAGER_FORMAT)),$(if $(NON_OMNIJAR_FILES),--non-resource $(NON_OMNIJAR_FILES)))
|
$(if $(filter omni,$(MOZ_PACKAGER_FORMAT)),$(if $(NON_OMNIJAR_FILES),--non-resource $(NON_OMNIJAR_FILES)))
|
||||||
|
|
||||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||||
ifneq (en,$(AB))
|
ifneq (en,$(LPROJ_ROOT))
|
||||||
mv $(STAGEDIST)/en.lproj $(STAGEDIST)/$(AB).lproj
|
mv $(STAGEDIST)/en.lproj $(STAGEDIST)/$(LPROJ_ROOT).lproj
|
||||||
endif
|
endif
|
||||||
ifdef MOZ_CRASHREPORTER
|
ifdef MOZ_CRASHREPORTER
|
||||||
# On Mac OS X, the crashreporter.ini file needs to be moved from under the
|
# On Mac OS X, the crashreporter.ini file needs to be moved from under the
|
||||||
|
@ -138,9 +143,9 @@ ifdef MAKE_COMPLETE_MAR
|
||||||
PACKAGE_BASE_DIR='$(_ABS_DIST)/l10n-stage'
|
PACKAGE_BASE_DIR='$(_ABS_DIST)/l10n-stage'
|
||||||
endif
|
endif
|
||||||
# packaging done, undo l10n stuff
|
# packaging done, undo l10n stuff
|
||||||
ifneq (en,$(AB))
|
ifneq (en,$(LPROJ_ROOT))
|
||||||
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
||||||
mv $(STAGEDIST)/$(AB).lproj $(STAGEDIST)/en.lproj
|
mv $(STAGEDIST)/$(LPROJ_ROOT).lproj $(STAGEDIST)/en.lproj
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
|
$(NSINSTALL) -D $(DIST)/$(PKG_PATH)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче