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