From: Ben Pfaff Date: Fri, 12 Feb 2010 06:05:55 +0000 (-0800) Subject: FACTOR: Mark translatable string as not a printf format string. X-Git-Tag: v0.7.4~5 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=c74561b1a11c7ee5540336646f1f928bcbb77a05 FACTOR: Mark translatable string as not a printf format string. gettext uses a heuristic to guess whether a translatable string is a printf format string. In this case, it guesses wrong, so add a comment that tells gettext that "% of Variance" is not a format string. Without this change, the translationproject.org robot rejects translations. Reported by fxmiguel@gmail.com. --- diff --git a/src/language/stats/factor.c b/src/language/stats/factor.c index 58d5b868..0679c5f5 100644 --- a/src/language/stats/factor.c +++ b/src/language/stats/factor.c @@ -1184,6 +1184,7 @@ show_explained_variance (const struct cmd_factor * factor, struct idata *idata, for (i = 0; i < (nc - heading_columns) / 3 ; ++i) { tab_text (t, i * 3 + 1, 1, TAB_CENTER | TAT_TITLE, _("Total")); + /* xgettext:no-c-format */ tab_text (t, i * 3 + 2, 1, TAB_CENTER | TAT_TITLE, _("% of Variance")); tab_text (t, i * 3 + 3, 1, TAB_CENTER | TAT_TITLE, _("Cumulative %"));