Mercurial > vim
annotate src/po/Make_cyg.mak @ 32566:58df5a4cd3bc v9.0.1615
patch 9.0.1615: URL shortcut files are not recognized
Commit: https://github.com/vim/vim/commit/cdb7b4c50826df254d2e5ba8abd211e49b7a9784
Author: ObserverOfTime <chronobserver@disroot.org>
Date: Wed Jun 7 18:27:01 2023 +0100
patch 9.0.1615: URL shortcut files are not recognized
Problem: URL shortcut files are not recognized.
Solution: Add a pattern for URL shortcut files. (closes https://github.com/vim/vim/issues/12474)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Jun 2023 19:30:05 +0200 |
parents | 0d2b75395eda |
children | 448aef880252 |
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 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
|
67 $(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
|
68 $(XGETTEXT) --default-domain=$(LANGUAGE) \ |
32499
0d2b75395eda
patch 9.0.1581: translation does not work for plural argument
Bram Moolenaar <Bram@vim.org>
parents:
32485
diff
changeset
|
69 --add-comments $(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST) |
22071
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
70 $(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
|
71 $(RM) *.js |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
72 |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
73 $(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
|
74 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot $(PO_VIM_INPUTLIST) |
389 | 75 $(XGETTEXT) --default-domain=$(PACKAGE) \ |
32499
0d2b75395eda
patch 9.0.1581: translation does not work for plural argument
Bram Moolenaar <Bram@vim.org>
parents:
32485
diff
changeset
|
76 --add-comments $(XGETTEXT_KEYWORDS) $(PO_INPUTLIST) $(PO_VIM_JSLIST) |
389 | 77 $(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
|
78 $(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
|
79 $(RM) *.js |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
80 |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
81 # 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
|
82 $(LANGUAGES): |
aa91480771fe
patch 8.2.1585: messages in globals.h not translated
Bram Moolenaar <Bram@vim.org>
parents:
14181
diff
changeset
|
83 @$(MAKE) -f Make_cyg.mak $(PACKAGE).pot GETTEXT_PATH=$(GETTEXT_PATH) |
389 | 84 $(CP) $@.po $@.po.orig |
85 $(MV) $@.po $@.po.old | |
86 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po | |
87 $(RM) $@.po.old | |
88 | |
14181
a36fb263c35e
patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents:
13802
diff
changeset
|
89 install: $(MOFILES) $(MOCONVERTED) |
389 | 90 for TARGET in $(LANGUAGES); do \ |
91 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \ | |
92 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \ | |
93 done | |
94 | |
7374
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2098
diff
changeset
|
95 install-all: install |
7e367104f6b6
commit https://github.com/vim/vim/commit/013806229a1e15480592f6bc8453130685ec750b
Christian Brabandt <cb@256bit.org>
parents:
2098
diff
changeset
|
96 |
389 | 97 clean: |
98 $(RM) *.mo | |
99 $(RM) *.pot |