зеркало из https://github.com/mozilla/gecko-dev.git
Bugscape bug 1594; remove 'Mozilla' with dynamic product name; r=mcafee@netscape.com
This commit is contained in:
Родитель
9c41dbbbb1
Коммит
0f09bee099
|
@ -77,6 +77,14 @@ nsHelperAppLauncherDialog.prototype= {
|
|||
var text = html.childNodes[ 0 ].nodeValue;
|
||||
// Substitute content type for "#1".
|
||||
text = text.replace( /#1/, this.appLauncher.MIMEInfo.MIMEType );
|
||||
|
||||
// Replace #2 with product name.
|
||||
var brandBundle = srGetStrBundle("chrome://global/locale/brand.properties");
|
||||
if ( brandBundle ) {
|
||||
var product = brandBundle.GetStringFromName( "brandShortName" );
|
||||
text = text.replace( /#2/, product );
|
||||
}
|
||||
|
||||
// Replace text in document.
|
||||
html.childNodes[ 0 ].nodeValue = text;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!ENTITY caption.label "Downloading">
|
||||
|
||||
<!ENTITY intro.label "This file has mime type #1 and cannot be viewed using Mozilla. You can open it with another application, or save it to disk.">
|
||||
<!ENTITY intro.label "This file has mime type #1 and cannot be viewed using #2. You can open it with another application, or save it to disk.">
|
||||
|
||||
<!ENTITY runApp.label "Open using">
|
||||
<!ENTITY runApp.accesskey "o">
|
||||
|
|
Загрузка…
Ссылка в новой задаче