0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.1144

Problem:    "RO" is not translated everywhere.
Solution:   Put inside _(). (Sergey Alyoshin)
This commit is contained in:
Bram Moolenaar
2013-06-07 20:17:11 +02:00
parent 3798519b9e
commit 2358403363
3 changed files with 5 additions and 3 deletions

View File

@@ -3139,7 +3139,7 @@ fileinfo(fullname, shorthelp, dont_truncate)
#endif #endif
? _("[New file]") : "", ? _("[New file]") : "",
(curbuf->b_flags & BF_READERR) ? _("[Read errors]") : "", (curbuf->b_flags & BF_READERR) ? _("[Read errors]") : "",
curbuf->b_p_ro ? (shortmess(SHM_RO) ? "[RO]" curbuf->b_p_ro ? (shortmess(SHM_RO) ? _("[RO]")
: _("[readonly]")) : "", : _("[readonly]")) : "",
(curbufIsChanged() || (curbuf->b_flags & BF_WRITE_MASK) (curbufIsChanged() || (curbuf->b_flags & BF_WRITE_MASK)
|| curbuf->b_p_ro) ? || curbuf->b_p_ro) ?
@@ -3976,7 +3976,7 @@ build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar,
case STL_ROFLAG_ALT: case STL_ROFLAG_ALT:
itemisflag = TRUE; itemisflag = TRUE;
if (wp->w_buffer->b_p_ro) if (wp->w_buffer->b_p_ro)
str = (char_u *)((opt == STL_ROFLAG_ALT) ? ",RO" : "[RO]"); str = (char_u *)((opt == STL_ROFLAG_ALT) ? ",RO" : _("[RO]"));
break; break;
case STL_HELPFLAG: case STL_HELPFLAG:

View File

@@ -6281,7 +6281,7 @@ win_redr_status(wp)
} }
if (wp->w_buffer->b_p_ro) if (wp->w_buffer->b_p_ro)
{ {
STRCPY(p + len, "[RO]"); STRCPY(p + len, _("[RO]"));
len += 4; len += 4;
} }

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1144,
/**/ /**/
1143, 1143,
/**/ /**/