tweaks: remove redundant braces, and add two translator hints
Этот коммит содержится в:
родитель
7db5c2f225
Коммит
03b85df4eb
@ -359,9 +359,9 @@ bool has_valid_path(const char *filename)
|
|||||||
free(currentdir);
|
free(currentdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gone) {
|
if (gone)
|
||||||
statusline(ALERT, _("The working directory has disappeared"));
|
statusline(ALERT, _("The working directory has disappeared"));
|
||||||
} else if (stat(parentdir, &parentinfo) == -1) {
|
else if (stat(parentdir, &parentinfo) == -1) {
|
||||||
if (errno == ENOENT)
|
if (errno == ENOENT)
|
||||||
/* TRANSLATORS: Keep the next ten messages at most 76 characters. */
|
/* TRANSLATORS: Keep the next ten messages at most 76 characters. */
|
||||||
statusline(ALERT, _("Directory '%s' does not exist"), parentdir);
|
statusline(ALERT, _("Directory '%s' does not exist"), parentdir);
|
||||||
@ -1943,8 +1943,12 @@ bool write_file(const char *name, FILE *thefile, bool normal,
|
|||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
if (errno == ENOSPC && normal) {
|
if (errno == ENOSPC && normal) {
|
||||||
napms(3200); lastmessage = VACUUM;
|
napms(3200); lastmessage = VACUUM;
|
||||||
|
/* TRANSLATORS: This warns for data loss when the disk is full. */
|
||||||
statusline(ALERT, _("File on disk has been truncated!"));
|
statusline(ALERT, _("File on disk has been truncated!"));
|
||||||
napms(3200); lastmessage = VACUUM;
|
napms(3200); lastmessage = VACUUM;
|
||||||
|
/* TRANSLATORS: This is a suggestion to the user,
|
||||||
|
* where "resume" means resuming from suspension.
|
||||||
|
* Try to keep this at most 76 characters. */
|
||||||
statusline(ALERT, _("Maybe ^T^Z, make room on disk, resume, then ^S^X"));
|
statusline(ALERT, _("Maybe ^T^Z, make room on disk, resume, then ^S^X"));
|
||||||
stat_with_alloc(realname, &openfile->statinfo);
|
stat_with_alloc(realname, &openfile->statinfo);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user