X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2Fhelpers.c;h=17fc3182253369ef9177a29f186b04355cc15639;hb=173d1687aea88e0e5e1b1d8615ed68ebefb15d08;hp=7e9e1d6cb542f8b15216c31fe8d9e90788609259;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp diff --git a/src/language/expressions/helpers.c b/src/language/expressions/helpers.c index 7e9e1d6cb5..17fc318225 100644 --- a/src/language/expressions/helpers.c +++ b/src/language/expressions/helpers.c @@ -179,9 +179,11 @@ recognize_unit (struct substring name, enum date_unit *unit) return true; } - msg (SE, _("Unrecognized date unit \"%.*s\". " - "Valid date units are \"years\", \"quarters\", \"months\", " - "\"weeks\", \"days\", \"hours\", \"minutes\", and \"seconds\"."), + /* TRANSLATORS: Don't translate the the actual unit names `weeks', `days' etc + They must remain in their original English. */ + msg (SE, _("Unrecognized date unit `%.*s'. " + "Valid date units are `years', `quarters', `months', " + "`weeks', `days', `hours', `minutes', and `seconds'."), (int) ss_length (name), ss_data (name)); return false; } @@ -330,7 +332,7 @@ recognize_method (struct substring method_name, enum date_sum_method *method) else { msg (SE, _("Invalid DATESUM method. " - "Valid choices are \"closest\" and \"rollover\".")); + "Valid choices are `closest' and `rollover'.")); return false; } } @@ -404,7 +406,7 @@ expr_date_sum (double date, double quantity, struct substring unit_name, } int -compare_string (const struct substring *a, const struct substring *b) +compare_string_3way (const struct substring *a, const struct substring *b) { size_t i;