diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-26 14:53:10 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-26 14:53:10 +0200 |
commit | 7b3bacf0b9b7d57fdee699c1c0297127f0fcfadc (patch) | |
tree | a7a8e95523f15786c7eac8e86ab2b71f4e264fee /src/ui/documentwidget.c | |
parent | 94f45c0fe81f7f18d65a3d701da1c8448027d8b7 (diff) |
Lang: Replaced "bytes" with "num.bytes"
A new string to include the numeric value.
IssueID #192
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 8 |
1 files changed, 6 insertions, 2 deletions
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( |