Bugscape bug 1594; remove 'Mozilla' with dynamic product name; r=mcafee@netscape.com

This commit is contained in:
law%netscape.com 2000-08-24 03:57:39 +00:00
Родитель 9c41dbbbb1
Коммит 0f09bee099
2 изменённых файлов: 9 добавлений и 1 удалений

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

@ -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">