diff --git a/xpfe/components/ucth/resources/helperAppLauncher.js b/xpfe/components/ucth/resources/helperAppLauncher.js index 59b83962f664..73d7eafcc4d2 100644 --- a/xpfe/components/ucth/resources/helperAppLauncher.js +++ b/xpfe/components/ucth/resources/helperAppLauncher.js @@ -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; } diff --git a/xpfe/components/ucth/resources/locale/en-US/helperAppLauncher.dtd b/xpfe/components/ucth/resources/locale/en-US/helperAppLauncher.dtd index d6c578db68ec..6ad26c9e63cc 100644 --- a/xpfe/components/ucth/resources/locale/en-US/helperAppLauncher.dtd +++ b/xpfe/components/ucth/resources/locale/en-US/helperAppLauncher.dtd @@ -1,6 +1,6 @@ - +