Adding i18n support to xpinstall: using StringBundleService.

This commit is contained in:
sgehani%netscape.com 1999-09-21 08:46:59 +00:00
parent 32147a6fe0
commit e5364a1cdd
4 changed files with 43 additions and 0 deletions

View File

@ -1188,6 +1188,8 @@ sub MakeResourceAliases()
my($xpinstall_dir) = "$resource_dir" . "xpinstall:";
_InstallResources(":mozilla:xpinstall:res:MANIFEST", "$xpinstall_dir");
my($xpinstall_ch_dir) = "$chrome_dir" . "xpinstall";
_InstallResources(":mozilla:xpinstall:res:locale:en-US:MANIFEST", "$xpinstall_ch_dir:locale:en-US:", 0);
my($profile_dir) = "$resource_dir" . "profile:";
my($profile_chrome_dir) = "$chrome_dir" . "Profile";

View File

@ -0,0 +1,3 @@
xpinstall.properties
progress.dtd
xpistatus.dtd

View File

@ -24,6 +24,8 @@ include <$(DEPTH)\config\rules.mak>
install::
$(MAKE_INSTALL) progress.dtd $(DIST)\bin\chrome\xpinstall\locale\en-US
$(MAKE_INSTALL) xpistatus.dtd $(DIST)\bin\chrome\xpinstall\locale\en-US
$(MAKE_INSTALL) xpinstall.properties $(DIST)\bin\chrome\xpinstall\locale\en-US
clobber::
rm -f $(DIST)\bin\chrome\xpinstall\locale\en-US\*.*

View File

@ -0,0 +1,36 @@
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 Communicator client code, released March
# 31, 1998.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are Copyright (C) 1998-1999
# Netscape Communications Corporation. All Rights Reserved.
#
# Contributors:
# Samir Gehani <sgehani@netscape.com>
#
# String resources for xpinstall user interface dialogs
#
InstallFile=Installing: %s
ReplaceFile=Replacing: %s
DeleteFile=Deleting file: %s
DeleteComponent=Deleting component: %s
Execute=Executing: %s
ExecuteWithArgs=Executing: %s with argument: %s
Patch=Patching: %s
Uninstall=Uninstalling: %s