diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils.cpp | 1 | ||||
-rw-r--r-- | src/utils/stringutils.h | 2 |
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 |