mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 783847 - Move Webapps l10n strings from browser/ to toolkit/. r=bmcbride
This commit is contained in:
parent
f2718c8e3a
commit
54de84ff08
@ -358,9 +358,6 @@ webapps.install.accesskey = I
|
||||
#LOCALIZATION NOTE (webapps.requestInstall) %1$S is the web app name, %2$S is the site from which the web app is installed
|
||||
webapps.requestInstall = Do you want to install "%1$S" from this site (%2$S)?
|
||||
webapps.install.success = Application Installed
|
||||
# LOCALIZATION NOTE (webapps.uninstall.notification): %S will be replaced with the name of the uninstalled web app
|
||||
webapps.uninstall.notification = %S has been uninstalled from your computer.
|
||||
webapps.uninstall.label = Uninstall App
|
||||
|
||||
# Telemetry opt-out prompt for Aurora and Nightly
|
||||
# LOCALIZATION NOTE (telemetryOptOutPrompt): %1$S and %3$S will be replaced by
|
||||
|
7
toolkit/locales/en-US/chrome/global/webapps.properties
Normal file
7
toolkit/locales/en-US/chrome/global/webapps.properties
Normal file
@ -0,0 +1,7 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# LOCALIZATION NOTE (webapps.uninstall.notification): %S will be replaced with the name of the uninstalled web app
|
||||
uninstall.notification = %S has been uninstalled from your computer.
|
||||
uninstall.label = Uninstall App
|
@ -63,6 +63,7 @@
|
||||
locale/@AB_CD@/global/videocontrols.dtd (%chrome/global/videocontrols.dtd)
|
||||
locale/@AB_CD@/global/viewSource.dtd (%chrome/global/viewSource.dtd)
|
||||
locale/@AB_CD@/global/viewSource.properties (%chrome/global/viewSource.properties)
|
||||
locale/@AB_CD@/global/webapps.properties (%chrome/global/webapps.properties)
|
||||
locale/@AB_CD@/global/wizard.dtd (%chrome/global/wizard.dtd)
|
||||
locale/@AB_CD@/global/wizard.properties (%chrome/global/wizard.properties)
|
||||
locale/@AB_CD@/global/xpinstall/xpinstall.properties (%chrome/global/xpinstall/xpinstall.properties)
|
||||
|
@ -801,13 +801,13 @@ LinuxNativeApp.prototype = {
|
||||
let factory = Cc["@mozilla.org/xpcom/ini-processor-factory;1"]
|
||||
.getService(Ci.nsIINIParserFactory);
|
||||
|
||||
let browserBundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
|
||||
let webappsBundle = Services.strings.createBundle("chrome://global/locale/webapps.properties");
|
||||
|
||||
// ${InstallDir}/webapp.ini
|
||||
let writer = factory.createINIParser(this.webappINI).QueryInterface(Ci.nsIINIParserWriter);
|
||||
writer.setString("Webapp", "Name", this.appName);
|
||||
writer.setString("Webapp", "Profile", this.uniqueName);
|
||||
writer.setString("Webapp", "UninstallMsg", browserBundle.formatStringFromName("webapps.uninstall.notification", [this.appName], 1));
|
||||
writer.setString("Webapp", "UninstallMsg", webappsBundle.formatStringFromName("uninstall.notification", [this.appName], 1));
|
||||
writer.setString("WebappRT", "InstallDir", this.runtimeFolder.path);
|
||||
writer.writeFile();
|
||||
|
||||
@ -827,7 +827,7 @@ LinuxNativeApp.prototype = {
|
||||
writer.setString("Desktop Entry", "Categories", categories);
|
||||
|
||||
writer.setString("Desktop Entry", "Actions", "Uninstall;");
|
||||
writer.setString("Desktop Action Uninstall", "Name", browserBundle.GetStringFromName("webapps.uninstall.label"));
|
||||
writer.setString("Desktop Action Uninstall", "Name", webappsBundle.GetStringFromName("uninstall.label"));
|
||||
writer.setString("Desktop Action Uninstall", "Exec", this.webapprt.path + " -remove");
|
||||
|
||||
writer.writeFile();
|
||||
|
Loading…
Reference in New Issue
Block a user