annotate src/po/Make_mvc.mak @ 33888:cb88e5c589d0 v9.0.2153

patch 9.0.2153: no support to build on OpenVMS Commit: https://github.com/vim/vim/commit/1c8e233cb8357b4f218bfa777f6d81456d0b43a2 Author: Zoltan Arpadffy <zoltan.arpadffy@gmail.com> Date: Tue Dec 5 16:04:23 2023 +0100 patch 9.0.2153: no support to build on OpenVMS Problem: no support to build on OpenVMS Solution: Add OpenVMS X86_64 platform port closes: #13623 Co-authored-by: errael <errael@raelity.com> Co-authored-by: K.Takata <kentkt@csc.jp> Signed-off-by: Zoltan Arpadffy <zoltan.arpadffy@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Dec 2023 15:16:25 +0100
parents 2b222b99faec
children c5a10c03afb8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
1 # Makefile for the Vim message translations for MSVC
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
2 # (based on make_ming.mak)
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
3 #
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
4 # Mike Williams <mrw@eandem.co.uk>
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
5 #
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
6 # Please read README_mvc.txt before using this file.
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
7 #
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
8
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
9 !IF [powershell -nologo -noprofile "exit $$psversiontable.psversion.major"] == 2
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
10 !ERROR The program "PowerShell" version 3.0 or higher is required to work
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
11 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
12
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
13 # get LANGUAGES, MOFILES, MOCONVERTED and others
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
14 !INCLUDE Make_all.mak
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
15
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
16 !IFNDEF VIMRUNTIME
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
17 VIMRUNTIME = ..\..\runtime
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
18 !ENDIF
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
19
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
20 PACKAGE = vim
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
21 # Correct the following line for the where executeable file vim is installed.
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
22 VIM = ..\vim
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
23
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
24 # Correct the following line for the directory where gettext et al is
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
25 # installed. Please do not put the path in quotes.
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
26 GETTEXT_PATH = D:\Programs\GetText\bin
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
27
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
28 MSGFMT = "$(GETTEXT_PATH)\msgfmt" -v
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
29 XGETTEXT = "$(GETTEXT_PATH)\xgettext"
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
30 MSGMERGE = "$(GETTEXT_PATH)\msgmerge"
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
31
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
32 # In case some package like GnuWin32, UnixUtils, gettext
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
33 # or something similar is installed on the system.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
34 # If the "iconv" program is installed on the system, but it is not registered
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
35 # in the %PATH% environment variable, then specify the full path to this file.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
36 !IF EXIST ("iconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
37 ICONV = "iconv.exe"
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
38 !ELSEIF EXIST ("$(GETTEXT_PATH)\iconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
39 ICONV="$(GETTEXT_PATH)\iconv.exe"
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
40 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
41
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
42 # In case some package like GnuWin32, UnixUtils
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
43 # or something similar is installed on the system.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
44 # If the "touch" program is installed on the system, but it is not registered
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
45 # in the %PATH% environment variable, then specify the full path to this file.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
46 !IF EXIST ("touch.exe")
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
47 TOUCH_TARGET = touch.exe $@
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
48 !ELSE
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
49 TOUCH_TARGET = @if exist $@ ( copy /b $@+,, ) else ( type nul >$@ )
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
50 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
51
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
52 MV = move /y
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
53 CP = copy /y
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
54 RM = del /q
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
55 MKD = mkdir
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
56 LS = dir
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
57
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
58 LSFLAGS = /b /on /l /s
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
59
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
60 INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
61
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
62 .SUFFIXES:
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
63 .SUFFIXES: .po .mo .pot .ck
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
64
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
65 all: $(MOFILES) $(MOCONVERTED)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
66
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
67 .po.ck:
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
68 $(VIM) -u NONE --noplugins -e -s -X --cmd "set enc=utf-8" -S check.vim \
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
69 -c "if error == 0 | q | else | num 2 | cq | endif" $<
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
70 $(TOUCH_TARGET)
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
71
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
72 check: $(CHECKFILES)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
73
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
74 checkclean:
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
75 $(RM) *.ck
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
76
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
77 converted: $(MOCONVERTED)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
78
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
79 checklanguage:
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
80 @if "$(LANGUAGE)"=="" (echo Set the environment variable ^%LANGUAGE^%. See README_mvc.txt. && exit 1)
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
81
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
82 nl.po:
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
83 @( echo \# > nl.po )
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
84
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
85 # Norwegian/Bokmal: "nb" is an alias for "no".
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
86 nb.po: no.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
87 $(CP) no.po nb.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
88
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
89 # Convert ja.po to create ja.sjis.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
90 ja.sjis.po: ja.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
91 @$(MAKE) -nologo -f Make_mvc.mak sjiscorr
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
92 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
93 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
94 "$(GETTEXT_PATH)\msgconv.exe" -t CP932 $? | .\sjiscorr.exe > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
95 !ELSEIF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
96 $(ICONV) -f UTF-8 -t CP932 $? | .\sjiscorr.exe > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
97 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
98 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
99 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
100 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
101 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
102 [System.Text.Encoding]::GetEncoding(932))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
103 type $@ | .\sjiscorr.exe > tmp.$@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
104 @$(MV) tmp.$@ $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
105 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
106 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
107 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
108 [System.Text.Encoding]::GetEncoding(932)) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
109 -replace \"`r`n\", \"`n\"; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
110 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
111 [System.Text.Encoding]::GetEncoding(932))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
112
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
113 sjiscorr: sjiscorr.c
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
114 $(CC) sjiscorr.c
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
115
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
116 # Convert ja.po to create ja.euc-jp.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
117 ja.euc-jp.po: ja.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
118 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
119 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
120 "$(GETTEXT_PATH)\msgconv.exe" -t EUC-JP -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
121 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
122 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
123 $(ICONV) -f UTF-8 -t EUC-JP $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
124 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
125 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
126 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
127 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
128 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
129 [System.Text.Encoding]::GetEncoding(20932))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
130 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
131 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
132 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
133 [System.Text.Encoding]::GetEncoding(20932)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
134 'charset=utf-8', 'charset=EUC-JP'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
135 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
136 [System.Text.Encoding]::GetEncoding(20932))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
137 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
138 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
139 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
140 [System.Text.Encoding]::GetEncoding(20932)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
141 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
142 '# Generated from ja.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
143 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
144 [System.Text.Encoding]::GetEncoding(20932))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
145
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
146 # Convert cs.po to create cs.cp1250.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
147 cs.cp1250.po: cs.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
148 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
149 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
150 "$(GETTEXT_PATH)\msgconv.exe" -t CP1250 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
151 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
152 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
153 $(ICONV) -f ISO-8859-2 -t CP1250 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
154 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
155 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
156 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
157 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
158 [System.Text.Encoding]::GetEncoding(28592)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
159 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
160 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
161 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
162 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
163 [System.Text.Encoding]::GetEncoding(1250)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
164 'charset=iso-8859-2', 'charset=CP1250'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
165 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
166 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
167 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
168 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
169 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
170 [System.Text.Encoding]::GetEncoding(1250)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
171 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
172 '# Generated from cs.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
173 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
174 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
175
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
176 # Convert pl.po to create pl.cp1250.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
177 pl.cp1250.po: pl.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
178 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
179 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
180 "$(GETTEXT_PATH)\msgconv.exe" -t CP1250 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
181 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
182 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
183 $(ICONV) -f ISO-8859-2 -t CP1250 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
184 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
185 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
186 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
187 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
188 [System.Text.Encoding]::GetEncoding(28592)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
189 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
190 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
191 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
192 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
193 [System.Text.Encoding]::GetEncoding(1250)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
194 'charset=iso-8859-2', 'charset=CP1250'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
195 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
196 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
197 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
198 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
199 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
200 [System.Text.Encoding]::GetEncoding(1250)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
201 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
202 '# Generated from pl.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
203 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
204 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
205
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
206 # Convert pl.po to create pl.UTF-8.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
207 pl.UTF-8.po: pl.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
208 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
209 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
210 "$(GETTEXT_PATH)\msgconv.exe" -t UTF-8 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
211 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
212 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
213 $(ICONV) -f ISO-8859-2 -t UTF-8 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
214 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
215 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
216 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
217 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
218 [System.Text.Encoding]::GetEncoding(28592)))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
219 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
220 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
221 (Get-Content -Raw -Encoding UTF8 $@ \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
222 ^| % {$$_-replace 'charset=iso-8859-2', 'charset=UTF-8'}) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
223 ^| 1>nul New-Item -Force -Path . -ItemType file -Name $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
224 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
225 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
226 (Get-Content -Raw -Encoding UTF8 $@ \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
227 ^| % {$$_-replace '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
228 '# Generated from pl.po, DO NOT EDIT'}) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
229 ^| 1>nul New-Item -Force -Path . -ItemType file -Name $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
230
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
231 # Convert sk.po to create sk.cp1250.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
232 sk.cp1250.po: sk.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
233 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
234 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
235 "$(GETTEXT_PATH)\msgconv.exe" -t CP1250 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
236 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
237 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
238 $(ICONV) -f ISO-8859-2 -t CP1250 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
239 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
240 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
241 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
242 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
243 [System.Text.Encoding]::GetEncoding(28592)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
244 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
245 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
246 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
247 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
248 [System.Text.Encoding]::GetEncoding(1250)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
249 'charset=iso-8859-2', 'charset=CP1250'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
250 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
251 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
252 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
253 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
254 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
255 [System.Text.Encoding]::GetEncoding(1250)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
256 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
257 '# Generated from sk.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
258 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
259 [System.Text.Encoding]::GetEncoding(1250))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
260
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
261 # Convert zh_CN.UTF-8.po to create zh_CN.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
262 zh_CN.po: zh_CN.UTF-8.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
263 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
264 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
265 "$(GETTEXT_PATH)\msgconv.exe" -t GB2312 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
266 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
267 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
268 $(ICONV) -f UTF-8 -t GB2312 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
269 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
270 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
271 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
272 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
273 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
274 [System.Text.Encoding]::GetEncoding(936))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
275
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
276 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
277 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
278 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
279 [System.Text.Encoding]::GetEncoding(936)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
280 'charset=UTF-8', 'charset=GB2312'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
281 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
282 [System.Text.Encoding]::GetEncoding(936))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
283 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
284 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
285 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
286 [System.Text.Encoding]::GetEncoding(936)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
287 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
288 '# Generated from zh_CN.UTF-8.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
289 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
290 [System.Text.Encoding]::GetEncoding(936))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
291
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
292 # Convert zh_CN.UTF-8.po to create zh_CN.cp936.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
293 # Set 'charset' to gbk to avoid that msfmt generates a warning.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
294 # This used to convert from zh_CN.po, but that results in a conversion error.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
295 zh_CN.cp936.po: zh_CN.UTF-8.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
296 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
297 !IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
298 $(ICONV) -f UTF-8 -t CP936 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
299 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
300 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
301 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
302 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
303 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
304 [System.Text.Encoding]::GetEncoding(20936))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
305
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
306 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
307 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
308 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
309 [System.Text.Encoding]::GetEncoding(20936)) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
310 -replace 'charset=UTF-8', 'charset=GBK'\
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
311 -replace '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
312 '# Generated from zh_CN.UTF-8.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
313 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
314 [System.Text.Encoding]::GetEncoding(20936))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
315
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
316 # Convert zh_TW.UTF-8.po to create zh_TW.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
317 zh_TW.po: zh_TW.UTF-8.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
318 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
319 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
320 "$(GETTEXT_PATH)\msgconv.exe" -t BIG5 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
321 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
322 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
323 $(ICONV) -f UTF-8 -t BIG5 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
324 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
325 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
326 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
327 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
328 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
329 [System.Text.Encoding]::GetEncoding(950))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
330
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
331 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
332 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
333 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
334 [System.Text.Encoding]::GetEncoding(950)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
335 'charset=UTF-8', 'charset=BIG5'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
336 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
337 [System.Text.Encoding]::GetEncoding(950))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
338 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
339 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
340 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
341 [System.Text.Encoding]::GetEncoding(950)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
342 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
343 '# Generated from zh_TW.UTF-8.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
344 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
345 [System.Text.Encoding]::GetEncoding(950))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
346
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
347 # Convert zh_TW.UTF-8.po to create zh_TW.po with backslash characters
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
348 # Requires doubling backslashes in the second byte. Don't depend on big5corr,
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
349 # it should only be compiled when zh_TW.po is outdated.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
350 #
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
351 # 06.11.23, added by Restorer:
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
352 # For more details, see:
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
353 # https://github.com/vim/vim/pull/3261
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
354 # https://github.com/vim/vim/pull/3476
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
355 # https://github.com/vim/vim/pull/12153
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
356 # (read all comments)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
357 #
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
358 # I checked the workability on the list of backslash characters
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
359 # specified in zh_TW.UTF-8.po. It works.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
360 # But it is better to have someone native speaker check it.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
361 #
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
362
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
363 #zh_TW.po: zh_TW.UTF-8.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
364 # @$(MAKE) -nologo -f Make_mvc.mak big5corr
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
365 # -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
366 #!IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
367 # "$(GETTEXT_PATH)\msgconv.exe" -t BIG5 $? | .\big5corr.exe > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
368 #!ELSEIF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
369 # $(ICONV) -f UTF-8 -t BIG5 $? | .\big5corr.exe > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
370 #!ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
371 # powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
372 # [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
373 # [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
374 # [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
375 # [System.Text.Encoding]::GetEncoding(950))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
376 # type $@ | .\big5corr.exe > tmp.$@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
377 # @$(MV) tmp.$@ $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
378 #!ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
379 # powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
380 # $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
381 # [System.Text.Encoding]::GetEncoding(950)) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
382 # -replace \"`r`n\", \"`n\"; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
383 # [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
384 # [System.Text.Encoding]::GetEncoding(950))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
385
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
386 # see above in the zh_TW.po conversion section for backslashes.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
387 #big5corr: big5corr.c
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
388 # $(CC) big5corr.c
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
389
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
390 # Convert ko.UTF-8.po to create ko.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
391 ko.po: ko.UTF-8.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
392 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
393 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
394 "$(GETTEXT_PATH)\msgconv.exe" -t EUC-KR -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
395 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
396 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
397 $(ICONV) -f UTF-8 -t EUC-KR $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
398 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
399 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
400 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
401 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
402 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
403 [System.Text.Encoding]::GetEncoding(51949))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
404
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
405 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
406 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
407 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
408 [System.Text.Encoding]::GetEncoding(51949)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
409 'charset=UTF-8', 'charset=EUC-KR'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
410 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
411 [System.Text.Encoding]::GetEncoding(51949))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
412 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
413 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
414 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
415 [System.Text.Encoding]::GetEncoding(51949)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
416 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
417 '# Generated from ko.UTF-8.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
418 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
419 [System.Text.Encoding]::GetEncoding(51949))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
420
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
421 # Convert ru.po to create ru.cp1251.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
422 ru.cp1251.po: ru.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
423 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
424 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
425 "$(GETTEXT_PATH)\msgconv.exe" -t CP1251 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
426 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
427 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
428 $(ICONV) -f UTF-8 -t CP1251 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
429 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
430 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
431 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
432 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
433 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
434 [System.Text.Encoding]::GetEncoding(1251))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
435
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
436 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
437 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
438 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
439 [System.Text.Encoding]::GetEncoding(1251)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
440 'charset=UTF-8', 'charset=CP1251'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
441 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
442 [System.Text.Encoding]::GetEncoding(1251))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
443 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
444 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
445 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
446 [System.Text.Encoding]::GetEncoding(1251)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
447 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
448 '# Generated from ru.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
449 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
450 [System.Text.Encoding]::GetEncoding(1251))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
451
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
452 # Convert uk.po to create uk.cp1251.po.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
453 uk.cp1251.po: uk.po
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
454 -$(RM) $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
455 !IF EXIST ("$(GETTEXT_PATH)\msgconv.exe")
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
456 "$(GETTEXT_PATH)\msgconv.exe" -t CP1251 -o $@ $?
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
457 !ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
458 ! IF DEFINED (ICONV)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
459 $(ICONV) -f UTF-8 -t CP1251 $? > $@
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
460 ! ELSE
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
461 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
462 [System.IO.File]::WriteAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
463 [System.IO.File]::ReadAllText(\"$?\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
464 [System.Text.Encoding]::GetEncoding(65001)), \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
465 [System.Text.Encoding]::GetEncoding(1251))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
466
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
467 ! ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
468 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
469 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
470 [System.Text.Encoding]::GetEncoding(1251)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
471 'charset=UTF-8', 'charset=CP1251'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
472 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
473 [System.Text.Encoding]::GetEncoding(1251))
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
474 !ENDIF
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
475 powershell -nologo -noprofile -Command \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
476 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
477 [System.Text.Encoding]::GetEncoding(1251)) -replace \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
478 '# Original translations', \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
479 '# Generated from uk.po, DO NOT EDIT'; \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
480 [System.IO.File]::WriteAllText(\"$@\", $$out, \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
481 [System.Text.Encoding]::GetEncoding(1251))
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
482
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
483 .po.mo:
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
484 set OLD_PO_FILE_INPUT=yes
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
485 $(MSGFMT) -o $@ $<
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
486
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
487 PO_INPUTLIST = \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
488 ..\*.c \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
489 ..\if_perl.xs \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
490 ..\GvimExt\gvimext.cpp \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
491 ..\errors.h \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
492 ..\globals.h \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
493 ..\if_py_both.h \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
494 ..\vim.h \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
495 gvim.desktop.in \
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
496 vim.desktop.in
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
497
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
498 files: $(PO_INPUTLIST)
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
499 $(LS) $(LSFLAGS) $(PO_INPUTLIST) > .\files
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
500
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
501 first_time: checklanguage files
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
502 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(LANGUAGE).po \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
503 $(PO_VIM_INPUTLIST)
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
504 set OLD_PO_FILE_INPUT=yes
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
505 set OLD_PO_FILE_OUTPUT=yes
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
506 $(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments $(XGETTEXT_KEYWORDS) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
507 --files-from=.\files $(PO_VIM_JSLIST)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
508 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(LANGUAGE).po \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
509 $(PO_VIM_INPUTLIST)
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
510 $(RM) *.js
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
511
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
512 $(PACKAGE).pot: files
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
513 $(VIM) -u NONE --not-a-term -S tojavascript.vim $(PACKAGE).pot \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
514 $(PO_VIM_INPUTLIST)
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
515 set OLD_PO_FILE_INPUT=yes
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
516 set OLD_PO_FILE_OUTPUT=yes
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
517 $(XGETTEXT) --default-domain=$(PACKAGE) --add-comments $(XGETTEXT_KEYWORDS) \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
518 --files-from=.\files $(PO_VIM_JSLIST)
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
519 $(MV) $(PACKAGE).po $(PACKAGE).pot
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
520 $(VIM) -u NONE --not-a-term -S fixfilenames.vim $(PACKAGE).pot \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
521 $(PO_VIM_INPUTLIST)
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
522 $(RM) *.js
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
523
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
524 # When updating ja.sjis.po there are a bunch of errors and a crash.
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
525 # The files that are converted to a different encoding clearly state "DO NOT EDIT".
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
526 update-po: $(MOFILES:.mo=)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
527
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
528 # Don't add a dependency here, we only want to update the .po files manually
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
529 $(LANGUAGES):
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
530 @$(MAKE) -nologo -f Make_mvc.mak $(PACKAGE).pot GETTEXT_PATH="$(GETTEXT_PATH)"
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
531 $(CP) $@.po $@.po.orig
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
532 $(MV) $@.po $@.po.old
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
533 $(MSGMERGE) $@.po.old $(PACKAGE).pot -o $@.po
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
534 $(RM) $@.po.old
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
535
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
536 install: checklanguage $(LANGUAGE).mo
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
537 if not exist $(INSTALLDIR) $(MKD) $(INSTALLDIR)
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
538 $(CP) $(LANGUAGE).mo $(INSTALLDIR)\$(PACKAGE).mo
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
539
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
540 install-all: all
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
541 for %%l in ($(LANGUAGES)) do @if not exist $(VIMRUNTIME)\lang\%%l\LC_MESSAGES \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
542 $(MKD) $(VIMRUNTIME)\lang\%%l\LC_MESSAGES
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
543 for %%l in ($(LANGUAGES)) do @$(CP) %%l.mo \
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
544 $(VIMRUNTIME)\lang\%%l\LC_MESSAGES\$(PACKAGE).mo
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
545
33831
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
546 cleanup-po: checklanguage $(LANGUAGE).po
2b222b99faec patch 9.0.2130: some errors with translation Makefiles
Christian Brabandt <cb@256bit.org>
parents: 33823
diff changeset
547 $(VIM) -u NONE -e -X -S cleanup.vim -c wq $(LANGUAGE).po
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
548
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
549 cleanup-po-all: $(POFILES)
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
550 !$(VIM) -u NONE -e -X -S cleanup.vim -c wq $**
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
551
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
552 clean: checkclean
32670
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
553 $(RM) *.mo
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
554 $(RM) *.pot
695b50472e85 Fix line endings issue
Christian Brabandt <cb@256bit.org>
parents: 32669
diff changeset
555 $(RM) files
33823
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
556 $(RM) sjiscorr.obj sjiscorr.exe
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
557 # $(RM) big5corr.obj big5corr.exe
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
558
45c0a5330758 patch 9.0.2127: translation Makefiles can be improved
Christian Brabandt <cb@256bit.org>
parents: 32670
diff changeset
559 # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make: