The text "file 1 of 2", displayed in the window title, status bar and command line when editing multiple files, is not available for translation.
It is possible that the append_arg_number() function in the buffer.c file should look like this:
diff --git "a/src/buffer.c" "b/src/buffer.c"
index ff7c50fae..777f9ee92 100644
--- "a/src/buffer.c"
+++ "b/src/buffer.c"
@@ -5279,6 +5279,7 @@ append_arg_number(
int add_file) // Add "file" before the arg number
{
char_u *p;
+ char *txt;
if (ARGCOUNT <= 1) // nothing to do
return FALSE;
@@ -5290,12 +5291,13 @@ append_arg_number(
*p++ = '(';
if (add_file)
{
- STRCPY(p, "file ");
- p += 5;
+ txt = _("file ")
+ STRCPY(p, _(txt));
+ p += STRLEN(_(txt));
}
vim_snprintf((char *)p, (size_t)(buflen - (p - buf)),
- wp->w_arg_idx_invalid ? "(%d) of %d)"
- : "%d of %d)", wp->w_arg_idx + 1, ARGCOUNT);
+ wp->w_arg_idx_invalid ? _("(%d) of %d)")
+ : _("%d of %d)"), wp->w_arg_idx + 1, ARGCOUNT);
return TRUE;
}
I don't know the C programming language very well. I made it in the form of a patch, so fix it if anything.
Availability for translation
9.0.1572
Windows 6.1
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #12429 as completed via a8490a4.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
For translations it is generally not a good idea to split up a text in
parts and translate each part separately.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()