summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-04 15:44:31 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-04 16:24:42 +0300
commitbc2c095db69be01837d07af1151b0f0a3061713f (patch)
tree98009b4483d873f45f7b4f2897a4a7ba5118d39e /src/utils
parent9b5b48739b62fca4bb30cd04be1031ac3f80095d (diff)
downloadplus-bc2c095db69be01837d07af1151b0f0a3061713f.tar.gz
plus-bc2c095db69be01837d07af1151b0f0a3061713f.tar.bz2
plus-bc2c095db69be01837d07af1151b0f0a3061713f.tar.xz
plus-bc2c095db69be01837d07af1151b0f0a3061713f.zip
Add missing TRANSLATORS comments to translation strings.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils.cpp1
-rw-r--r--src/utils/stringutils.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 3e656330b..8b616d2f7 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -954,6 +954,7 @@ std::string timeDiffToString(int timeDiff)
}
if (str.empty())
{
+ // TRANSLATORS: uptime command
str.append(strprintf(ngettext(N_("%d second"), N_("%d seconds"),
0), 0));
}
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index 2f192c98c..310bbc957 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -101,8 +101,6 @@ const char *ipToString(const uint32_t address) A_WARN_UNUSED;
*/
std::string strprintf(const char *const format, ...) A_NONNULL(1) A_WARN_UNUSED
#ifdef __GNUC__
- /* This attribute is nice: it even works through gettext invokation. For
- example, gcc will complain that strprintf(_("%s"), 42) is ill-formed. */
#ifdef __OpenBSD__
__attribute__((__format__(printf, 1, 2)))
#else