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
}
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) {