Skip to content

Commit

Permalink
Update src/po/*.mak for Win32
Browse files Browse the repository at this point in the history
Set some variables for processing ja.po and zh_CN.cp936.
  • Loading branch information
k-takata committed Dec 28, 2015
1 parent 1b407f8 commit de46bb5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
8 changes: 6 additions & 2 deletions src/po/Make_cyg.mak
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
# Use at your own risk but with care, it could even kill your canary.
#

# TODO: GNU gettext 0.19.5.1 cannot process ja.sjis and zh_CN.cp936.

ifndef VIMRUNTIME
VIMRUNTIME = ../../runtime
endif
Expand All @@ -29,6 +27,7 @@ LANGUAGES = \
it \
ja \
ja.euc-jp \
ja.sjis \
ko \
ko.UTF-8 \
nb \
Expand All @@ -47,6 +46,7 @@ LANGUAGES = \
uk.cp1251 \
vi \
zh_CN \
zh_CN.cp936 \
zh_CN.UTF-8 \
zh_TW \
zh_TW.UTF-8 \
Expand All @@ -66,6 +66,7 @@ MOFILES = \
it.mo \
ja.euc-jp.mo \
ja.mo \
ja.sjis.mo \
ko.mo \
ko.UTF-8.mo \
nb.mo \
Expand All @@ -84,6 +85,7 @@ MOFILES = \
uk.mo \
vi.mo \
zh_CN.mo \
zh_CN.cp936.mo \
zh_CN.UTF-8.mo \
zh_TW.mo \
zh_TW.UTF-8.mo \
Expand Down Expand Up @@ -143,6 +145,8 @@ install: $(MOFILES)
$(CP) $$TARGET.mo $(VIMRUNTIME)/lang/$$TARGET/LC_MESSAGES/$(PACKAGE).mo ; \
done

install-all: install

clean:
$(RM) *.mo
$(RM) *.pot
Expand Down
14 changes: 10 additions & 4 deletions src/po/Make_ming.mak
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
# language (xx) and add it to the next three lines.
#

# TODO: GNU gettext 0.19.5.1 cannot process ja.sjis and zh_CN.cp936.
ifndef VIMRUNTIME
VIMRUNTIME = ..\..\runtime
endif

LANGUAGES = \
af \
Expand All @@ -27,6 +29,7 @@ LANGUAGES = \
it \
ja \
ja.euc-jp \
ja.sjis \
ko \
ko.UTF-8 \
nb \
Expand All @@ -45,6 +48,7 @@ LANGUAGES = \
uk.cp1251 \
vi \
zh_CN \
zh_CN.cp936 \
zh_CN.UTF-8 \
zh_TW \
zh_TW.UTF-8 \
Expand All @@ -64,6 +68,7 @@ MOFILES = \
it.mo \
ja.euc-jp.mo \
ja.mo \
ja.sjis.mo \
ko.mo \
ko.UTF-8.mo \
nb.mo \
Expand All @@ -82,6 +87,7 @@ MOFILES = \
uk.mo \
vi.mo \
zh_CN.mo \
zh_CN.cp936.mo \
zh_CN.UTF-8.mo \
zh_TW.mo \
zh_TW.UTF-8.mo \
Expand All @@ -94,9 +100,9 @@ PACKAGE = vim
#GETTEXT_PATH = C:/gettext-0.10.35-w32/win32/Release/
#GETTEXT_PATH = C:/cygwin/bin/

MSGFMT = $(GETTEXT_PATH)msgfmt
XGETTEXT = $(GETTEXT_PATH)xgettext
MSGMERGE = $(GETTEXT_PATH)msgmerge
MSGFMT = set OLD_PO_FILE_INPUT=yes && $(GETTEXT_PATH)msgfmt -v
XGETTEXT = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)xgettext
MSGMERGE = set OLD_PO_FILE_INPUT=yes && set OLD_PO_FILE_OUTPUT=yes && $(GETTEXT_PATH)msgmerge

MV = move
CP = copy
Expand Down
15 changes: 13 additions & 2 deletions src/po/Make_mvc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
# Please read README_mvc.txt before using this file.
#

# TODO: GNU gettext 0.19.5.1 cannot process ja.sjis and zh_CN.cp936.
!ifndef VIMRUNTIME
VIMRUNTIME = ..\..\runtime
!endif

LANGUAGES = \
af \
Expand All @@ -23,6 +25,7 @@ LANGUAGES = \
it \
ja \
ja.euc-jp \
ja.sjis \
ko \
ko.UTF-8 \
nb \
Expand All @@ -41,6 +44,7 @@ LANGUAGES = \
uk.cp1251 \
vi \
zh_CN \
zh_CN.cp936 \
zh_CN.UTF-8 \
zh_TW \
zh_TW.UTF-8 \
Expand All @@ -60,6 +64,7 @@ MOFILES = \
it.mo \
ja.euc-jp.mo \
ja.mo \
ja.sjis.mo \
ko.mo \
ko.UTF-8.mo \
nb.mo \
Expand All @@ -78,6 +83,7 @@ MOFILES = \
uk.mo \
vi.mo \
zh_CN.mo \
zh_CN.cp936.mo \
zh_CN.UTF-8.mo \
zh_TW.mo \
zh_TW.UTF-8.mo \
Expand All @@ -87,7 +93,7 @@ PACKAGE = vim
# Correct the following line for the directory where gettext et al is installed
GETTEXT_PATH = H:\gettext.0.14.4\bin

MSGFMT = $(GETTEXT_PATH)\msgfmt
MSGFMT = $(GETTEXT_PATH)\msgfmt -v
XGETTEXT = $(GETTEXT_PATH)\xgettext
MSGMERGE = $(GETTEXT_PATH)\msgmerge

Expand All @@ -105,6 +111,7 @@ INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES
.SUFFIXES: .po .mo .pot

.po.mo:
set OLD_PO_FILE_INPUT=yes
$(MSGFMT) -o $@ $<

all: $(MOFILES)
Expand All @@ -113,9 +120,13 @@ files:
$(LS) $(LSFLAGS) ..\*.c ..\if_perl.xs ..\globals.h > .\files

first_time: files
set OLD_PO_FILE_INPUT=yes
set OLD_PO_FILE_OUTPUT=yes
$(XGETTEXT) --default-domain=$(LANGUAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files

$(LANGUAGES): files
set OLD_PO_FILE_INPUT=yes
set OLD_PO_FILE_OUTPUT=yes
$(XGETTEXT) --default-domain=$(PACKAGE) --add-comments --keyword=_ --keyword=N_ --files-from=.\files
$(MV) $(PACKAGE).po $(PACKAGE).pot
$(CP) $@.po $@.po.orig
Expand Down

0 comments on commit de46bb5

Please sign in to comment.