From bc2c095db69be01837d07af1151b0f0a3061713f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Jan 2016 15:44:31 +0300 Subject: Add missing TRANSLATORS comments to translation strings. --- src/utils/stringutils.cpp | 1 + src/utils/stringutils.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/utils') 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 -- cgit v1.2.3-70-g09d2