annotate src/po/Make_ming.mak @ 6332:65e72747feca v7.4.499

updated for version 7.4.499 Problem: substitute() can be slow with long strings. Solution: Store a pointer to the end, instead of calling strlen() every time. (Ozaki Kiichi)
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Nov 2014 16:03:44 +0100
parents f4f8014d516e
children 7e367104f6b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 # Makefile for the Vim message translations for mingw32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 # Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 # Read the README_ming.txt file before using it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 # Use at your own risk but with care, it could even kill your canary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 # Previous to all you must have the environment variable LANGUAGE set to your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 # language (xx) and add it to the next three lines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 #
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
13 LANGUAGES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
14 af \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
15 ca \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
16 cs \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
17 de \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
18 en_GB \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 434
diff changeset
19 eo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
20 es \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 434
diff changeset
21 fi \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
22 fr \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
23 ga \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
24 it \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
25 ja \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
26 ko \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
27 no \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
28 pl \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1621
diff changeset
29 pt_BR \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
30 ru \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
31 sk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
32 sv \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
33 uk \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
34 vi \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
35 zh_CN \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
36 zh_CN.UTF-8\
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
37 zh_TW \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
38 zh_TW.UTF-8 \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
39
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
40 MOFILES = \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
41 af.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
42 ca.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
43 cs.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
44 de.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
45 en_GB.mo \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 434
diff changeset
46 eo.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
47 es.mo \
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 434
diff changeset
48 fi.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
49 fr.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
50 ga.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
51 it.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
52 ja.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
53 ko.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
54 no.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
55 pl.mo \
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1621
diff changeset
56 pt_BR.mo \
434
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
57 ru.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
58 sk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
59 sv.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
60 uk.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
61 vi.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
62 zh_CN.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
63 zh_CN.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
64 zh_TW.UTF-8.mo \
9595cf1d80a7 updated for version 7.0112
vimboss
parents: 170
diff changeset
65 zh_TW.mo \
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 PACKAGE = vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 # Uncomment one of the lines below or modify it to put the path to your
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 # gettex binaries; I use the first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 #GETTEXT_PATH = C:/gettext.win32/bin/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 #GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 #GETTEXT_PATH = C:/cygwin/bin/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 MSGFMT = $(GETTEXT_PATH)msgfmt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 XGETTEXT = $(GETTEXT_PATH)xgettext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 MSGMERGE = $(GETTEXT_PATH)msgmerge
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 MV = move
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 CP = copy
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 RM = del
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 MKD = mkdir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 .SUFFIXES:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 .SUFFIXES: .po .mo .pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 .PHONY: first_time all install clean $(LANGUAGES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 .po.mo:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 $(MSGFMT) -o $@ $<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 all: $(MOFILES)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 first_time:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 $(XGETTEXT) --default-domain=$(LANGUAGE) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 $(LANGUAGES):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 $(XGETTEXT) --default-domain=$(PACKAGE) \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 --add-comments --keyword=_ --keyword=N_ $(wildcard ../*.c) ../if_perl.xs $(wildcard ../globals.h)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 $(MV) $(PACKAGE).po $(PACKAGE).pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 $(CP) $@.po $@.po.orig
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 $(MV) $@.po $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 $(RM) $@.po.old
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 install:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 $(MKD) $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 $(CP) $(LANGUAGE).mo $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES\$(PACKAGE).mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 clean:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 $(RM) *.mo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 $(RM) *.pot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115