Browse Source

Fix: missing localization for "A moderator" label.

John Livingston 11 months ago
parent
commit
9ddf6e7b7a
2 changed files with 5 additions and 1 deletions
  1. 4 0
      src/i18n/converse.pot
  2. 1 1
      src/shared/chat/message.js

+ 4 - 0
src/i18n/converse.pot

@@ -1134,6 +1134,10 @@ msgstr ""
 msgid "Show less"
 msgstr ""
 
+#: dist/converse-no-dependencies.js:75630
+msgid "A moderator"
+msgstr ""
+
 #: dist/converse-no-dependencies.js:84900
 #: dist/converse-no-dependencies.js:84902
 #, javascript-format

+ 1 - 1
src/shared/chat/message.js

@@ -203,7 +203,7 @@ export default class Message extends CustomElement {
                     chatbox.occupants.findOccupant({'jid': retracted_by_mod}) ||
                     chatbox.occupants.findOccupant({'nick': Strophe.getResourceFromJid(retracted_by_mod)});
             }
-            const modname = this.model.mod ? this.model.mod.getDisplayName() : 'A moderator';
+            const modname = this.model.mod ? this.model.mod.getDisplayName() : __('A moderator');
             return __('%1$s has removed this message', modname);
         } else {
             return __('%1$s has removed this message', this.model.getDisplayName());