Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: mobile/android/base/locales/Makefile.in

Issue 29322413: Issue 2750 - [Support other languages] Apply Firefox's translations (Closed)
Patch Set: Refined README again. Created July 27, 2015, 10:18 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « README.md ('k') | mobile/android/base/locales/adblockbrowser/en-US/android_strings.dtd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This Source Code Form is subject to the terms of the Mozilla Public 1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 4
5 include $(topsrcdir)/config/config.mk 5 include $(topsrcdir)/config/config.mk
6 6
7 # special case some locale codes, he and id 7 # special case some locale codes, he and id
8 # http://code.google.com/p/android/issues/detail?id=3639 8 # http://code.google.com/p/android/issues/detail?id=3639
9 AB_rCD = $(if $(filter he, $(AB_CD)),iw,$(if $(filter id, $(AB_CD)),in,$(subst - ,-r,$(AB_CD)))) 9 AB_rCD = $(if $(filter he, $(AB_CD)),iw,$(if $(filter id, $(AB_CD)),in,$(subst - ,-r,$(AB_CD))))
10 10
11 # The search strings path is always passed to strings.xml.in; the 11 # The search strings path is always passed to strings.xml.in; the
12 # decision to include is made based on the feature flag at the 12 # decision to include is made based on the feature flag at the
13 # inclusion site. 13 # inclusion site.
14 SEARCHSTRINGSPATH = $(abspath $(call MERGE_FILE,search_strings.dtd)) 14 SEARCHSTRINGSPATH = $(abspath $(call MERGE_FILE,search_strings.dtd))
15 15
16 SYNCSTRINGSPATH = $(abspath $(call MERGE_FILE,sync_strings.dtd)) 16 SYNCSTRINGSPATH = $(abspath $(call MERGE_FILE,sync_strings.dtd))
17 STRINGSPATH = $(abspath $(call MERGE_FILE,android_strings.dtd)) 17 STRINGSPATH = $(abspath $(call MERGE_FILE,android_strings.dtd))
18 ABBSTRINGSPATH = $(or $(wildcard $(srcdir)/adblockbrowser/$(ABr_CD)/android_stri ngs.dtd), \
19 $(wildcard $(srcdir)/adblockbrowser/$(AB_CD)/android_strings.dtd), \
20 $(srcdir)/adblockbrowser/en-US/android_strings.dtd)
18 ifeq (,$(XPI_NAME)) 21 ifeq (,$(XPI_NAME))
19 BRANDPATH = $(abspath $(DEPTH)/dist/bin/chrome/$(AB_CD)/locale/branding/brand.dt d) 22 BRANDPATH = $(abspath $(DEPTH)/dist/bin/chrome/$(AB_CD)/locale/branding/brand.dt d)
20 else 23 else
21 BRANDPATH = $(abspath $(DIST)/xpi-stage/$(XPI_NAME)/chrome/$(AB_CD)/locale/brand ing/brand.dtd) 24 BRANDPATH = $(abspath $(DIST)/xpi-stage/$(XPI_NAME)/chrome/$(AB_CD)/locale/brand ing/brand.dtd)
22 endif 25 endif
23 $(warnIfEmpty,AB_CD) # todo: $(errorIfEmpty ) 26 $(warnIfEmpty,AB_CD) # todo: $(errorIfEmpty )
24 27
25 dir-res-values := ../res/values 28 dir-res-values := ../res/values
26 strings-xml := $(dir-res-values)/strings.xml 29 strings-xml := $(dir-res-values)/strings.xml
27 strings-xml-in := $(srcdir)/../strings.xml.in 30 strings-xml-in := $(srcdir)/../strings.xml.in
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 strings-xml-bypath = $(filter %/strings.xml,$(MAKECMDGOALS)) 63 strings-xml-bypath = $(filter %/strings.xml,$(MAKECMDGOALS))
61 ifeq (,$(strip $(strings-xml-bypath))) 64 ifeq (,$(strip $(strings-xml-bypath)))
62 strings-xml-bypath = $(strings-xml) 65 strings-xml-bypath = $(strings-xml)
63 endif 66 endif
64 dir-strings-xml = $(patsubst %/,%,$(dir $(strings-xml-bypath))) 67 dir-strings-xml = $(patsubst %/,%,$(dir $(strings-xml-bypath)))
65 68
66 strings-xml-preqs =\ 69 strings-xml-preqs =\
67 $(strings-xml-in) \ 70 $(strings-xml-in) \
68 $(BRANDPATH) \ 71 $(BRANDPATH) \
69 $(STRINGSPATH) \ 72 $(STRINGSPATH) \
73 $(ABBSTRINGSPATH) \
70 $(SEARCHSTRINGSPATH) \ 74 $(SEARCHSTRINGSPATH) \
71 $(SYNCSTRINGSPATH) \ 75 $(SYNCSTRINGSPATH) \
72 $(BOOKMARKSPATH) \ 76 $(BOOKMARKSPATH) \
73 $(if $(IS_LANGUAGE_REPACK),FORCE) \ 77 $(if $(IS_LANGUAGE_REPACK),FORCE) \
74 $(NULL) 78 $(NULL)
75 79
76 $(if $(MOZ_ANDROID_SHARED_ACCOUNT_TYPE),,$(error Missing MOZ_ANDROID_SHARED_ACCO UNT_TYPE)) 80 $(if $(MOZ_ANDROID_SHARED_ACCOUNT_TYPE),,$(error Missing MOZ_ANDROID_SHARED_ACCO UNT_TYPE))
77 $(if $(MOZ_ANDROID_SHARED_FXACCOUNT_TYPE),,$(error Missing MOZ_ANDROID_SHARED_FX ACCOUNT_TYPE)) 81 $(if $(MOZ_ANDROID_SHARED_FXACCOUNT_TYPE),,$(error Missing MOZ_ANDROID_SHARED_FX ACCOUNT_TYPE))
78 82
79 $(dir-strings-xml)/strings.xml: $(strings-xml-preqs) 83 $(dir-strings-xml)/strings.xml: $(strings-xml-preqs)
80 $(call py_action,preprocessor, \ 84 $(call py_action,preprocessor, \
81 $(DEFINES) \ 85 $(DEFINES) \
82 -DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME) \ 86 -DANDROID_PACKAGE_NAME=$(ANDROID_PACKAGE_NAME) \
83 -DBOOKMARKSPATH='$(BOOKMARKSPATH)' \ 87 -DBOOKMARKSPATH='$(BOOKMARKSPATH)' \
84 -DBRANDPATH='$(BRANDPATH)' \ 88 -DBRANDPATH='$(BRANDPATH)' \
85 -DMOZ_ANDROID_SHARED_ACCOUNT_TYPE=$(MOZ_ANDROID_SHARED_ACCOUNT_TYPE) \ 89 -DMOZ_ANDROID_SHARED_ACCOUNT_TYPE=$(MOZ_ANDROID_SHARED_ACCOUNT_TYPE) \
86 -DMOZ_ANDROID_SHARED_FXACCOUNT_TYPE=$(MOZ_ANDROID_SHARED_FXACCOUNT_TYP E) \ 90 -DMOZ_ANDROID_SHARED_FXACCOUNT_TYPE=$(MOZ_ANDROID_SHARED_FXACCOUNT_TYP E) \
87 -DMOZ_APP_DISPLAYNAME='@MOZ_APP_DISPLAYNAME@' \ 91 -DMOZ_APP_DISPLAYNAME='@MOZ_APP_DISPLAYNAME@' \
88 -DSTRINGSPATH='$(STRINGSPATH)' \ 92 -DSTRINGSPATH='$(STRINGSPATH)' \
93 -DABBSTRINGSPATH='$(ABBSTRINGSPATH)' \
89 -DSYNCSTRINGSPATH='$(SYNCSTRINGSPATH)' \ 94 -DSYNCSTRINGSPATH='$(SYNCSTRINGSPATH)' \
90 -DSEARCHSTRINGSPATH='$(SEARCHSTRINGSPATH)' \ 95 -DSEARCHSTRINGSPATH='$(SEARCHSTRINGSPATH)' \
91 $< \ 96 $< \
92 -o $@) 97 -o $@)
93 98
94 # Arg 1: Valid Make identifier, like suggestedsites. 99 # Arg 1: Valid Make identifier, like suggestedsites.
95 # Arg 2: File name, like suggestedsites.json. 100 # Arg 2: File name, like suggestedsites.json.
96 define generated_file_template 101 define generated_file_template
97 102
98 # Determine the ../res/raw[-*] path. This can be ../res/raw when no 103 # Determine the ../res/raw[-*] path. This can be ../res/raw when no
(...skipping 24 matching lines...) Expand all
123 $@) 128 $@)
124 129
125 $(eval $(call generated_file_template,browsersearch,browsersearch.json)) 130 $(eval $(call generated_file_template,browsersearch,browsersearch.json))
126 131
127 $(browsersearch-dstdir-raw)/browsersearch.json: FORCE 132 $(browsersearch-dstdir-raw)/browsersearch.json: FORCE
128 $(call py_action,generate_browsersearch, \ 133 $(call py_action,generate_browsersearch, \
129 --verbose \ 134 --verbose \
130 $(if $(filter en-US,$(AB_CD)),,--srcdir=$(l10n-srcdir)) \ 135 $(if $(filter en-US,$(AB_CD)),,--srcdir=$(l10n-srcdir)) \
131 --srcdir=$(topsrcdir)/mobile/locales/en-US/chrome \ 136 --srcdir=$(topsrcdir)/mobile/locales/en-US/chrome \
132 $@) 137 $@)
OLDNEW
« no previous file with comments | « README.md ('k') | mobile/android/base/locales/adblockbrowser/en-US/android_strings.dtd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld