Shorten some strings

This commit is contained in:
Arun Prakash Jana 2021-05-05 08:05:07 +05:30
parent 949f76ec16
commit bd47846185
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -553,17 +553,16 @@ static char * const utils[] = {
#define MSG_RCLONE_DELAY 31 #define MSG_RCLONE_DELAY 31
#define MSG_APP_NAME 32 #define MSG_APP_NAME 32
#define MSG_ARCHIVE_OPTS 33 #define MSG_ARCHIVE_OPTS 33
#define MSG_PLUGIN_KEYS 34 #define MSG_KEYS 34
#define MSG_BOOKMARK_KEYS 35 #define MSG_INVALID_REG 35
#define MSG_INVALID_REG 36 #define MSG_ORDER 36
#define MSG_ORDER 37 #define MSG_LAZY 37
#define MSG_LAZY 38 #define MSG_FIRST 38
#define MSG_FIRST 39 #define MSG_RM_TMP 39
#define MSG_RM_TMP 40 #define MSG_INVALID_KEY 40
#define MSG_INVALID_KEY 41 #define MSG_NOCHANGE 41
#define MSG_NOCHANGE 42
#ifndef DIR_LIMITED_SELECTION #ifndef DIR_LIMITED_SELECTION
#define MSG_DIR_CHANGED 43 /* Must be the last entry */ #define MSG_DIR_CHANGED 42 /* Must be the last entry */
#endif #endif
static const char * const messages[] = { static const char * const messages[] = {
@ -583,7 +582,7 @@ static const char * const messages[] = {
"overwrite?", "overwrite?",
"'s'ave / 'l'oad / 'r'estore?", "'s'ave / 'l'oad / 'r'estore?",
"Quit all contexts?", "Quit all contexts?",
"remote name ('-' for hovered): ", "remote name (- for hovered): ",
"archive [path/]name: ", "archive [path/]name: ",
"open with: ", "open with: ",
"[path/]name: ", "[path/]name: ",
@ -592,19 +591,18 @@ static const char * const messages[] = {
"\n'Enter' to continue", "\n'Enter' to continue",
"open failed", "open failed",
"dir inaccessible", "dir inaccessible",
"empty: edit/open with", "empty! edit/open with",
"unknown", "?",
"not set", "not set",
"entry exists", "entry exists",
"too few cols!", "too few cols!",
"'s'shfs / 'r'clone?", "'s'shfs / 'r'clone?",
"refresh if slow", "refresh if slow",
"app name: ", "app name: ",
"'d'efault / e'x'tract / 'l'ist / 'm'ount?", "'o'pen / e'x'tract / 'l's / 'm'nt?",
"plugin keys:", "keys:",
"bookmark keys:",
"invalid regex", "invalid regex",
"'a'u / 'd'u / 'e'xtn / 'r'ev / 's'ize / 't'ime / 'v'er / 'c'lr / '^T' (cycle)?", "'a'u / 'd'u / 'e'xt / 'r'ev / 's'z / 't'm / 'v'er / 'c'lr / '^T'?",
"unmount failed! try lazy?", "unmount failed! try lazy?",
"first file (\')/char?", "first file (\')/char?",
"remove tmp file?", "remove tmp file?",
@ -4477,7 +4475,7 @@ static void printkeys(kv *kvarr, char *buf, uchar_t max)
static size_t handle_bookmark(const char *bmark, char *newpath) static size_t handle_bookmark(const char *bmark, char *newpath)
{ {
int fd; int fd;
size_t r = xstrsncpy(g_buf, messages[MSG_BOOKMARK_KEYS], CMD_LEN_MAX); size_t r = xstrsncpy(g_buf, messages[MSG_KEYS], CMD_LEN_MAX);
if (bmark) { /* There is a marked directory */ if (bmark) { /* There is a marked directory */
g_buf[--r] = ' '; g_buf[--r] = ' ';
@ -6977,7 +6975,7 @@ nochange:
} }
if (!pkey) { if (!pkey) {
r = xstrsncpy(g_buf, messages[MSG_PLUGIN_KEYS], CMD_LEN_MAX); r = xstrsncpy(g_buf, messages[MSG_KEYS], CMD_LEN_MAX);
printkeys(plug, g_buf + r - 1, maxplug); printkeys(plug, g_buf + r - 1, maxplug);
printmsg(g_buf); printmsg(g_buf);
r = get_input(NULL); r = get_input(NULL);