Mercurial > vim
changeset 33180:21bbe5d23739
runtime(menu): Fix "Open &Tab..." CJK translations to have shortcut key (#13031)
Commit: https://github.com/vim/vim/commit/c2a37013bd3c748e0e4adcbb5a505b8a4dde20c7
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Mon Sep 4 22:36:07 2023 -0700
runtime(menu): Fix "Open &Tab..." CJK translations to have shortcut key (https://github.com/vim/vim/issues/13031)
Previous PR (https://github.com/vim/vim/issues/12993) fixed localization files to point to "Open &Tab..."
but they didn't add the shortcut key to the translated names. This adds
the shortcut keys to the CJK translations in the form of "(&T)".
Note that this doesn't add the shortcut to latin script languages like
Czech. These types of translated names tend to also localize the
shortcut keys for them to make sense to the user and it's up to each
translator to decide how to do so. CJK translations tend to just take
the English key directly since it doesn't make sense to have a localized
shortcut key in general.
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Sep 2023 07:45:07 +0200 |
parents | 207ea34caa23 |
children | ea3f1e0ee5f3 |
files | runtime/lang/menu_chinese_gb.936.vim runtime/lang/menu_ja_jp.euc-jp.vim runtime/lang/menu_ja_jp.utf-8.vim runtime/lang/menu_japanese_japan.932.vim runtime/lang/menu_ko_kr.euckr.vim runtime/lang/menu_ko_kr.utf-8.vim runtime/lang/menu_zh_cn.utf-8.vim |
diffstat | 7 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/lang/menu_chinese_gb.936.vim +++ b/runtime/lang/menu_chinese_gb.936.vim @@ -44,7 +44,7 @@ menutrans &File 猟周(&F) " File menuitems {{{1 menutrans &Open\.\.\.<Tab>:e 嬉蝕(&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp 壓介蛍完笥嬉蝕(&L)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew 壓炎禰匈嬉蝕\.\.\.<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew 壓炎禰匈嬉蝕(&T)\.\.\.<Tab>:tabnew menutrans &New<Tab>:enew 仟秀(&N)<Tab>:enew menutrans &Close<Tab>:close 購液(&C)<Tab>:close menutrans &Save<Tab>:w 隠贋(&S)<Tab>:w
--- a/runtime/lang/menu_ja_jp.euc-jp.vim +++ b/runtime/lang/menu_ja_jp.euc-jp.vim @@ -39,7 +39,7 @@ let g:menutrans_help_dialog = "ヘルプを検索したいコマンドもしくは単語を入力してください:\n\n挿入モードのコマンドには i_ を先頭に付加します. (例: i_CTRL-X)\nコマンドライン編集コマンドには c_ を先頭に付加します. (例: c_<Del>)\nオプションの名前には ' を付加します. (例: 'shiftwidth')" menutrans &File ファイル(&F) menutrans &Open\.\.\.<Tab>:e 開く(&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp 分割して開く(&L)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew タブページで開く<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew タブページで開く(&T)<Tab>:tabnew menutrans &New<Tab>:enew 新規作成(&N)<Tab>:enew menutrans &Close<Tab>:close 閉じる(&C)<Tab>:close menutrans &Save<Tab>:w 保存(&S)<Tab>:w
--- a/runtime/lang/menu_ja_jp.utf-8.vim +++ b/runtime/lang/menu_ja_jp.utf-8.vim @@ -39,7 +39,7 @@ let g:menutrans_help_dialog = "罎膣≪潟潟茯ュ:\n\n水ャ≪若潟潟 i_ 篁障. (箴: i_CTRL-X)\n潟潟ゃ括隈潟潟 c_ 篁障. (箴: c_<Del>)\n激с潟 ' 篁障. (箴: 'shiftwidth')" menutrans &File <ゃ(&F) menutrans &Open\.\.\.<Tab>:e (&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp 蚊(&L)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew 帥若吾ч<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew 帥若吾ч(&T)<Tab>:tabnew menutrans &New<Tab>:enew 域鋎(&N)<Tab>:enew menutrans &Close<Tab>:close (&C)<Tab>:close menutrans &Save<Tab>:w 篆絖(&S)<Tab>:w
--- a/runtime/lang/menu_japanese_japan.932.vim +++ b/runtime/lang/menu_japanese_japan.932.vim @@ -39,7 +39,7 @@ let g:menutrans_help_dialog = "wvR}hP:\n\n}[hR}h i_ t. (: i_CTRL-X)\nR}hCWR}h c_ t. (: c_<Del>)\nIvVO ' t. (: 'shiftwidth')" menutrans &File t@C(&F) menutrans &Open\.\.\.<Tab>:e J(&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp J(&L)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew ^uy[WJ<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew ^uy[WJ(&T)<Tab>:tabnew menutrans &New<Tab>:enew VK(&N)<Tab>:enew menutrans &Close<Tab>:close (&C)<Tab>:close menutrans &Save<Tab>:w (&S)<Tab>:w
--- a/runtime/lang/menu_ko_kr.euckr.vim +++ b/runtime/lang/menu_ko_kr.euckr.vim @@ -31,7 +31,7 @@ menutrans &About 戚\ 覗稽益轡精(&A) menutrans &File 督析(&F) menutrans &Open\.\.\.<Tab>:e 伸奄(&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp 蟹寛辞\ 伸奄(&l)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew 吐\ 伸奄\.\.\.<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew 吐\ 伸奄(&T)\.\.\.<Tab>:tabnew menutrans &New<Tab>:enew 歯稽錘(&N)<Tab>:enew menutrans &Close<Tab>:close 丸奄(&C)<Tab>:close menutrans &Save<Tab>:w 煽舌(&S)<Tab>:w
--- a/runtime/lang/menu_ko_kr.utf-8.vim +++ b/runtime/lang/menu_ko_kr.utf-8.vim @@ -31,7 +31,7 @@ menutrans &About \ 襦蠏碁(&A) menutrans &File (&F) menutrans &Open\.\.\.<Tab>:e 願鍵(&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp \ 願鍵(&l)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew \ 願鍵\.\.\.<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew \ 願鍵(&T)\.\.\.<Tab>:tabnew menutrans &New<Tab>:enew 襦(&N)<Tab>:enew menutrans &Close<Tab>:close 蠍(&C)<Tab>:close menutrans &Save<Tab>:w (&S)<Tab>:w
--- a/runtime/lang/menu_zh_cn.utf-8.vim +++ b/runtime/lang/menu_zh_cn.utf-8.vim @@ -44,7 +44,7 @@ menutrans &File 篁(&F) " File menuitems {{{1 menutrans &Open\.\.\.<Tab>:e 綣(&O)\.\.\.<Tab>:e menutrans Sp&lit-Open\.\.\.<Tab>:sp 腦f綣(&L)\.\.\.<Tab>:sp -menutrans Open\ &Tab\.\.\.<Tab>:tabnew 膈冗ゝ綣\.\.\.<Tab>:tabnew +menutrans Open\ &Tab\.\.\.<Tab>:tabnew 膈冗ゝ綣(&T)\.\.\.<Tab>:tabnew menutrans &New<Tab>:enew 医産(&N)<Tab>:enew menutrans &Close<Tab>:close 渇(&C)<Tab>:close menutrans &Save<Tab>:w 篆絖(&S)<Tab>:w