Bug 455145: Support for localizing Fennec, r=mfinkle

--HG--
rename : mobile/chrome/Makefile.in => mobile/locales/Makefile.in
rename : mobile/chrome/locale/en-US/brand/brand.dtd => mobile/locales/en-US/chrome/brand/brand.dtd
rename : mobile/chrome/locale/en-US/brand/brand.properties => mobile/locales/en-US/chrome/brand/brand.properties
rename : mobile/chrome/locale/en-US/browser.dtd => mobile/locales/en-US/chrome/browser.dtd
rename : mobile/chrome/locale/en-US/browser.properties => mobile/locales/en-US/chrome/browser.properties
rename : mobile/chrome/locale/en-US/overrides/netError.dtd => mobile/locales/en-US/chrome/overrides/netError.dtd
rename : mobile/chrome/locale/en-US/preferences.dtd => mobile/locales/en-US/chrome/preferences.dtd
rename : mobile/chrome/locale/en-US/region.properties => mobile/locales/en-US/chrome/region.properties
rename : mobile/chrome/locale/en-US/search.properties => mobile/locales/en-US/chrome/search.properties
rename : mobile/chrome/locale/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/chrome/searchplugins/amazondotcom.xml
rename : mobile/chrome/locale/en-US/searchplugins/answers.xml => mobile/locales/en-US/chrome/searchplugins/answers.xml
rename : mobile/chrome/locale/en-US/searchplugins/creativecommons.xml => mobile/locales/en-US/chrome/searchplugins/creativecommons.xml
rename : mobile/chrome/locale/en-US/searchplugins/eBay.xml => mobile/locales/en-US/chrome/searchplugins/eBay.xml
rename : mobile/chrome/locale/en-US/searchplugins/google.xml => mobile/locales/en-US/chrome/searchplugins/google.xml
rename : mobile/chrome/locale/en-US/searchplugins/list.txt => mobile/locales/en-US/chrome/searchplugins/list.txt
rename : mobile/chrome/locale/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/chrome/searchplugins/wikipedia.xml
rename : mobile/chrome/locale/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/chrome/searchplugins/yahoo.xml
rename : mobile/chrome/locale/en-US/shortcuts.properties => mobile/locales/en-US/chrome/shortcuts.properties
This commit is contained in:
Mark Finkle 2008-09-30 17:03:16 -05:00
Родитель 1a988aeacd
Коммит 96b423e6e2
23 изменённых файлов: 83 добавлений и 25 удалений

Просмотреть файл

@ -42,6 +42,6 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = chrome app components
DIRS = chrome locales app components
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -42,13 +42,6 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
vpath %.xml $(srcdir)/locale/$(MOZ_UI_LOCALE)/searchplugins
DEFINES += -DAB_CD=$(MOZ_UI_LOCALE) -DPACKAGE=browser
SEARCH_PLUGINS = $(shell cat $(srcdir)/locale/$(MOZ_UI_LOCALE)/searchplugins/list.txt)
libs:: $(addsuffix .xml,$(SEARCH_PLUGINS))
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/searchplugins
DEFINES += -DAB_CD=$(MOZ_UI_LOCALE) -DPACKAGE=browser
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -13,10 +13,7 @@ browser.jar:
content/scrollbars.css (content/scrollbars.css)
content/content.css (content/content.css)
* content/shortcuts.js (content/shortcuts.js)
% content branding %branding/
% locale branding @AB_CD@ %branding/
branding/brand.dtd (locale/@AB_CD@/brand/brand.dtd)
branding/brand.properties (locale/@AB_CD@/brand/brand.properties)
% content branding %content/branding/
% style chrome://mozapps/content/extensions/extensions.xul chrome://browser/skin/extensions.css
content/preferences/richpref.xml (content/preferences/richpref.xml)
* content/sanitize.xul (content/sanitize.xul)
@ -56,15 +53,3 @@ classic.jar:
images/right_buttons.png (skin/images/right_buttons.png)
images/panel_buttons.png (skin/images/panel_buttons.png)
images/panel_background.png (skin/images/panel_background.png)
@AB_CD@.jar:
% locale browser @AB_CD@ %
browser.dtd (locale/@AB_CD@/browser.dtd)
browser.properties (locale/@AB_CD@/browser.properties)
shortcuts.properties (locale/@AB_CD@/shortcuts.properties)
search.properties (locale/@AB_CD@/search.properties)
region.properties (locale/@AB_CD@/region.properties)
preferences.dtd (locale/@AB_CD@/preferences.dtd)
# Fennec-specific overrides of generic strings
* netError.dtd (locale/@AB_CD@/overrides/netError.dtd)
% override chrome://global/locale/netErrorApp.dtd chrome://browser/locale/netError.dtd

Просмотреть файл

@ -0,0 +1,55 @@
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Mozilla.
#
# The Initial Developer of the Original Code is
# the Mozilla Foundation <http://www.mozilla.org/>.
# Portions created by the Initial Developer are Copyright (C) 2007
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mark Finkle <mfinkle@mozilla.com>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
relativesrcdir = mobile/locales
include $(DEPTH)/config/autoconf.mk
vpath %.xml $(srcdir)/$(MOZ_UI_LOCALE)/chrome/searchplugins
DEFINES += -DAB_CD=$(MOZ_UI_LOCALE) -DPACKAGE=browser
SEARCH_PLUGINS = $(shell cat $(srcdir)/$(MOZ_UI_LOCALE)/chrome/searchplugins/list.txt)
libs:: $(addsuffix .xml,$(SEARCH_PLUGINS))
$(SYSINSTALL) $(IFLAGS1) $^ $(FINAL_TARGET)/searchplugins
include $(topsrcdir)/config/rules.mk

Просмотреть файл

16
mobile/locales/jar.mn Normal file
Просмотреть файл

@ -0,0 +1,16 @@
#filter substitution
@AB_CD@.jar:
% locale browser @AB_CD@ %locale/@AB_CD@/browser/
locale/@AB_CD@/browser/browser.dtd (%chrome/browser.dtd)
locale/@AB_CD@/browser/browser.properties (%chrome/browser.properties)
locale/@AB_CD@/browser/shortcuts.properties (%chrome/shortcuts.properties)
locale/@AB_CD@/browser/search.properties (%chrome/search.properties)
locale/@AB_CD@/browser/region.properties (%chrome/region.properties)
locale/@AB_CD@/browser/preferences.dtd (%chrome/preferences.dtd)
# Fennec-specific overrides of generic strings
* locale/@AB_CD@/browser/netError.dtd (%chrome/overrides/netError.dtd)
% override chrome://global/locale/netErrorApp.dtd chrome://browser/locale/netError.dtd
% locale branding @AB_CD@ %locale/@AB_CD@/branding/
locale/@AB_CD@/branding/brand.dtd (%chrome/brand/brand.dtd)
locale/@AB_CD@/branding/brand.properties (%chrome/brand/brand.properties)

9
mobile/locales/l10n.ini Normal file
Просмотреть файл

@ -0,0 +1,9 @@
[general]
depth = ../..
all = mobile/locales/all-locales
[compare]
dirs = mobile
[includes]
toolkit = toolkit/locales/l10n.ini