Do not append name suffix when empty

issue10662
review346771002
This commit is contained in:
Cédric Krier committed 2021-09-02 23:58:58 +02:00
1 parent a8606b92f1
commit 48533a76d2
1 file changed
+5 -1
+5 -1
View File
@@ -46,7 +46,11 @@
if (data.ids.length > ids.length) {
name_suffix += Sao.i18n.gettext(',...');
}
return Sao.i18n.gettext('%1 (%2)', name, name_suffix);
if (name_suffix) {
return Sao.i18n.gettext('%1 (%2)', name, name_suffix);
} else {
return name;
}
});
}
data.action_id = action.id;