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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 # Makefile for the Vim message translations for Cygwin
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 # by Tony Mechelynck <antoine.mechelynck@skynet.be>
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
3 # after Make_ming.mak by
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
4 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5 #
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 # Read the README_ming.txt file before using it.
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 #
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 # Use at your own risk but with care, it could even kill your canary.
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9 #
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 ifndef VIMRUNTIME
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12 VIMRUNTIME = ../../runtime
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 # Uncomment one of the lines below or modify it to put the path to your
412
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
22 # gettext binaries
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 ifndef GETTEXT_PATH
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 #GETTEXT_PATH = C:/gettext.win32/bin/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 GETTEXT_PATH = /bin/
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28
412
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
29 # The OLD_PO_FILE_INPUT and OLD_PO_FILE_OUTPUT are for the new GNU gettext
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
30 # tools 0.10.37, which use a slightly different .po file format that is not
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
31 # compatible with Solaris (and old gettext implementations) unless these are
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
32 # set. gettext 0.10.36 will not work!
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
33 MSGFMT = OLD_PO_FILE_INPUT=yes $(GETTEXT_PATH)msgfmt -v
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
34 XGETTEXT = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)xgettext
53c36fa7dc29 updated for version 7.0108
vimboss
parents: 406
diff changeset
35 MSGMERGE = OLD_PO_FILE_INPUT=yes OLD_PO_FILE_OUTPUT=yes $(GETTEXT_PATH)msgmerge
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 # MV = move
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 # CP = copy
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39 # RM = del
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 # MKD = mkdir
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 MV = mv -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42 CP = cp -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 RM = rm -f
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 MKD = mkdir -p
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 .SUFFIXES:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50 .po.mo:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 $(MSGFMT) -o $@ $<
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
53 all: $(MOFILES) $(MOCONVERTED)
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
84 $(CP) $@.po $@.po.orig
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85 $(MV) $@.po $@.po.old
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
86 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 $(RM) $@.po.old
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88
14181
a36fb263c35e patch 8.1.0108: no Danish translations
Christian Brabandt <cb@256bit.org>
parents: 13802
diff changeset
89 install: $(MOFILES) $(MOCONVERTED)
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90 for TARGET in $(LANGUAGES); do \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
91 $(MKD) $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES ; \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
92 $(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
93 done
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
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
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
97 clean:
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
98 $(RM) *.mo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
99 $(RM) *.pot