Commit c27ef2a
committed
Add support for localized message transalations in MacVim
This enables localized translated messages in MacVim, instead of only
using English.
- Get Travis to compile MacVim with gettext dependencies which is a
pre-requisite for multilang localized messages. Also add a quick
regression test to make sure localized messages will keep working.
- Add a post-build phase to copy all locale .mo files to VIMRUNTIME/lang
so they will be bundled along with the rest in the app package. Normal
Vim usually installs the localized files to a global location like
/usr/local/share/locale/ but macOS applications are all self-contained
bundles we don't want to do this. Use VIMRUNTIME/lang as the
destination because that's also what the Windows build uses and
existing code already knows to use it by using bindtextdomain.
- Fix vim.h header to not unbind bindtextdomain for MacVim. There is
previously a little bit of hack there where it would only use
bindtextdomain when DYNAMIC_GETTEXT is set because that's only set for
Windows. Just add a special case for MacVim for now to get similar
behavior to Windows.
Close #9911 parent a530cca commit c27ef2a
File tree
4 files changed
+44
-2
lines changed- src
- MacVim/MacVim.xcodeproj
4 files changed
+44
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
| 839 | + | |
839 | 840 | | |
840 | 841 | | |
841 | 842 | | |
| |||
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
986 | 1006 | | |
987 | 1007 | | |
988 | 1008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3745 | 3745 | | |
3746 | 3746 | | |
3747 | 3747 | | |
3748 | | - | |
| 3748 | + | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | 3751 | | |
| |||
3785 | 3785 | | |
3786 | 3786 | | |
3787 | 3787 | | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
| 3792 | + | |
| 3793 | + | |
3788 | 3794 | | |
3789 | 3795 | | |
3790 | 3796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| |||
563 | 568 | | |
564 | 569 | | |
565 | 570 | | |
| 571 | + | |
566 | 572 | | |
567 | 573 | | |
568 | 574 | | |
| |||
0 commit comments