From db01880bd18af193013e001c64ae40df130cd0de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 25 Jul 2014 20:40:38 +0200 Subject: [PATCH] core: add comments in translations for file size units --- po/cs.po | 6 +++++- po/de.po | 6 +++++- po/es.po | 6 +++++- po/fr.po | 6 +++++- po/hu.po | 6 +++++- po/it.po | 6 +++++- po/ja.po | 6 +++++- po/pl.po | 6 +++++- po/pt_BR.po | 6 +++++- po/ru.po | 6 +++++- po/tr.po | 6 +++++- po/weechat.pot | 6 +++++- src/core/wee-string.c | 14 ++++++++++++-- 13 files changed, 72 insertions(+), 14 deletions(-) diff --git a/po/cs.po b/po/cs.po index 6e628bb2b..87519c46e 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-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Jiri Golembiovsky \n" "Language-Team: weechat-dev \n" @@ -3903,15 +3903,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/de.po b/po/de.po index dfebcce06..dbdc8e4df 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-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 09:12+0100\n" "Last-Translator: Nils Görs \n" "Language-Team: German \n" @@ -4577,15 +4577,19 @@ msgstr "" msgid "No secured data set" msgstr "keine schutzwürdigen Daten definiert" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "TB" diff --git a/po/es.po b/po/es.po index 5baecd1d5..850c9b2f9 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-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Elián Hanisch \n" "Language-Team: weechat-dev \n" @@ -4114,15 +4114,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/fr.po b/po/fr.po index 24845d15c..2b238d651 100644 --- a/po/fr.po +++ b/po/fr.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-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Sébastien Helleu \n" "Language-Team: weechat-dev \n" @@ -4478,15 +4478,19 @@ msgstr "" msgid "No secured data set" msgstr "Pas de donnée sécurisée définie" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "Ko" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "Mo" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "Go" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "To" diff --git a/po/hu.po b/po/hu.po index 955d8c380..dde6f55e4 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-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Andras Voroskoi \n" "Language-Team: weechat-dev \n" @@ -3525,15 +3525,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/it.po b/po/it.po index 827aa1a71..d3c061ca5 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-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:49+0200\n" "Last-Translator: Esteban I. Ruiz Moreno \n" "Language-Team: weechat-dev \n" @@ -4237,15 +4237,19 @@ msgstr "" msgid "No secured data set" msgstr "Dati sicuri non configurati" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/ja.po b/po/ja.po index 9a718f3e4..169071845 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-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:50+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke \n" "Language-Team: Japanese \n" @@ -4289,15 +4289,19 @@ msgstr "" msgid "No secured data set" msgstr "保護データが設定されていません" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "キロバイト" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "メガバイト" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "ギガバイト" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/pl.po b/po/pl.po index ba60dc510..407fedaf7 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-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:50+0200\n" "Last-Translator: Krzysztof Korościk \n" "Language-Team: weechat-dev \n" @@ -4359,15 +4359,19 @@ msgstr "" msgid "No secured data set" msgstr "Brak zabezpieczonych danych" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index a41721356..3149792ef 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-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-14 18:44+0200\n" "Last-Translator: Sergio Durigan Junior \n" "Language-Team: weechat-dev \n" @@ -4005,15 +4005,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/ru.po b/po/ru.po index edde176a4..db654326a 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-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+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" @@ -3554,15 +3554,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "КБ" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "МБ" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "ГБ" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/tr.po b/po/tr.po index a87bdab1b..0db7162e2 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-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2014-07-25 07:50+0200\n" "Last-Translator: Hasan Kiran \n" "Language-Team: weechat-dev \n" @@ -3167,15 +3167,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "KB" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "MB" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "GB" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 1f38631ad..b36624e06 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.4.1-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2014-07-24 22:41+0200\n" +"POT-Creation-Date: 2014-07-25 20:37+0200\n" "PO-Revision-Date: 2013-02-14 18:20+0100\n" "Last-Translator: FULL NAME \n" "Language-Team: weechat-dev \n" @@ -3166,15 +3166,19 @@ msgstr "" msgid "No secured data set" msgstr "" +#. TRANSLATORS: file size unit "kilobyte" msgid "KB" msgstr "" +#. TRANSLATORS: file size unit "megabyte" msgid "MB" msgstr "" +#. TRANSLATORS: file size unit "gigabyte" msgid "GB" msgstr "" +#. TRANSLATORS: file size unit "terabyte" msgid "TB" msgstr "" diff --git a/src/core/wee-string.c b/src/core/wee-string.c index a0edc34ac..72e7dd6ac 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -2274,9 +2274,19 @@ string_iconv_fprintf (FILE *file, const char *data, ...) char * string_format_size (unsigned long long size) { - char *unit_name[] = { "", N_("KB"), N_("MB"), N_("GB"), N_("TB") }; + char *unit_name[] = { "", + /* TRANSLATORS: file size unit "kilobyte" */ + N_("KB"), + /* TRANSLATORS: file size unit "megabyte" */ + N_("MB"), + /* TRANSLATORS: file size unit "gigabyte" */ + N_("GB"), + /* TRANSLATORS: file size unit "terabyte" */ + N_("TB") }; char *unit_format[] = { "%.0f", "%.1f", "%.02f", "%.02f", "%.02f" }; - float unit_divide[] = { 1.0, 1000.0, 1000.0 * 1000.0, + float unit_divide[] = { 1.0, + 1000.0, + 1000.0 * 1000.0, 1000.0 * 1000.0 * 1000.0, 1000.0 * 1000.0 * 1000.0 * 1000.0 }; char format_size[128], str_size[128];