Add translator notes, resolves #5081.

[ci skip]
This commit is contained in:
Wedge009 2020-08-20 11:00:58 +10:00
parent cef77a51df
commit c69877faa6

View File

@ -566,6 +566,7 @@ std::string si_string(double input, bool base2, const std::string& unit) {
strings9 tmp { {
"",
(base2 ?
// TRANSLATORS: Translate the K in KiB only
_("prefix_kibi^K") :
_("prefix_kilo^k")
),
@ -589,6 +590,7 @@ std::string si_string(double input, bool base2, const std::string& unit) {
si_string_impl_stream_write(ss, input);
ss << ' '
<< *prefix
// TRANSLATORS: Translate the i in (for example) KiB only
<< (base2 && (!(*prefix).empty()) ? _("infix_binary^i") : "")
<< unit;
return ss.str();