From ab8ea0f3cbbc081cb2160e94b4129e15e2e6cd5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 16 Aug 2014 11:37:43 +0200 Subject: [PATCH] irc: fix translation of CTCP PING reply (closes #137) --- ChangeLog.asciidoc | 1 + po/cs.po | 12 +++++++---- po/de.po | 12 +++++++---- po/es.po | 12 +++++++---- po/fr.po | 12 +++++++---- po/hu.po | 9 +++++++-- po/it.po | 12 +++++++---- po/ja.po | 34 +++++++++++++++++-------------- po/pl.po | 12 +++++++---- po/pt_BR.po | 12 +++++++---- po/ru.po | 9 +++++++-- po/tr.po | 8 +++++--- po/weechat.pot | 5 +++-- src/plugins/irc/irc-ctcp.c | 41 ++++++++++++++++---------------------- 14 files changed, 115 insertions(+), 76 deletions(-) diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index ea6a58708..a7094cc37 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -20,6 +20,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] * tests: fix memory leak in tests launcher * aspell: fix crash with command "/aspell addword" if no word is given (closes #164, closes #165) +* irc: fix translation of CTCP PING reply (closes #137) == Version 1.0 (2014-08-15) diff --git a/po/cs.po b/po/cs.po index 1f81cd20a..dc9e614b8 100644 --- a/po/cs.po +++ b/po/cs.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-02 16:12+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -7261,9 +7261,10 @@ msgstr "%sCTCP požadavek od %s%s%s: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (blokováno)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%sCTCP odpověď od %s%s%s: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%sCTCP odpověď od %s%s%s: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -10740,3 +10741,6 @@ msgstr "%s%s: nemohu nastavit \"neblokovaci\" volbu na soket" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: vypršel časový limit \"%s\" pro %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%sCTCP odpověď od %s%s%s: %s%s%s %ld.%ld %s" diff --git a/po/de.po b/po/de.po index 659fdec88..0e63dd49f 100644 --- a/po/de.po +++ b/po/de.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-07-25 20:37+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 09:12+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -8347,9 +8347,10 @@ msgstr "%sCTCP angefordert von %s%s%s: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (unterdrückt)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%sCTCP Antwort von %s%s%s: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%sCTCP Antwort von %s%s%s: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -12108,3 +12109,6 @@ msgstr "" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: Zeitüberschreitung für \"%s\" mit %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%sCTCP Antwort von %s%s%s: %s%s%s %ld.%ld %s" diff --git a/po/es.po b/po/es.po index 8ae5581ed..3c2ce498f 100644 --- a/po/es.po +++ b/po/es.po @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-07-25 20:37+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -7551,9 +7551,10 @@ msgstr "%sCTCP solicitado por %s%s%s: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (bloqueado)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%srespuesta CTCP de %s%s%s: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%srespuesta CTCP de %s%s%s: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -11023,3 +11024,6 @@ msgstr "%s%s: no es posible configurar la opción \"nonblock\" para el socket" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: tiempo de espera máximo para \"%s\" con %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%srespuesta CTCP de %s%s%s: %s%s%s %ld.%ld %s" diff --git a/po/fr.po b/po/fr.po index 92af4cdd3..207f80921 100644 --- a/po/fr.po +++ b/po/fr.po @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-07-25 20:37+0200\n" -"PO-Revision-Date: 2014-07-25 07:49+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" +"PO-Revision-Date: 2014-08-16 11:31+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" "Language: fr\n" @@ -8141,9 +8141,10 @@ msgstr "%sCTCP demandé par %s%s%s : %s%s%s%s%s%s" msgid " (blocked)" msgstr " (bloqué)" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") #, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%sRéponse CTCP de %s%s%s : %s%s%s %ld.%ld %s" +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%sRéponse CTCP de %s%s%s : %s%s%s %.3fs" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -11861,3 +11862,6 @@ msgstr "" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s : délai d'attente dépassé pour \"%s\" avec %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%sRéponse CTCP de %s%s%s : %s%s%s %ld.%ld %s" diff --git a/po/hu.po b/po/hu.po index efc0517d0..efa173d8c 100644 --- a/po/hu.po +++ b/po/hu.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-02 16:12+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -6710,8 +6710,9 @@ msgstr "%s%s%s eltávolította %s%s%s-t a szerverről" msgid " (blocked)" msgstr "a felhasználók le lettek tiltva" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") #, fuzzy, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" msgstr "CTCP %sPING%s válasz %s%s%s felhasználótól: %ld.%ld másodperc\n" #, fuzzy, c-format @@ -10125,3 +10126,7 @@ msgstr "%s DCC: nem sikerült 'nonblock' opciót beállítani a csatornán\n" #, fuzzy, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s hiányzó argumentum a(z) \"%s\" opciónak\n" + +#, fuzzy +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "CTCP %sPING%s válasz %s%s%s felhasználótól: %ld.%ld másodperc\n" diff --git a/po/it.po b/po/it.po index 652eae4ab..31cfd6054 100644 --- a/po/it.po +++ b/po/it.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-07-25 20:37+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -7710,9 +7710,10 @@ msgstr "%sCTCP richiesto da %s%s%s: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (bloccato)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%sRisposta CTCP da %s%s%s: %s%s%s %ld,%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%sRisposta CTCP da %s%s%s: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -11194,3 +11195,6 @@ msgstr "" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: timeout per \"%s\" con %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%sRisposta CTCP da %s%s%s: %s%s%s %ld,%ld %s" diff --git a/po/ja.po b/po/ja.po index c2880bd05..d0bcf49d9 100644 --- a/po/ja.po +++ b/po/ja.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-02 16:12+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-08-03 00:32+0900\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -40,11 +40,11 @@ msgid "max chars" msgstr "最大文字数" msgid "" -"a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)" -"green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal " -"color number or an alias; attributes are allowed before color (for text " -"color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" for " -"italic, \"_\" for underline" +"a WeeChat color name (default, black, (dark)gray, white, (light)red, " +"(light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a " +"terminal color number or an alias; attributes are allowed before color (for " +"text color only, not background): \"*\" for bold, \"!\" for reverse, \"/\" " +"for italic, \"_\" for underline" msgstr "" "WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、" "brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号ま" @@ -5882,8 +5882,8 @@ msgstr "" " - 内部サーバ名 (/server add で作成されたもの、利用推奨)\n" " - ホスト名/ポート番号、又は IP アドレス/ポート番号 (これは一時的" "サーバを作る)、デフォルトのポート番号は 6667\n" -" - 次のフォーマットに従う URL: irc[6][s]://[nickname[:password]@]" -"irc.example.org[:port][/#channel1][,#channel2[...]]\n" +" - 次のフォーマットに従う URL: irc[6][s]://[nickname[:" +"password]@]irc.example.org[:port][/#channel1][,#channel2[...]]\n" " option: サーバに関するオプション (ブール型オプションでは、value は無視さ" "れる)\n" " nooption: ブール型オプションを 'off' にする (例: -nossl)\n" @@ -7809,9 +7809,10 @@ msgstr "%s%s%s%s からの CTCP 要求: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (ブロック)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%s%s%s%s からの CTCP 応答: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%s%s%s%s からの CTCP 応答: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -10769,8 +10770,8 @@ msgid "" "Examples (you can also look at default triggers with /trigger listdefault):\n" " add text attributes *bold*, _underline_ and /italic/ (only in user " "messages):\n" -" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*" -"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" +" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==" +"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" "underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-" "italic}/\"\n" " hide nicklist bar on small terminals:\n" @@ -10844,8 +10845,8 @@ msgstr "" "\n" "例 (/trigger listdefault でデフォルトトリガを見ることができます):\n" " テキスト属性 *太字*、_下線_、/イタリック/ を追加 (ユーザメッセージのみ):\n" -" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==\\*" -"(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" +" /trigger add effects modifier weechat_print \"${tg_tag_nick}\" \"==" +"\\*(\\S+)\\*==*${color:bold}$1${color:-bold}*== ==_(\\S+)_==_${color:" "underline}$1${color:-underline}_== ==/(\\S+)/==/${color:italic}$1${color:-" "italic}/\"\n" " 狭い端末ではニックネームリストバーを隠す:\n" @@ -11408,3 +11409,6 @@ msgstr "%s%s: ソケットにオプション \"nonblock\" を設定できませ #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: \"%s\" のタイムアウト %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%s%s%s%s からの CTCP 応答: %s%s%s %ld.%ld %s" diff --git a/po/pl.po b/po/pl.po index e7442ac40..fdae4e003 100644 --- a/po/pl.po +++ b/po/pl.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-07-25 20:37+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-08-13 21:27+0100\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -7978,9 +7978,10 @@ msgstr "%sCTCP zażądane przez %s%s%s: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (zablokowane)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%sOdpowiedź CTCP od %s%s%s: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%sOdpowiedź CTCP od %s%s%s: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -11619,3 +11620,6 @@ msgstr "%s%s: nie można ustawić opcji \"nonblock\" dla gniazda: błąd %d %s" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: przekroczono czas na \"%s\" z %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%sOdpowiedź CTCP od %s%s%s: %s%s%s %ld.%ld %s" diff --git a/po/pt_BR.po b/po/pt_BR.po index a00a8170d..298fa5b5f 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-02 16:12+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-14 18:44+0200\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -6970,9 +6970,10 @@ msgstr "%sCTCP requisitado por %s%s%s: %s%s%s%s%s%s" msgid " (blocked)" msgstr " (bloqueado)" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" -msgstr "%sresposta CTCP de %s%s%s: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" +msgstr "%sresposta CTCP de %s%s%s: %s%s%s%s%s" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" @@ -10387,3 +10388,6 @@ msgstr "%s%s: não foi possível setar opção \"nonblock\" para o socket" #, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s%s: tempo esgotado para \"%s\" com %s" + +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "%sresposta CTCP de %s%s%s: %s%s%s %ld.%ld %s" diff --git a/po/ru.po b/po/ru.po index c48d664b9..0809af290 100644 --- a/po/ru.po +++ b/po/ru.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-02 16:12+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 07:50+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti \n" "Language-Team: weechat-dev \n" @@ -6738,8 +6738,9 @@ msgstr "%s%s%s убил %s%s%s" msgid " (blocked)" msgstr "команда users отключена" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") #, fuzzy, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" msgstr "Ответ на %sPING%s от %s%s%s: %ld.%ld секунд\n" #, fuzzy, c-format @@ -10147,3 +10148,7 @@ msgstr "%s DCC: не могу установить неблокирующий р #, fuzzy, c-format msgid "%s%s: timeout for \"%s\" with %s" msgstr "%s нет аргумента для параметра \"%s\"\n" + +#, fuzzy +#~ msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#~ msgstr "Ответ на %sPING%s от %s%s%s: %ld.%ld секунд\n" diff --git a/po/tr.po b/po/tr.po index 7bd7c1367..7c1d4d3fc 100644 --- a/po/tr.po +++ b/po/tr.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-02 16:12+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-07-25 07:50+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -5999,9 +5999,11 @@ msgstr "" msgid " (blocked)" msgstr "" -#, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") +#, fuzzy, c-format +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" msgstr "" +"%sKanal %s%s%s: %s%d%s %s %s(%s%d%s %s, %s%d%s %s, %s%d%s %s, %s%d%s %s%s)" #, c-format msgid "%sCTCP reply from %s%s%s: %s%s%s%s%s" diff --git a/po/weechat.pot b/po/weechat.pot index af2a36e25..da64d1a2c 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-08-16 09:05+0200\n" +"POT-Creation-Date: 2014-08-16 11:34+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -5937,8 +5937,9 @@ msgstr "" msgid " (blocked)" msgstr "" +#. TRANSLATORS: %.3fs is a float number + "s" ("seconds") #, c-format -msgid "%sCTCP reply from %s%s%s: %s%s%s %ld.%ld %s" +msgid "%sCTCP reply from %s%s%s: %s%s%s %.3fs" msgstr "" #, c-format diff --git a/src/plugins/irc/irc-ctcp.c b/src/plugins/irc/irc-ctcp.c index 510d07633..4a2d298fb 100644 --- a/src/plugins/irc/irc-ctcp.c +++ b/src/plugins/irc/irc-ctcp.c @@ -155,6 +155,7 @@ irc_ctcp_display_reply_from_nick (struct t_irc_server *server, time_t date, char *pos_end, *pos_space, *pos_args, *pos_usec; struct timeval tv; long sec1, usec1, sec2, usec2, difftime; + float seconds; while (arguments && arguments[0]) { @@ -186,30 +187,22 @@ irc_ctcp_display_reply_from_nick (struct t_irc_server *server, time_t date, difftime = ((sec2 * 1000000) + usec2) - ((sec1 * 1000000) + usec1); - weechat_printf_date_tags (irc_msgbuffer_get_target_buffer (server, - nick, - NULL, - "ctcp", - NULL), - date, - irc_protocol_tags (command, - "irc_ctcp", - NULL, NULL), - _("%sCTCP reply from %s%s%s: %s%s%s " - "%ld.%ld %s"), - weechat_prefix ("network"), - irc_nick_color_for_message (server, - NULL, - nick), - nick, - IRC_COLOR_RESET, - IRC_COLOR_CHAT_CHANNEL, - arguments + 1, - IRC_COLOR_RESET, - difftime / 1000000, - (difftime % 1000000) / 1000, - (NG_("second", "seconds", - (difftime / 1000000)))); + seconds = (float)difftime / 1000000.0; + weechat_printf_date_tags ( + irc_msgbuffer_get_target_buffer (server, nick, NULL, + "ctcp", NULL), + date, + irc_protocol_tags (command, "irc_ctcp", NULL, NULL), + /* TRANSLATORS: %.3fs is a float number + "s" ("seconds") */ + _("%sCTCP reply from %s%s%s: %s%s%s %.3fs"), + weechat_prefix ("network"), + irc_nick_color_for_message (server, NULL, nick), + nick, + IRC_COLOR_RESET, + IRC_COLOR_CHAT_CHANNEL, + arguments + 1, + IRC_COLOR_RESET, + seconds); pos_usec[0] = ' '; }