[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[csv 01/10] i18n: Make a few strings more generic for translators.
From: |
Ben Pfaff |
Subject: |
[csv 01/10] i18n: Make a few strings more generic for translators. |
Date: |
Sun, 8 Aug 2010 10:17:43 -0700 |
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 32202ba..0039089 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 32aea24..14fb70a 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;
}
}
--
1.7.1
- Implementing SAVE TRANSLATE for comma- and tab-separated data, Ben Pfaff, 2010/08/08
- [csv 08/10] DATA LIST: Don't report an error for an empty final field in LIST format., Ben Pfaff, 2010/08/08
- [csv 06/10] DATA LIST: Convert tests to use Autotest., Ben Pfaff, 2010/08/08
- [csv 01/10] i18n: Make a few strings more generic for translators.,
Ben Pfaff <=
- [csv 07/10] DATA LIST: Fix output column reporting for FREE and LIST formats., Ben Pfaff, 2010/08/08
- [csv 04/10] sys-file-writer: Make write_error(), close_writer() static., Ben Pfaff, 2010/08/08
- [csv 10/10] Implement SAVE TRANSLATE to comma- and tab-delimited text formats., Ben Pfaff, 2010/08/08
- [csv 03/10] sys-file-writer: Fix comment., Ben Pfaff, 2010/08/08
- [csv 02/10] Replace S_I[RWX]{USR,GRP,OTH} macros by their values., Ben Pfaff, 2010/08/08
- [csv 09/10] SAVE: Fix UNSELECTED=RETAIN with a filter variable., Ben Pfaff, 2010/08/08
- [csv 05/10] sys-file-writer: Consistently use "goto error" to exit., Ben Pfaff, 2010/08/08