diff --git a/mail/components/addrbook/content/addressbook.js b/mail/components/addrbook/content/addressbook.js index ab032e3996..fbf4ebce37 100644 --- a/mail/components/addrbook/content/addressbook.js +++ b/mail/components/addrbook/content/addressbook.js @@ -493,8 +493,8 @@ function SetStatusText(total) statusText = gAddressBookBundle.getString("noMatchFound"); } else { statusText = PluralForm - .get(total, gAddressBookBundle.getString("matchesFoundCount")) - .replace("%S", total); + .get(total, gAddressBookBundle.getString("matchesFound")) + .replace("#1", total); } } else diff --git a/mail/locales/en-US/chrome/messenger/addressbook/addressBook.properties b/mail/locales/en-US/chrome/messenger/addressbook/addressBook.properties index b5558bbfff..5a54e59353 100644 --- a/mail/locales/en-US/chrome/messenger/addressbook/addressBook.properties +++ b/mail/locales/en-US/chrome/messenger/addressbook/addressBook.properties @@ -110,9 +110,11 @@ ldap_2.servers.osx.description=Mac OS X Address Book ## %1$S is address book name, %2$S is contact count totalContactStatus=Total contacts in %1$S: %2$S noMatchFound=No matches found -# LOCALIZATION NOTE (matchesFoundCount): Semi-colon list of plural forms -# $S is the number of matches found -matchesFoundCount=%S match found;%S matches found +## LOCALIZATION NOTE (matchesFound): +## Semicolon-separated list of singular and plural forms. +## See: https://developer.mozilla.org/docs/Mozilla/Localization/Localization_and_Plurals +## #1 is the number of matching contacts found +matchesFound=#1 match found;#1 matches found ## LOCALIZATION NOTE (contactsCopied): Semi-colon list of plural forms ## %1$S is the number of contacts that were copied. This should be used multiple diff --git a/suite/locales/en-US/chrome/mailnews/addressbook/addressBook.properties b/suite/locales/en-US/chrome/mailnews/addressbook/addressBook.properties index 6f9cdba734..fe81a6a4ae 100644 --- a/suite/locales/en-US/chrome/mailnews/addressbook/addressBook.properties +++ b/suite/locales/en-US/chrome/mailnews/addressbook/addressBook.properties @@ -103,9 +103,11 @@ ldap_2.servers.osx.description=Mac OS X Address Book ## %1$S is address book name, %2$S is card count totalContactStatus=Total contacts in %1$S: %2$S noMatchFound=No matches found -# LOCALIZATION NOTE (matchesFoundCount): Semi-colon list of plural forms -# $S is the number of matches found -matchesFoundCount=%S match found;%S matches found +## LOCALIZATION NOTE (matchesFound): +## Semicolon-separated list of singular and plural forms. +## See: https://developer.mozilla.org/docs/Mozilla/Localization/Localization_and_Plurals +## #1 is the number of matching contacts found +matchesFound=#1 match found;#1 matches found ## LOCALIZATION NOTE (contactsCopied): Semi-colon list of plural forms ## %1$S is the number of contacts that were copied. This should be used multiple diff --git a/suite/mailnews/addrbook/addressbook.js b/suite/mailnews/addrbook/addressbook.js index a599b2fdcf..cc5bfb2598 100644 --- a/suite/mailnews/addrbook/addressbook.js +++ b/suite/mailnews/addrbook/addressbook.js @@ -353,8 +353,8 @@ function SetStatusText(total) statusText = gAddressBookBundle.getString("noMatchFound"); } else { statusText = PluralForm - .get(total, gAddressBookBundle.getString("matchesFoundCount")) - .replace("%S", total); + .get(total, gAddressBookBundle.getString("matchesFound")) + .replace("#1", total); } } else