Skip to content

Commit 2f7fa65

Browse files
committed
Fix MacVim's Korean menu translations causing startup error
Apple's Korean translations contain individual "." instead of using ellipsis, and the extraction script wasn't escapting them when using them in `menutrans` commands. Add the escape and re-generate the Korean menu translations. Fix macvim-dev#1278
1 parent 6b26957 commit 2f7fa65

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

runtime/lang/macvim_menu/menu_ko_kr.utf-8.apple.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ menutrans Open… 열기…
77
menutrans Open\ Recent 최근\ 사용\ 열기
88
menutrans Close\ Window<Tab>:qa 윈도우\ 닫기
99
menutrans Close<Tab>:q 닫기
10-
menutrans Save\ As…<Tab>:sav 별도\ 저장...
10+
menutrans Save\ As…<Tab>:sav 별도\ 저장\.\.\.
1111
menutrans Save\ All 모두\ 저장
1212
menutrans Find 찾기
1313
menutrans Find… 찾기…

src/MacVim/scripts/extract-specific-localised-strings.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ for localisation in localisations {
363363
else {
364364
let escapedTranslation = translation.replacingOccurrences(of: " ", with: "\\ ", options: .literal, range: nil)
365365
.replacingOccurrences(of: " ", with: "\\ ", options: .literal, range: nil)
366+
.replacingOccurrences(of: ".", with: "\\.", options: .literal, range: nil)
366367

367368
return """
368369
menutrans \(neededLocalisation.targetKey) \(escapedTranslation)

0 commit comments

Comments
 (0)