Use proper plural form in editor.searchResults and sourceSearch.resultsSummary
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: flod, Assigned: bmiriam1230)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
Reporter | ||
Comment 1•8 years ago
|
||
Comment 2•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Comment 5•7 years ago
|
||
:flod Could you provide me the proper strings? I can get them changed ASAP.
Reporter | ||
Comment 6•7 years ago
|
||
Consider the first string.
# LOCALIZATION NOTE (editor.searchResults): Editor Search bar message
# for the summarizing the selected search result. e.g. 5 of 10 results.
editor.searchResults=%d of %d results
"results" needs to be a proper plural.
English has 2 plurals (for "1" and any other number), each one separated by a semicolon character. Also, you need to use #1 for the variable replace by the number, not %S or %d
editor.searchResultsMessage=%d of #1 result;%d of #1 results
If you really want, you can leave the first form empty, and start with a semicolon.
editor.searchResultsMessage=;%d of #1 results
You also need a specific comment (and a new ID), per https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Use_proper_plural_forms
# LOCALIZATION NOTE (editor.searchResultsMessage): Semi-colon list of plural forms.
# See: http://developer.mozilla.org/en/docs/Localization_and_Plurals
# Editor Search bar message to summarize the selected search result. e.g. 5 of 10 results.
editor.searchResultsMessage=%d of #1 result;%d of #1 results
You need to use the plural form code to:
- Identify the right substring to use based on #1 (
PluralForm.get()
), then replace #1 with the actual number of results. - Format the resulting string, replacing
%d
with the number.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Added proper plural form to editor.searchResults and sourceSearch.resultsSummary1. Updated the comments and IDs for the new strings as well. Replaced all instances of old string references with new string references.
Comment 10•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•