Skip to content

Commit b5cfff0

Browse files
committed
patch 8.2.1716: options window has duplicate translations
Problem: Options window has duplicate translations. Solution: Make one entry for "global or local to buffer". Fix wrong text. (closes #6983)
1 parent 26cd306 commit b5cfff0

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

runtime/optwin.vim

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ endfunc
7171

7272
let s:local_to_window = gettext('(local to window)')
7373
let s:local_to_buffer = gettext('(local to buffer)')
74+
let s:global_or_local = gettext('(global or local to buffer)')
7475

7576
" find the window in which the option applies
7677
" returns 0 for global option, 1 for local option, -1 for error
@@ -257,7 +258,7 @@ call <SID>OptionG("para", &para)
257258
call <SID>AddOption("sections", gettext("nroff macro names that separate sections"))
258259
call <SID>OptionG("sect", &sect)
259260
call <SID>AddOption("path", gettext("list of directory names used for file searching"))
260-
call append("$", gettext("\t(global or local to buffer)"))
261+
call append("$", "\t" .. s:global_or_local)
261262
call <SID>OptionG("pa", &pa)
262263
call <SID>AddOption("cdpath", gettext("list of directory names used for :cd"))
263264
call <SID>OptionG("cd", &cd)
@@ -282,7 +283,7 @@ call <SID>OptionG("cmp", &cmp)
282283
call <SID>AddOption("maxmempattern", gettext("maximum amount of memory in Kbyte used for pattern matching"))
283284
call append("$", " \tset mmp=" . &mmp)
284285
call <SID>AddOption("define", gettext("pattern for a macro definition line"))
285-
call append("$", gettext("\t(global or local to buffer)"))
286+
call append("$", "\t" .. s:global_or_local)
286287
call <SID>OptionG("def", &def)
287288
if has("find_in_path")
288289
call <SID>AddOption("include", gettext("pattern for an include-file line"))
@@ -300,10 +301,10 @@ call <SID>BinOptionG("tbs", &tbs)
300301
call <SID>AddOption("taglength", gettext("number of significant characters in a tag name or zero"))
301302
call append("$", " \tset tl=" . &tl)
302303
call <SID>AddOption("tags", gettext("list of file names to search for tags"))
303-
call append("$", gettext("\t(global or local to buffer)"))
304+
call append("$", "\t" .. s:global_or_local)
304305
call <SID>OptionG("tag", &tag)
305306
call <SID>AddOption("tagcase", gettext("how to handle case when searching in tags files:\n\"followic\" to follow 'ignorecase', \"ignore\" or \"match\""))
306-
call append("$", "\t(global or local to buffer)")
307+
call append("$", "\t" .. s:global_or_local)
307308
call <SID>OptionG("tc", &tc)
308309
call <SID>AddOption("tagrelative", gettext("file names in a tags file are relative to the tags file"))
309310
call <SID>BinOptionG("tr", &tr)
@@ -776,7 +777,7 @@ call <SID>OptionG("km", &km)
776777

777778
call <SID>Header(gettext("editing text"))
778779
call <SID>AddOption("undolevels", gettext("maximum number of changes that can be undone"))
779-
call append("$", gettext("\t(global or local to buffer)"))
780+
call append("$", "\t" .. s:global_or_local)
780781
call append("$", " \tset ul=" . s:old_ul)
781782
call <SID>AddOption("undofile", gettext("automatically save and restore undo history"))
782783
call <SID>BinOptionG("udf", &udf)
@@ -836,10 +837,10 @@ if has("insert_expand")
836837
call append("$", "\t" .. s:local_to_buffer)
837838
call <SID>OptionL("ofu")
838839
call <SID>AddOption("dictionary", gettext("list of dictionary files for keyword completion"))
839-
call append("$", gettext("\t(global or local to buffer)"))
840+
call append("$", "\t" .. s:global_or_local)
840841
call <SID>OptionG("dict", &dict)
841842
call <SID>AddOption("thesaurus", gettext("list of thesaurus files for keyword completion"))
842-
call append("$", gettext("\t(global or local to buffer)"))
843+
call append("$", "\t" .. s:global_or_local)
843844
call <SID>OptionG("tsr", &tsr)
844845
endif
845846
call <SID>AddOption("infercase", gettext("adjust case of a keyword completion match"))
@@ -1046,7 +1047,7 @@ call <SID>BinOptionG("bk", &bk)
10461047
call <SID>AddOption("backupskip", gettext("patterns that specify for which files a backup is not made"))
10471048
call append("$", " \tset bsk=" . &bsk)
10481049
call <SID>AddOption("backupcopy", gettext("whether to make the backup as a copy or rename the existing file"))
1049-
call append("$", gettext("\t(global or local to buffer)"))
1050+
call append("$", "\t" .. s:global_or_local)
10501051
call append("$", " \tset bkc=" . &bkc)
10511052
call <SID>AddOption("backupdir", gettext("list of directories to put backup files in"))
10521053
call <SID>OptionG("bdir", &bdir)
@@ -1059,7 +1060,7 @@ call <SID>BinOptionG("awa", &awa)
10591060
call <SID>AddOption("writeany", gettext("always write without asking for confirmation"))
10601061
call <SID>BinOptionG("wa", &wa)
10611062
call <SID>AddOption("autoread", gettext("automatically read a file when it was modified outside of Vim"))
1062-
call append("$", gettext("\t(global or local to buffer)"))
1063+
call append("$", "\t" .. s:global_or_local)
10631064
call <SID>BinOptionG("ar", &ar)
10641065
call <SID>AddOption("patchmode", gettext("keep oldest version of a file; specifies file name extension"))
10651066
call <SID>OptionG("pm", &pm)
@@ -1149,7 +1150,7 @@ call <SID>OptionG("srr", &srr)
11491150
call <SID>AddOption("shelltemp", gettext("use a temp file for shell commands instead of using a pipe"))
11501151
call <SID>BinOptionG("stmp", &stmp)
11511152
call <SID>AddOption("equalprg", gettext("program used for \"=\" command"))
1152-
call append("$", gettext("\t(global or local to buffer)"))
1153+
call append("$", "\t" .. s:global_or_local)
11531154
call <SID>OptionG("ep", &ep)
11541155
call <SID>AddOption("formatprg", gettext("program used to format lines with \"gq\" command"))
11551156
call <SID>OptionG("fp", &fp)
@@ -1164,22 +1165,22 @@ if has("quickfix")
11641165
call <SID>AddOption("errorfile", gettext("name of the file that contains error messages"))
11651166
call <SID>OptionG("ef", &ef)
11661167
call <SID>AddOption("errorformat", gettext("list of formats for error messages"))
1167-
call append("$", gettext("\t(global or local to buffer)"))
1168+
call append("$", "\t" .. s:global_or_local)
11681169
call <SID>OptionG("efm", &efm)
11691170
call <SID>AddOption("makeprg", gettext("program used for the \":make\" command"))
1170-
call append("$", gettext("\t(global or local to buffer)"))
1171+
call append("$", "\t" .. s:global_or_local)
11711172
call <SID>OptionG("mp", &mp)
11721173
call <SID>AddOption("shellpipe", gettext("string used to put the output of \":make\" in the error file"))
11731174
call <SID>OptionG("sp", &sp)
11741175
call <SID>AddOption("makeef", gettext("name of the errorfile for the 'makeprg' command"))
11751176
call <SID>OptionG("mef", &mef)
11761177
call <SID>AddOption("grepprg", gettext("program used for the \":grep\" command"))
1177-
call append("$", gettext("\t(global or local to buffer)"))
1178+
call append("$", "\t" .. s:global_or_local)
11781179
call <SID>OptionG("gp", &gp)
11791180
call <SID>AddOption("grepformat", gettext("list of formats for output of 'grepprg'"))
11801181
call <SID>OptionG("gfm", &gfm)
11811182
call <SID>AddOption("makeencoding", gettext("encoding of the \":make\" and \":grep\" output"))
1182-
call append("$", gettext("\t(global or local to buffer)"))
1183+
call append("$", "\t" .. s:global_or_local)
11831184
call <SID>OptionG("menc", &menc)
11841185
call <SID>AddOption("quickfixtextfunc", gettext("function to display text in the quickfix window"))
11851186
call <SID>OptionG("qftf", &qftf)
@@ -1404,9 +1405,9 @@ if exists("&tcldll")
14041405
call <SID>OptionG("tcldll", &tcldll)
14051406
endif
14061407
if exists("&mzschemedll")
1407-
call <SID>AddOption("mzschemedll", gettext("name of the Tcl dynamic library"))
1408+
call <SID>AddOption("mzschemedll", gettext("name of the MzScheme dynamic library"))
14081409
call <SID>OptionG("mzschemedll", &mzschemedll)
1409-
call <SID>AddOption("mzschemegcdll", gettext("name of the Tcl GC dynamic library"))
1410+
call <SID>AddOption("mzschemegcdll", gettext("name of the MzScheme GC dynamic library"))
14101411
call <SID>OptionG("mzschemegcdll", &mzschemegcdll)
14111412
endif
14121413

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
1716,
753755
/**/
754756
1715,
755757
/**/

0 commit comments

Comments
 (0)