diff options
-rw-r--r-- | po/en.po | 6 | ||||
-rw-r--r-- | res/lang/en.bin | bin | 15751 -> 15782 bytes | |||
-rw-r--r-- | src/ui/documentwidget.c | 8 |
3 files changed, 10 insertions, 4 deletions
@@ -270,8 +270,10 @@ msgstr "MB" | |||
270 | msgid "kb" | 270 | msgid "kb" |
271 | msgstr "KB" | 271 | msgstr "KB" |
272 | 272 | ||
273 | msgid "bytes" | 273 | msgid "num.bytes" |
274 | msgstr "bytes" | 274 | msgid_plural "num.bytes.n" |
275 | msgstr[0] "%zu byte" | ||
276 | msgstr[1] "%zu bytes" | ||
275 | 277 | ||
276 | # strftime() formatted, split on two lines | 278 | # strftime() formatted, split on two lines |
277 | #, c-format | 279 | #, c-format |
diff --git a/res/lang/en.bin b/res/lang/en.bin index 67ee046e..f408cef4 100644 --- a/res/lang/en.bin +++ b/res/lang/en.bin | |||
Binary files differ | |||
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 88016b1c..f6b68034 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -1624,12 +1624,16 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
1624 | } | 1624 | } |
1625 | iString *msg = collectNew_String(); | 1625 | iString *msg = collectNew_String(); |
1626 | if (isEmpty_String(&d->sourceHeader)) { | 1626 | if (isEmpty_String(&d->sourceHeader)) { |
1627 | appendFormat_String(msg, "%s\n%zu ${bytes}\n", cstr_String(meta), size_Block(&d->sourceContent)); | 1627 | appendFormat_String(msg, |
1628 | "%s\n%s\n", | ||
1629 | cstr_String(meta), | ||
1630 | formatCStrs_Lang("num.bytes.n", size_Block(&d->sourceContent))); | ||
1628 | } | 1631 | } |
1629 | else { | 1632 | else { |
1630 | appendFormat_String(msg, "%s\n", cstr_String(&d->sourceHeader)); | 1633 | appendFormat_String(msg, "%s\n", cstr_String(&d->sourceHeader)); |
1631 | if (size_Block(&d->sourceContent)) { | 1634 | if (size_Block(&d->sourceContent)) { |
1632 | appendFormat_String(msg, "%zu ${bytes}\n", size_Block(&d->sourceContent)); | 1635 | appendFormat_String( |
1636 | msg, "%s\n", formatCStrs_Lang("num.bytes.n", size_Block(&d->sourceContent))); | ||
1633 | } | 1637 | } |
1634 | } | 1638 | } |
1635 | appendFormat_String( | 1639 | appendFormat_String( |