Bug 1547484 - change mention of mozilla/netscape to proper name of the application. r=mkmelin,IanN

This commit is contained in:
aceman 2019-04-27 13:16:00 +02:00
Родитель 5ab220a566
Коммит 3899109862
6 изменённых файлов: 14 добавлений и 3 удалений

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

@ -283,7 +283,9 @@ function setRunFolder(aFolder) {
function toggleFilter(aFilterItem, aSetForEvent) {
let filter = aFilterItem._filter;
if (filter.unparseable && !filter.enabled) {
Services.prompt.alert(window, null, gFilterBundle.getString("cannotEnableFilter"));
Services.prompt.alert(window, null,
gFilterBundle.getFormattedString("cannotEnableIncompatFilter",
[document.getElementById("bundle_brand").getString("brandShortName")]));
return;
}
filter.enabled = aSetForEvent === undefined ? !filter.enabled : aSetForEvent;

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

@ -29,6 +29,7 @@
<script type="application/javascript" src="chrome://messenger/content/customElements.js"/>
<stringbundleset id="stringbundleset">
<stringbundle id="bundle_filter" src="chrome://messenger/locale/filter.properties"/>
<stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>
</stringbundleset>
<keyset>

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

@ -22,7 +22,9 @@ promptTitle=Running Filters
promptMsg=You are currently in the process of filtering messages.\nWould you like to continue applying filters?
stopButtonLabel=Stop
continueButtonLabel=Continue
cannotEnableFilter=This filter was probably created by future version of mozilla/netscape. You cannot enable this filter because we don't know how to apply it.
# LOCALIZATION NOTE(cannotEnableIncompatFilter)
# %S=the name of the application
cannotEnableIncompatFilter=This filter was probably created by a newer or incompatible version of %S. You cannot enable this filter because we don't know how to apply it.
dontWarnAboutDeleteCheckbox=Don't ask me again
# LOCALIZATION NOTE(copyToNewFilterName)
# %S=the name of the filter that is being copied

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

@ -23,6 +23,9 @@ promptMsg=You are currently in the process of filtering messages.\nWould you lik
stopButtonLabel=Stop
continueButtonLabel=Continue
cannotEnableFilter=This filter was probably created by a future version of this software. You cannot enable this filter because we don't know how to apply it.
# LOCALIZATION NOTE(cannotEnableIncompatFilter)
# %S=the name of the application
cannotEnableIncompatFilter=This filter was probably created by a newer or incompatible version of %S. You cannot enable this filter because we don't know how to apply it.
# LOCALIZATION NOTE(filterFailureWarningPrefix)
# %1$S=filter error action
# %2$S=error code as hexadecimal string.

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

@ -251,7 +251,8 @@ function toggleFilter(index)
if (filter.unparseable)
{
Services.prompt.alert(window, null,
gFilterBundle.getString("cannotEnableFilter"));
gFilterBundle.getFormattedString("cannotEnableIncompatFilter",
[document.getElementById("bundle_brand").getString("brandShortName")]));
return false;
}
filter.enabled = !filter.enabled;

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

@ -26,6 +26,8 @@
src="chrome://messenger/content/FilterListDialog.js"/>
<stringbundle id="bundle_filter"
src="chrome://messenger/locale/filter.properties"/>
<stringbundle id="bundle_brand"
src="chrome://branding/locale/brand.properties"/>
<keyset id="filterKeys">
<key id="key_selectAll"/>