From fd667b519188576200db4d121853d1205ccf2ab3 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 27 Jul 2020 10:33:42 +0200 Subject: [PATCH] tweaks: add four more translator hints --- src/files.c | 2 ++ src/global.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/files.c b/src/files.c index ac545539..74690588 100644 --- a/src/files.c +++ b/src/files.c @@ -1693,6 +1693,7 @@ bool make_backup_of(char *realname) /* If both attempts failed, and it isn't because of lack of disk space, * ask the user what to do, because if something goes wrong during the * save of the file itself, its contents may be lost. */ + /* TRANSLATORS: Try to keep this message at most 76 characters. */ if (errno != ENOSPC && do_yesno_prompt(FALSE, _("Cannot make backup; " "continue and save actual file? ")) == 1) return TRUE; @@ -2235,6 +2236,7 @@ int do_writeout(bool exiting, bool withprompt) warn_and_briefly_pause(_("File on disk has changed")); + /* TRANSLATORS: Try to keep this at most 76 characters. */ choice = do_yesno_prompt(FALSE, _("File was modified " "since you opened it; continue saving? ")); wipe_statusbar(); diff --git a/src/global.c b/src/global.c index fe70929d..ceecce77 100644 --- a/src/global.c +++ b/src/global.c @@ -1016,6 +1016,7 @@ void shortcut_init(void) N_("Down to anchor"), WITHORSANS(nextanchor_gist), BLANKAFTER, VIEW); add_to_funcs(zap_text, MMAIN, + /* TRANSLATORS: This *deletes* a line or marked region. */ N_("Zap"), WITHORSANS(zap_gist), BLANKAFTER, NOVIEW); if (!ISSET(RESTRICTED)) { @@ -1111,6 +1112,7 @@ void shortcut_init(void) /* The file browser is only available when not in restricted mode. */ if (!ISSET(RESTRICTED)) add_to_funcs(to_files, MWRITEFILE|MINSERTFILE, + /* TRANSLATORS: This invokes the file browser. */ N_("Browse"), WITHORSANS(tofiles_gist), BLANKAFTER, VIEW); add_to_funcs(do_page_up, MBROWSER,