Files
Yee Cheng Chin 99e9e4143e Turn on Vim menu translations and add MacVim-specific ones
Remove langmenu=none from the MacVim vimrc to enable Vim's menu
translations.

Menu cleanups:
- Remove Emoji character picker menu item as macOS already adds it
  automatically to Edit menu. No need to do that ourselves.
- Rename some menus to fit macOS more and so we can use an official
  Apple translations (e.g. Select Next Tab renamed to "Show Next Tab").

Also, modify extract-specific-localised-strings.swift for MacVim. This
sets up only the locales we need, and add a new mode to generate Vim
menu translations and can be toggled using a command-line parameter.

Vim menu translations
--------------------
Vim already has menu translations, but need to add translations for
MacVim-specific menus. Add menu translations for MacVim in a new
subfolder. Each locale has two new translation files: one with Apple
official translations extracted using the script, and the other one with
custom translations (they were mostly done by referencing existing
translations, e.g. "About MacVim").  Also added a README to try to make
it clear what's going on.
- Not all menu items are translated yet. There are a couple left (e.g.
  "Toggle Full Screen" and "Stay in Front") but for it's good for now,
  and we can add those translations in later.

MacVim xib translations
--------------------
Convert MainMenu.xib to Base localization and add per-locale strings
files. The top parts are the manually translated strings (well, mostly
from guessworks with help from Google translte), and the bottom parts
are the Apple official ones coming from the script. This mostly affects
the menu that's shown when no Vim instance is opened, and also the main
app menu called "MacVim". Other menu items when there is a window opened
use the Vim menu translations instead.

Other MacVim GUI items like preference pane are currently not localized
as those would likely need someone to go through and actually manually
translate them, and it would be tricky to keep them up to date if we
make changes, which happens from time to time.

Locales
--------------------
- No MacVim translations (Apple didn't have official translations for
  them):
    - af_af.latin1
    - eo.utf-8
    - is_is.utf-8
    - sl_si.utf-8
    - sr_rs.utf-8
- Added MacVim translations:
    - ca_es
    - cs_cz
    - da
    - de_de
    - es_es
    - fi_fi
    - fr_fr
    - hu_hu
    - it_it
    - ja
    - ko_kr
    - nl_nl
    - no_no
    - pl_pl
    - pt_br
    - pt_pt
    - ru_ru
    - sv_se
    - tr_tr
    - zh_cn
    - zh_tw

Close #776
2020-10-02 17:54:17 -07:00

984 B

This folder contains MacVim-specific menu translations. While Vim already has menu translations, MacVim has some unique menu items and some Vim menu items are renamed to fit Apple's HIG better. As such, they need to be translated as well. Note that not 100% of the menu items in all locales are all translated right now, but the majority of them should be covered.

Each locale has up to two translation files that will be sourced into the main menu translation file for that locale:

  • .apple.vim: This contains official Apple translations for common menu items such as "New Window" and "Font". They were auto-generated by using a script (src/MacVim/scripts/extract-specific-localised-strings.swift) to extracts official translations from Apple Developer's glossaries (https://developer.apple.com/download/more/?=glossaries).
  • .custom.vim: This contains custom translations that don't have easy official translations to look up and have to be manually translated.