From 9a507f96979c87bd3be7774e802225c6eea12a23 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 1 Aug 2010 21:19:50 -0700 Subject: [PATCH] i18n: Make a few strings more generic for translators. This should reduce the amount of work required by translators, by reducing the number of unique strings to be translated. --- src/language/data-io/get-data.c | 6 +++--- src/language/data-io/get.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/language/data-io/get-data.c b/src/language/data-io/get-data.c index 32202babde..0039089188 100644 --- a/src/language/data-io/get-data.c +++ b/src/language/data-io/get-data.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. + Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -312,7 +312,7 @@ parse_get_txt (struct lexer *lexer, struct dataset *ds) DP_DELIMITED, &has_type); else { - lex_error (lexer, _("expecting FIXED or DELIMITED")); + lex_error (lexer, _("expecting %s or %s"), "FIXED", "DELIMITED"); goto error; } if (!ok) @@ -350,7 +350,7 @@ parse_get_txt (struct lexer *lexer, struct dataset *ds) } else { - lex_error (lexer, _("expecting LINE or VARIABLES")); + lex_error (lexer, _("expecting %s or %s"), "LINE", "VARIABLES"); goto error; } } diff --git a/src/language/data-io/get.c b/src/language/data-io/get.c index 32aea2476c..14fb70a40f 100644 --- a/src/language/data-io/get.c +++ b/src/language/data-io/get.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2007, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -96,7 +96,7 @@ parse_read_command (struct lexer *lexer, struct dataset *ds, enum reader_command type = PFM_TAPE; else { - lex_error (lexer, _("expecting COMM or TAPE")); + lex_error (lexer, _("expecting %s or %s"), "COMM", "TAPE"); goto error; } } -- 2.30.2