1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

irc: fix ambiguity on translation of word "server"

This fixes the following warning:

/usr/bin/xgettext: warning: msgid 'server' is used without plural and with plural.
                            ./src/plugins/irc/irc-bar-item.c:136: Here is the occurrence without plural.
                            ./src/plugins/irc/irc.c:154: Here is the occurrence with plural.
                            Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.
This commit is contained in:
Sébastien Helleu
2021-01-02 15:18:26 +01:00
parent 470e3ef9cf
commit b8acaf8a14
14 changed files with 230 additions and 105 deletions
+6 -4
View File
@@ -146,12 +146,14 @@ irc_signal_upgrade_cb (const void *pointer, void *data,
weechat_printf (
NULL,
/* TRANSLATORS: "%s" after "%d" is "server" or "servers" */
_("%s%s: disconnected from %d %s (SSL connection not supported "
"with upgrade)"),
NG_("%s%s: disconnected from %d server "
"(SSL connection not supported with upgrade)",
"%s%s: disconnected from %d servers "
"(SSL connection not supported with upgrade)",
ssl_disconnected),
weechat_prefix ("error"),
IRC_PLUGIN_NAME,
ssl_disconnected,
NG_("server", "servers", ssl_disconnected));
ssl_disconnected);
}
return WEECHAT_RC_OK;