diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 7479be15c9..803ba94591 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -2146,7 +2146,8 @@ void msg_add_lines(int insert_space, linenr_T lnum, off_T nchars) size_t len = strlen(IObuff); if (shortmess(SHM_LINES)) { - snprintf(IObuff + len, IOSIZE - len, "%s%" PRId64 "L, %" PRId64 "B", + snprintf(IObuff + len, IOSIZE - len, + _("%s%" PRId64 "L, %" PRId64 "B"), // l10n: L as in line, B as in byte insert_space ? " " : "", (int64_t)lnum, (int64_t)nchars); } else { len += (size_t)snprintf(IObuff + len, IOSIZE - len, diff --git a/src/nvim/statusline.c b/src/nvim/statusline.c index 19341b05c8..e9f0cc9889 100644 --- a/src/nvim/statusline.c +++ b/src/nvim/statusline.c @@ -491,7 +491,10 @@ void redraw_ruler(void) #define RULER_BUF_LEN 70 char buffer[RULER_BUF_LEN]; - int bufferlen = vim_snprintf(buffer, RULER_BUF_LEN, "%" PRId64 ",", + // row number, column number is appended + // l10n: leave as-is unless a space after the comma is preferred + // l10n: do not add any row/column label, due to the limited space + int bufferlen = vim_snprintf(buffer, RULER_BUF_LEN, _("%" PRId64 ","), (wp->w_buffer->b_ml.ml_flags & ML_EMPTY) ? 0 : (int64_t)wp->w_cursor.lnum);