patch 9.1.1483: not possible to translation position in buffer
Problem: not possible to translation position in buffer
Solution: use _() macro to mark the output as translatable
(Emir SARI)
Row/Column indicator separator is currently not customizable. Some
languages have a space after the comma as the usual practice, plus this
would help translators use a custom separator like colons if necessary.
Additionally, after a save, the line and the byte indicator is also
hardcoded, this enables i18n for that as well.
closes: #17608
Signed-off-by: Emir SARI <emir_sari@icloud.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/drawscreen.c b/src/drawscreen.c
index 37c8f42..5c28b0a 100644
--- a/src/drawscreen.c
+++ b/src/drawscreen.c
@@ -734,7 +734,10 @@
wp->w_p_list = TRUE;
}
- bufferlen = vim_snprintf((char *)buffer, RULER_BUF_LEN, "%ld,",
+ // 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
+ bufferlen = vim_snprintf((char *)buffer, RULER_BUF_LEN, _("%ld,"),
(wp->w_buffer->b_ml.ml_flags & ML_EMPTY)
? 0L
: (long)(wp->w_cursor.lnum));