From 9519eb0c8851618add97157b4b30cebef2cb1c15 Mon Sep 17 00:00:00 2001
From: Chris Allegretta <chrisa@asty.org>
Date: Thu, 27 Sep 2001 20:46:25 +0000
Subject: [PATCH] - files.c: do_writeout() - Expanded strings to not use %s and
 ?: to determine write/append string to be nice to translators

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@791 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog   |  4 ++++
 config.h.in |  2 +-
 files.c     | 24 ++++++++++++++++++------
 3 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2ca6c9da..3c2056d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,10 @@ CVS code -
 	  New functions do_find_bracket(), changes to findnextstr(),
 	  command is Meta-] (hope you dont mind since I already sold off
 	  Meta-O to the MacOS file code Ken...)
+- files.c:
+  do_writeout()
+	- Expanded strings to not use %s and ?: to determine
+	  write/append string to be nice to translators.
 - nano.c:
   main()
 	- Added vars oldcurrent and oldcurrent_x to check whether cursor
diff --git a/config.h.in b/config.h.in
index 02ba1537..7fcb8da2 100644
--- a/config.h.in
+++ b/config.h.in
@@ -1,4 +1,4 @@
-/* config.h.in.  Generated automatically from configure.in by autoheader 2.13.  */
+/* config.h.in.  Generated automatically from configure.in by autoheader.  */
 
 /* Define if using alloca.c.  */
 #undef C_ALLOCA
diff --git a/files.c b/files.c
index c4b615b1..bdd037e0 100644
--- a/files.c
+++ b/files.c
@@ -1284,14 +1284,26 @@ int do_writeout(char *path, int exiting, int append)
     }
 
     while (1) {
+
+	/* Be nice to the translation folks */
 #ifndef NANO_SMALL
-	if (ISSET(MARK_ISSET) && !exiting)
-	    i = statusq(1, writefile_list, WRITEFILE_LIST_LEN, "",
-		    _("%s Selection to File"), append ? _("Append") : _("Write"));
-	else
+	if (ISSET(MARK_ISSET) && !exiting) {
+	    if (append)
+		i = statusq(1, writefile_list, WRITEFILE_LIST_LEN, "",
+		    _("Append Selection to File"));
+	    else
+		i = statusq(1, writefile_list, WRITEFILE_LIST_LEN, "",
+		    _("Write Selection to File"));
+	} else {
 #endif
-	    i = statusq(1, writefile_list, WRITEFILE_LIST_LEN, answer,
-		    _("File Name to %s"), append ? _("Append") : _("Write"));
+	    if (append)
+		i = statusq(1, writefile_list, WRITEFILE_LIST_LEN, answer,
+		    _("File Name to Append"));
+	    else
+		i = statusq(1, writefile_list, WRITEFILE_LIST_LEN, answer,
+		    _("File Name to Write"));
+
+	}
 
 	if (i != -1) {
 
-- 
GitLab