tweaks: improve a translator hint and some other comments

master
Benno Schulenberg 2018-09-02 13:02:50 +02:00
parent c7affe17c0
commit 9e71de12cd
2 changed files with 4 additions and 5 deletions

View File

@ -619,7 +619,7 @@ void mention_name_and_linecount(void)
(openfile->filebot->data[0] == '\0' ? 1 : 0); (openfile->filebot->data[0] == '\0' ? 1 : 0);
#ifndef NANO_TINY #ifndef NANO_TINY
if (openfile->fmt != NIX_FILE) if (openfile->fmt != NIX_FILE)
/* TRANSLATORS: first %s is the file name, second %s a format indicator. */ /* TRANSLATORS: first %s is file name, second %s is file format. */
statusline(HUSH, P_("%s -- %zu line (%s)", "%s -- %zu lines (%s)", count), statusline(HUSH, P_("%s -- %zu line (%s)", "%s -- %zu lines (%s)", count),
openfile->filename[0] == '\0' ? openfile->filename[0] == '\0' ?
_("New Buffer") : tail(openfile->filename), count, _("New Buffer") : tail(openfile->filename), count,

View File

@ -1222,9 +1222,8 @@ void do_rcfiles(void)
{ {
const char *xdgconfdir; const char *xdgconfdir;
/* First process the system-wide nanorc, if there is one. */
nanorc = mallocstrcpy(nanorc, SYSCONFDIR "/nanorc"); nanorc = mallocstrcpy(nanorc, SYSCONFDIR "/nanorc");
/* Process the system-wide nanorc. */
parse_one_nanorc(); parse_one_nanorc();
/* When configured with --disable-wrapping-as-root, turn wrapping off /* When configured with --disable-wrapping-as-root, turn wrapping off
@ -1237,8 +1236,8 @@ void do_rcfiles(void)
get_homedir(); get_homedir();
xdgconfdir = getenv("XDG_CONFIG_HOME"); xdgconfdir = getenv("XDG_CONFIG_HOME");
/* Now try the to find a nanorc file in the user's home directory /* Now try the to find a nanorc file in the user's home directory or in
* or in the XDG configuration directories. */ * the XDG configuration directories, and process the first one found. */
if (have_nanorc(homedir, "/" HOME_RC_NAME)) if (have_nanorc(homedir, "/" HOME_RC_NAME))
parse_one_nanorc(); parse_one_nanorc();
else if (have_nanorc(xdgconfdir, "/nano/" RCFILE_NAME)) else if (have_nanorc(xdgconfdir, "/nano/" RCFILE_NAME))