mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Add plural form support for multiselection page title (close #8026)
This commit is contained in:
+3
-1
@@ -22,7 +22,9 @@ en:
|
||||
context: "{base} – {context}"
|
||||
changes: "({changes}) {base}"
|
||||
changes_context: "({changes}) {base} – {context}"
|
||||
labeled_and_more: "{labeled} and {count} more"
|
||||
labeled_and_more:
|
||||
one: "{labeled} and {count} more"
|
||||
other: "{labeled} and {count} more"
|
||||
modes:
|
||||
add_area:
|
||||
title: Area
|
||||
|
||||
Vendored
+4
-1
@@ -26,7 +26,10 @@
|
||||
"changes": "({changes}) {base}",
|
||||
"changes_context": "({changes}) {base} – {context}"
|
||||
},
|
||||
"labeled_and_more": "{labeled} and {count} more"
|
||||
"labeled_and_more": {
|
||||
"one": "{labeled} and {count} more",
|
||||
"other": "{labeled} and {count} more"
|
||||
}
|
||||
},
|
||||
"modes": {
|
||||
"add_area": {
|
||||
|
||||
@@ -62,7 +62,7 @@ export function behaviorHash(context) {
|
||||
if (selected.length > 1 ) {
|
||||
contextual = t('title.labeled_and_more', {
|
||||
labeled: firstLabel,
|
||||
count: (selected.length - 1).toString()
|
||||
count: selected.length - 1
|
||||
});
|
||||
} else {
|
||||
contextual = firstLabel;
|
||||
|
||||
Reference in New Issue
Block a user