summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-26 14:53:10 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-26 14:53:10 +0200
commit7b3bacf0b9b7d57fdee699c1c0297127f0fcfadc (patch)
treea7a8e95523f15786c7eac8e86ab2b71f4e264fee
parent94f45c0fe81f7f18d65a3d701da1c8448027d8b7 (diff)
Lang: Replaced "bytes" with "num.bytes"
A new string to include the numeric value. IssueID #192
-rw-r--r--po/en.po6
-rw-r--r--res/lang/en.binbin15751 -> 15782 bytes
-rw-r--r--src/ui/documentwidget.c8
3 files changed, 10 insertions, 4 deletions
diff --git a/po/en.po b/po/en.po
index b4385d34..64621034 100644
--- a/po/en.po
+++ b/po/en.po
@@ -270,8 +270,10 @@ msgstr "MB"
270msgid "kb" 270msgid "kb"
271msgstr "KB" 271msgstr "KB"
272 272
273msgid "bytes" 273msgid "num.bytes"
274msgstr "bytes" 274msgid_plural "num.bytes.n"
275msgstr[0] "%zu byte"
276msgstr[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(