[gnumeric] use ngettext
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] use ngettext
- Date: Sat, 12 Feb 2011 06:22:52 +0000 (UTC)
commit 4967f740df8b289507c5adf9eebe8c53cd8a8b3f
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Fri Feb 11 23:25:31 2011 -0700
use ngettext
2011-02-08 Andreas J. Guelzow <aguelzow pyrshep ca>
* paradox.c (paradox_file_save): use ngettext
plugins/paradox/ChangeLog | 4 ++++
plugins/paradox/paradox.c | 15 ++++++++++++---
2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/plugins/paradox/ChangeLog b/plugins/paradox/ChangeLog
index 47536e6..9699529 100644
--- a/plugins/paradox/ChangeLog
+++ b/plugins/paradox/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-08 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * paradox.c (paradox_file_save): use ngettext
+
2011-02-02 Morten Welinder <terra gnome org>
* Release 1.10.13
diff --git a/plugins/paradox/paradox.c b/plugins/paradox/paradox.c
index 86ebe6d..043e824 100644
--- a/plugins/paradox/paradox.c
+++ b/plugins/paradox/paradox.c
@@ -528,9 +528,18 @@ paradox_file_save (GOFileSaver const *fs, GOIOContext *io_context,
}
case pxfAlpha: {
char *value = fieldstr;
- if ((int)strlen (value) > pxf[i].px_flen) {
- g_warning (_("Field %d in line %d has possibly been cut off. Data has %d chars."), i+1, row+1, strlen (value));
- }
+ int nlen = strlen (value);
+ if (nlen > pxf[i].px_flen)
+ /* xgettext : last %d gives the number of characters.*/
+ /* This is input to ngettext. */
+ g_warning
+ (ngettext
+ ("Field %d in line %d has possibly "
+ "been cut off. Data has %d character.",
+ "Field %d in line %d has possibly "
+ "been cut off. Data has %d characters.",
+ nlen),
+ i+1, row+1, nlen);
PX_put_data_alpha (pxdoc, &data[offset], pxf[i].px_flen, value);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]