mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-02-01 11:33:15 +01:00
Now support a `-IgnoreUserDefaults 1` flag that can be passed to MacVim at launch, which would cause MacVim to open with the default settings instead of whatever the user has previously set. This only works by overriding the MacVim-specific application defaults, and won't affect Sparkle settings and other macOS native ones. Also add a new menu item / macaction to open a new Vim window in clean mode (which would prevent loading in vimrc and plugins). It works by launching Vim using a `--clean` flag. The alt menu would open a clean Vim window without using defaults.vim as well for the most vanilla Vim. Currently only added Chinese/Japanese translations for the menu items. Users who want other languages to be localized will need to file a pull request themselves. This feature is useful for users, but the main reason is to serve as a pre-requisite for adding XCTest test cases to MacVim and needing a way to launch it in a clean and predictable way.
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.