Mercurial > vim
annotate src/po/Make_cyg.mak @ 26682:64dac9ff015e v8.2.3870
patch 8.2.3870: MS-Windows: wrong dir when using right-click context menu
Commit: https://github.com/vim/vim/commit/1aeccdb464d81f0af047b399cbad160307a91f7c
Author: Nir Lichtman <nir@lichtman.org>
Date: Wed Dec 22 15:21:15 2021 +0000
patch 8.2.3870: MS-Windows: wrong dir when using right-click context menu
Problem: MS-Windows: wrong working directory when opening two files with
right-click context menu. (Gabriel Dupras)
Solution: Use the working directory and pass it on to the process creation.
(Nir Lichtman, closes #9382, closes #8874)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 22 Dec 2021 16:30:04 +0100 |
parents | aa91480771fe |
children | 2fc568b082ef |
rev | line source |
---|---|
389 | 1 # Makefile for the Vim message translations for Cygwin |
2 # by Tony Mechelynck <antoine.mechelynck@skynet.be> | |
3 # after Make_ming.mak by | |
4 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es> | |
5 # | |
6 # Read the README_ming.txt file before using it. | |
7 # | |
8 # Use at your own risk but with care, it could even kill your canary. | |
9 # | |
10 | |
11 ifndef VIMRUNTIME | |
12 VIMRUNTIME = ../../runtime | |
13 endif | |
14 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
15 # get LANGUAGES, MOFILES and MOCONVERTED |
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
16 include Make_all.mak |
389 | 17 |
18 PACKAGE = vim | |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
19 VIM = ../vim |
389 | 20 |
21 # Uncomment one of the lines below or modify it to put the path to your | |
412 | 22 # gettext binaries |
389 | 23 ifndef GETTEXT_PATH |
24 #GETTEXT_PATH = C:/gettext.win32/bin/ | |
25 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/ | |
26 GETTEXT_PATH = /bin/ | |
27 endif | |
28 | |
412 | 29 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext |
30 # tools 0.10.37, which use a slightly different .po file format that is not | |
31 # compatible with Solaris (and old gettext implementations) unless these are | |
32 # set. gettext 0.10.36 will not work! | |
33 MSGFMT = OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v | |
34 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)xgettext | |
35 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)msgmerge | |
389 | 36 |
37 # MV = move | |
38 # CP = copy | |
39 # RM = del | |
40 # MKD = mkdir | |
41 MV = mv -f | |
42 CP = cp -f | |
43 RM = rm -f | |
44 MKD = mkdir -p | |
45 | |
46 .SUFFIXES: | |
47 .SUFFIXES: .po .mo .pot | |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
48 .PHONY: first_time all install install-all clean $(LANGUAGES) |
389 | 49 |
50 .po.mo: | |
51 $(MSGFMT) -o $@ $< | |
52 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
53 all: $(MOFILES) $(MOCONVERTED) |
389 | 54 |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
55 PO_INPUTLIST = \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
56 $(wildcard ../*.c) \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
57 ../if_perl.xs \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
58 ../GvimExt/gvimext.cpp \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
59 ../errors.h \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
60 ../globals.h \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
61 ../if_py_both.h \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
62 ../vim.h \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
63 gvim.desktop.in \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
64 vim.desktop.in |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
65 |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
66 PO_VIM_INPUTLIST = \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
67 ../../runtime/optwin.vim |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
68 |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
69 PO_VIM_JSLIST = \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
70 optwin.js |
389 | 71 |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
72 first_time: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST) |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
73 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST) |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
74 $(XGETTEXT) --default-domain=$(LANGUAGE) \ |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
75 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 $(PO_INPUTLIST) $(PO_VIM_JSLIST) |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
76 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).pot $(PO_VIM_INPUTLIST) |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
77 $(RM) *.js |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
78 |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
79 $(PACKAGE).pot: $(PO_INPUTLIST) $(PO_VIM_INPUTLIST) |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
80 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST) |
389 | 81 $(XGETTEXT) --default-domain=$(PACKAGE) \ |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
82 --add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2 $(PO_INPUTLIST) $(PO_VIM_JSLIST) |
389 | 83 $(MV) $(PACKAGE).po $(PACKAGE).pot |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
84 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST) |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
85 $(RM) *.js |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
86 |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
87 # Don't add a dependency here, we only want to update the .po files manually |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
88 $(LANGUAGES): |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
89 @$(MAKE) -f Make_cyg.mak $(PACKAGE).pot GETTEXT_PATH=$(GETTEXT_PATH) |
389 | 90 $(CP) $@.po $@.po.orig |
91 $(MV) $@.po $@.po.old | |
92 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
93 $(RM) $@.po.old | |
94 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
95 install: $(MOFILES) $(MOCONVERTED) |
389 | 96 for TARGET in $(LANGUAGES); do \ |
97 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \ | |
98 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \ | |
99 done | |
100 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2098
diff
changeset
|
101 install-all: install |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2098
diff
changeset
|
102 |
389 | 103 clean: |
104 $(RM) *.mo | |
105 $(RM) *.pot |