1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

core: add comments in translations for file size units

This commit is contained in:
Sébastien Helleu
2014-07-25 20:40:38 +02:00
parent 16874bd4ec
commit db01880bd1
13 changed files with 72 additions and 14 deletions
+12 -2
View File
@@ -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];