summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2023-11-29 04:44:28 +0900
committerGitHub <noreply@github.com>2023-11-28 20:44:28 +0100
commitffd6d31cb2c1b1a963a6113c41495dfdf10a5de8 (patch)
tree7bf6a508fb1d9769b0c062974fcc16b9caea4d33 /runtime
parenta9058440b7b9d7f5d0027c8cd44366e9200ca241 (diff)
runtime(lang): Revise Makefile (#13589)
* Revise runtime/lang/Makefile * Use predefined variables (`$@`, `$<`) instead of the actual file names. (Adding new rules should become easier.) * Adjust spacing. * Regenerate converted menu files Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r--runtime/lang/Makefile200
-rw-r--r--runtime/lang/menu_cs_cz.iso_8859-2.vim2
-rw-r--r--runtime/lang/menu_sl_si.latin2.vim2
-rw-r--r--runtime/lang/menu_sr_rs.iso_8859-2.vim2
-rw-r--r--runtime/lang/menu_sr_rs.iso_8859-5.vim2
-rw-r--r--runtime/lang/menu_tr_tr.iso_8859-9.vim2
6 files changed, 105 insertions, 105 deletions
diff --git a/runtime/lang/Makefile b/runtime/lang/Makefile
index 362c76686b..9ce56b4e9c 100644
--- a/runtime/lang/Makefile
+++ b/runtime/lang/Makefile
@@ -10,155 +10,155 @@ all: $(CONVERTED)
# Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim.
menu_chinese_gb.936.vim: menu_zh_cn.utf-8.vim
- rm -f menu_chinese_gb.936.vim
- iconv -f UTF-8 -t CP936 menu_zh_cn.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t CP936 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp936/' \
- -e 's/" Original translations/" Generated from menu_zh_cn.utf-8.vim, DO NOT EDIT/' \
- > menu_chinese_gb.936.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim.
menu_chinese_taiwan.950.vim: menu_zh_tw.utf-8.vim
- rm -f menu_chinese_taiwan.950.vim
- iconv -f UTF-8 -t CP950 menu_zh_tw.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t CP950 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp950/' \
- -e 's/" Original translations/" Generated from menu_zh_tw.utf-8.vim, DO NOT EDIT/' \
- > menu_chinese_taiwan.950.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_cs_cz.utf-8.vim to create menu_cs_cz.iso_8859-2.vim.
menu_cs_cz.iso_8859-2.vim: menu_cs_cz.utf-8.vim
- rm -f menu_cs_cz.iso_8859-2.vim
- iconv -f UTF-8 -t ISO-8859-2 menu_cs_cz.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t ISO-8859-2 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
- -e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \
- -e 's/\(" Menu Translations:.*\)(.*)/\1(ISO8859-2)/' \
- > menu_cs_cz.iso_8859-2.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ -e 's/\(" Menu Translations:.*\)(.*)/\1(ISO8859-2)/' \
+ > $@
# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.1250.vim.
menu_czech_czech_republic.1250.vim: menu_cs_cz.utf-8.vim
- rm -f menu_czech_czech_republic.1250.vim
- iconv -f UTF-8 -t CP1250 menu_cs_cz.utf-8.vim | \
- $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
- -e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \
- -e 's/\(" Menu Translations:.*\)(.*)/\1(CP1250)/' \
- > menu_czech_czech_republic.1250.vim
+ rm -f $@
+ iconv -f UTF-8 -t CP1250 $< | \
+ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ -e 's/\(" Menu Translations:.*\)(.*)/\1(CP1250)/' \
+ > $@
# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.ascii.vim.
menu_czech_czech_republic.ascii.vim: menu_cs_cz.utf-8.vim
- rm -f menu_czech_czech_republic.ascii.vim
+ rm -f $@
$(SED) -e 's/Á/A/g' -e 's/á/a/g' -e 's/Č/C/g' -e 's/č/c/g' -e 's/Ď/D/g' \
-e 's/ď/d/g' -e 's/É/E/g' -e 's/é/e/g' -e 's/Ě/E/g' -e 's/ě/e/g' \
-e 's/Í/I/g' -e 's/í/i/g' -e 's/Ň/N/g' -e 's/ň/n/g' -e 's/Ó/O/g' \
-e 's/ó/o/g' -e 's/Ř/R/g' -e 's/ř/r/g' -e 's/Š/S/g' -e 's/š/s/g' \
-e 's/Ť/T/g' -e 's/ť/t/g' -e 's/Ú/U/g' -e 's/ú/u/g' -e 's/Ů/U/g' \
-e 's/ů/u/g' -e 's/Ý/Y/g' -e 's/ý/y/g' -e 's/Ž/Z/g' -e 's/ž/z/g' \
- -e 's/scriptencoding utf-8/scriptencoding latin1/' \
- -e 's/" Original translations/" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT/' \
- -e 's/\(" Menu Translations:.*\)(.*)/\1(ASCII - without diacritics)/' \
- menu_cs_cz.utf-8.vim > menu_czech_czech_republic.ascii.vim
+ -e 's/scriptencoding utf-8/scriptencoding latin1/' \
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ -e 's/\(" Menu Translations:.*\)(.*)/\1(ASCII - without diacritics)/' \
+ $< > $@
# Convert menu_ja_jp.utf-8.vim to create menu_ja_jp.euc-jp.vim.
menu_ja_jp.euc-jp.vim: menu_ja_jp.utf-8.vim
- rm -f menu_ja_jp.euc-jp.vim
- iconv -f UTF-8 -t EUC-JP menu_ja_jp.utf-8.vim | \
- $(SED) -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \
- -e 's/" Original translations/" Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT/' \
- -e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \
- > menu_ja_jp.euc-jp.vim
+ rm -f $@
+ iconv -f UTF-8 -t EUC-JP $< | \
+ $(SED) -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ -e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \
+ > $@
# Convert menu_ja_jp.utf-8.vim to create menu_japanese_japan.932.vim.
menu_japanese_japan.932.vim: menu_ja_jp.utf-8.vim
- rm -f menu_japanese_japan.932.vim
- iconv -f UTF-8 -t CP932 menu_ja_jp.utf-8.vim | \
- $(SED) -e 's/scriptencoding utf-8/scriptencoding cp932/' \
- -e 's/" Original translations/" Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT/' \
- -e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \
- > menu_japanese_japan.932.vim
+ rm -f $@
+ iconv -f UTF-8 -t CP932 $< | \
+ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp932/' \
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ -e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \
+ > $@
# Convert menu_ko_kr.utf-8.vim to create menu_ko_kr.euckr.vim.
menu_ko_kr.euckr.vim: menu_ko_kr.utf-8.vim
- rm -f menu_ko_kr.euckr.vim
- iconv -f UTF-8 -t EUC-KR menu_ko_kr.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t EUC-KR $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding euc-kr/' \
- -e 's/" Original translations/" Generated from menu_ko_kr.utf-8.vim, DO NOT EDIT/' \
- > menu_ko_kr.euckr.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim.
menu_pl_pl.iso_8859-2.vim: menu_pl_pl.utf-8.vim
- rm -f menu_pl_pl.iso_8859-2.vim
- iconv -f UTF-8 -t ISO-8859-2 menu_pl_pl.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t ISO-8859-2 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
- -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' \
- > menu_pl_pl.iso_8859-2.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim.
menu_polish_poland.1250.vim: menu_pl_pl.utf-8.vim
- rm -f menu_polish_poland.1250.vim
- iconv -f UTF-8 -t CP1250 menu_pl_pl.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t CP1250 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
- -e 's/" Original translations/" Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT/' \
- > menu_polish_poland.1250.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim.
menu_ru_ru.koi8-r.vim: menu_ru_ru.utf-8.vim
- rm -f menu_ru_ru.koi8-r.vim
- iconv -f UTF-8 -t KOI8-R menu_ru_ru.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t KOI8-R $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-r/' \
- -e 's/" Original translations/" Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT/' \
- > menu_ru_ru.koi8-r.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.cp1251.vim.
menu_ru_ru.cp1251.vim: menu_ru_ru.utf-8.vim
- rm -f menu_ru_ru.cp1251.vim
- iconv -f UTF-8 -t CP1251 menu_ru_ru.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t CP1251 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' \
- -e 's/" Original translations/" Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT/' \
- > menu_ru_ru.cp1251.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim.
menu_sl_si.cp1250.vim: menu_sl_si.utf-8.vim
- rm -f menu_sl_si.cp1250.vim
- iconv -f UTF-8 -t CP1250 menu_sl_si.utf-8.vim | \
- $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
- -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' \
- > menu_sl_si.cp1250.vim
+ rm -f $@
+ iconv -f UTF-8 -t CP1250 $< | \
+ $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# for naming encodings, see `:h encoding-names`
# Convert menu_sl_si.utf-8.vim to create menu_sl_si.latin2.vim.
menu_sl_si.latin2.vim: menu_sl_si.utf-8.vim
- rm -f menu_sl_si.latin2.vim
- iconv -f UTF-8 -t ISO-8859-2 menu_sl_si.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t ISO-8859-2 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
- -e 's/" Original translations/" Generated from menu_sl_si.utf-8.vim, DO NOT EDIT/' \
- > menu_sl_si.latin2.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim.
menu_tr_tr.cp1254.vim: menu_tr_tr.utf-8.vim
- rm -f menu_tr_tr.cp1254.vim
- iconv -f UTF-8 -t CP1254 menu_tr_tr.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t CP1254 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1254/' \
- -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' \
- > menu_tr_tr.cp1254.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim.
menu_tr_tr.iso_8859-9.vim: menu_tr_tr.utf-8.vim
- rm -f menu_tr_tr.iso_8859-9.vim
- iconv -f UTF-8 -t ISO-8859-9 menu_tr_tr.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t ISO-8859-9 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-9/' \
- -e 's/" Original translations/" Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT/' \
- > menu_tr_tr.iso_8859-9.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim.
menu_sr_rs.iso_8859-5.vim: menu_sr_rs.utf-8.vim
- rm -f menu_sr_rs.iso_8859-5.vim
- iconv -f UTF-8 -t ISO-8859-5 menu_sr_rs.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t ISO-8859-5 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-5/' \
- -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' \
- > menu_sr_rs.iso_8859-5.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# for naming encodings, see `:h encoding-names`
# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-2.vim.
menu_sr_rs.iso_8859-2.vim: menu_sr_rs.utf-8.vim
- rm -f menu_sr_rs.iso_8859-2.vim
+ rm -f $@
$(SED) -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \
-e 's/ђ/đ/g' -e 's/е/e/g' -e 's/ж/ž/g' -e 's/з/z/g' -e 's/и/i/g' \
-e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \
@@ -172,13 +172,13 @@ menu_sr_rs.iso_8859-2.vim: menu_sr_rs.utf-8.vim
-e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/Ć/g' -e 's/У/U/g' -e 's/Ф/F/g' \
-e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/Č/g' -e 's/Џ/Dž/g' -e 's/Ш/Š/g' \
-e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
- -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' \
- menu_sr_rs.utf-8.vim | iconv -f UTF-8 -t ISO-8859-2 \
- > menu_sr_rs.iso_8859-2.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ $< | iconv -f UTF-8 -t ISO-8859-2 \
+ > $@
# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim.
menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.vim
- rm -f menu_sr_rs.ascii.vim
+ rm -f $@
$(SED) -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \
-e 's/ђ/dj/g' -e 's/е/e/g' -e 's/ж/z/g' -e 's/з/z/g' -e 's/и/i/g' \
-e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \
@@ -192,37 +192,37 @@ menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.vim
-e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/C/g' -e 's/У/U/g' -e 's/Ф/F/g' \
-e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/C/g' -e 's/Џ/Dz/g' -e 's/Ш/S/g' \
-e 's/scriptencoding utf-8/scriptencoding latin1/' \
- -e 's/" Original translations/" Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT/' \
- menu_sr_rs.utf-8.vim > menu_sr_rs.ascii.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ $< > $@
# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.cp1251.vim.
menu_uk_ua.cp1251.vim: menu_uk_ua.utf-8.vim
- rm -f menu_uk_ua.cp1251.vim
- iconv -f UTF-8 -t CP1251 menu_uk_ua.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t CP1251 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' \
- -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' \
- > menu_uk_ua.cp1251.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim.
menu_uk_ua.koi8-u.vim: menu_uk_ua.utf-8.vim
- rm -f menu_uk_ua.koi8-u.vim
- iconv -f UTF-8 -t KOI8-U menu_uk_ua.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t KOI8-U $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-u/' \
- -e 's/" Original translations/" Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT/' \
- > menu_uk_ua.koi8-u.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim.
menu_hu_hu.iso_8859-2.vim: menu_hu_hu.utf-8.vim
- rm -f menu_hu_hu.iso_8859-2.vim
- iconv -f UTF-8 -t ISO-8859-2 menu_hu_hu.utf-8.vim | \
+ rm -f $@
+ iconv -f UTF-8 -t ISO-8859-2 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \
- -e 's/" Original translations/" Generated from menu_hu_hu.utf-8.vim, DO NOT EDIT/' \
- > menu_hu_hu.iso_8859-2.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
# Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim.
menu_sk_sk.iso_8859-2.vim: menu_slovak_slovak_republic.1250.vim
- rm -f menu_sk_sk.iso_8859-2.vim
- iconv -f CP1250 -t ISO-8859-2 menu_slovak_slovak_republic.1250.vim | \
+ rm -f $@
+ iconv -f CP1250 -t ISO-8859-2 $< | \
$(SED) -e 's/scriptencoding cp1250/scriptencoding iso-8859-2/' \
- -e 's/" Original translations/" Generated from menu_slovak_slovak_republic.1250.vim, DO NOT EDIT/' \
- > menu_sk_sk.iso_8859-2.vim
+ -e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
+ > $@
diff --git a/runtime/lang/menu_cs_cz.iso_8859-2.vim b/runtime/lang/menu_cs_cz.iso_8859-2.vim
index 4bbb77134b..6cc8695ba2 100644
--- a/runtime/lang/menu_cs_cz.iso_8859-2.vim
+++ b/runtime/lang/menu_cs_cz.iso_8859-2.vim
@@ -13,7 +13,7 @@ let did_menu_trans = 1
let s:keepcpo= &cpo
set cpo&vim
-scriptencoding iso8859-2
+scriptencoding iso-8859-2
" {{{ File menu
menutrans &File &Soubor
diff --git a/runtime/lang/menu_sl_si.latin2.vim b/runtime/lang/menu_sl_si.latin2.vim
index 07ba04458f..dc97c1a403 100644
--- a/runtime/lang/menu_sl_si.latin2.vim
+++ b/runtime/lang/menu_sl_si.latin2.vim
@@ -15,7 +15,7 @@ let did_menu_trans = 1
let s:keepcpo= &cpo
set cpo&vim
-scriptencoding latin2
+scriptencoding iso-8859-2
" {{{ FILE / DATOTEKA
menutrans &File &Datoteka
diff --git a/runtime/lang/menu_sr_rs.iso_8859-2.vim b/runtime/lang/menu_sr_rs.iso_8859-2.vim
index faff85d617..a409718f48 100644
--- a/runtime/lang/menu_sr_rs.iso_8859-2.vim
+++ b/runtime/lang/menu_sr_rs.iso_8859-2.vim
@@ -12,7 +12,7 @@ let did_menu_trans = 1
let s:keepcpo= &cpo
set cpo&vim
-scriptencoding iso8859-2
+scriptencoding iso-8859-2
" Help menu
menutrans &Help Pomo&
diff --git a/runtime/lang/menu_sr_rs.iso_8859-5.vim b/runtime/lang/menu_sr_rs.iso_8859-5.vim
index 870506fd09..f0b5b37fff 100644
--- a/runtime/lang/menu_sr_rs.iso_8859-5.vim
+++ b/runtime/lang/menu_sr_rs.iso_8859-5.vim
@@ -12,7 +12,7 @@ let did_menu_trans = 1
let s:keepcpo= &cpo
set cpo&vim
-scriptencoding iso8859-5
+scriptencoding iso-8859-5
" Help menu
menutrans &Help &
diff --git a/runtime/lang/menu_tr_tr.iso_8859-9.vim b/runtime/lang/menu_tr_tr.iso_8859-9.vim
index 2c6cbd3fb3..1653e34060 100644
--- a/runtime/lang/menu_tr_tr.iso_8859-9.vim
+++ b/runtime/lang/menu_tr_tr.iso_8859-9.vim
@@ -9,7 +9,7 @@ endif
let did_menu_trans = 1
let s:keepcpo= &cpo
set cpo&vim
-scriptencoding iso8859-9
+scriptencoding iso-8859-9
" Top
menutrans &File &Dosya