Commit 837a02b2 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add missing bit from DB's refactoring of do_credits(): translate the

messages in xlcredits[] after they're initialized in order to avoid an
error when compiling with -pedantic


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1746 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 12 additions and 10 deletions
+12 -10
...@@ -214,7 +214,9 @@ CVS code - ...@@ -214,7 +214,9 @@ CVS code -
- Use napms() instead of nanosleep(), as it does the same thing - Use napms() instead of nanosleep(), as it does the same thing
(aside from taking an argument in milliseconds instead of (aside from taking an argument in milliseconds instead of
microseconds) and curses includes it. (DLR) microseconds) and curses includes it. (DLR)
- Overhaul for efficiency. (David Benbennick) - Overhaul for efficiency, and make sure the xlcredits
translations are done after initialization in order to avoid
an error when compiling with -pedantic. (David Benbennick)
- configure.ac: - configure.ac:
- Add tests for isblank() and strcasestr(), and define - Add tests for isblank() and strcasestr(), and define
_GNU_SOURCE so that the tests work properly. Increase the _GNU_SOURCE so that the tests work properly. Increase the
......
...@@ -2750,14 +2750,14 @@ void do_credits(void) ...@@ -2750,14 +2750,14 @@ void do_credits(void)
}; };
const char *xlcredits[XLCREDIT_LEN] = { const char *xlcredits[XLCREDIT_LEN] = {
_("The nano text editor"), "The nano text editor",
_("version"), "version",
_("Brought to you by:"), "Brought to you by:",
_("Special thanks to:"), "Special thanks to:",
_("The Free Software Foundation"), "The Free Software Foundation",
_("For ncurses:"), "For ncurses:",
_("and anyone else we forgot..."), "and anyone else we forgot...",
_("Thank you for using nano!") "Thank you for using nano!"
}; };
curs_set(0); curs_set(0);
...@@ -2780,7 +2780,7 @@ void do_credits(void) ...@@ -2780,7 +2780,7 @@ void do_credits(void)
if (what == NULL) { if (what == NULL) {
assert(0 <= xlpos && xlpos < XLCREDIT_LEN); assert(0 <= xlpos && xlpos < XLCREDIT_LEN);
what = xlcredits[xlpos]; what = _(xlcredits[xlpos]);
xlpos++; xlpos++;
} }
start_x = COLS / 2 - strlen(what) / 2 - 1; start_x = COLS / 2 - strlen(what) / 2 - 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment