commit 9519eb0c8851618add97157b4b30cebef2cb1c15
parent 759d3523fc6c5a67a40ccf4e457251dcd592d8e3
Author: Chris Allegretta <chrisa@asty.org>
Date: Thu, 27 Sep 2001 20:46:25 +0000
- 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
Diffstat:
3 files changed, 23 insertions(+), 7 deletions(-)
diff --git 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
@@ -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
@@ -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) {