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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user