Browse Source

I18N fixes

tags/debian_version_1_4
Randolph Chung 21 years ago
parent
commit
025cf35fb0
4 changed files with 33 additions and 16 deletions
  1. +14
    -10
      Makefile
  2. +8
    -0
      debian/changelog
  3. +2
    -1
      debian/dirs
  4. +9
    -5
      po/Makefile

+ 14
- 10
Makefile View File

@@ -1,10 +1,12 @@
PROGRAM = tasksel
PROGRAM=tasksel
VERSION=\"1.0\"
CC = gcc
CFLAGS = -g -Wall #-Os
DEFS = -DVERSION=$(VERSION) -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" #-DDEBUG
LIBS = -lslang #-lccmalloc -ldl
OBJS = tasksel.o slangui.o data.o util.o strutl.o
CC=gcc
CFLAGS=-g -Wall #-Os
DEFS=-DVERSION=$(VERSION) -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" #-DDEBUG
LIBS=-lslang #-lccmalloc -ldl
OBJS=tasksel.o slangui.o data.o util.o strutl.o
LANGS=hu sv pl
LOCALEDIR=$(DESTDIR)/usr/share/locale

COMPILE = $(CC) $(CFLAGS) $(DEFS) -c
LINK = $(CC) $(CFLAGS) $(DEFS) -o
@@ -15,16 +17,18 @@ all: $(PROGRAM)
$(COMPILE) $<

po/build_stamp:
$(MAKE) -C po
$(MAKE) -C po

$(PROGRAM): $(OBJS) po/build_stamp
$(LINK) $(PROGRAM) $(OBJS) $(LIBS)

install:
mkdir -p $(DESTDIR)/usr/bin
install tasksel $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/share/man/man8
install -m 755 tasksel $(DESTDIR)/usr/bin
pod2man --center "Debian specific manpage" tasksel.pod | gzip -9c > $(DESTDIR)/usr/share/man/man8/tasksel.8.gz
for lang in $(LANGS); do \
[ ! -d $(LOCALEDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCALEDIR)/$$lang/LC_MESSAGES/; \
install -m 644 po/$$lang.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PROGRAM).mo; \
done

test:
$(MAKE) -C scratch


+ 8
- 0
debian/changelog View File

@@ -1,3 +1,11 @@
tasksel (1.0-9) frozen unstable; urgency=low

* Release manager: needed for potato boot-floppies
* I18n fixes. tasksel is finally correctly I18n-ized
* Polish translations added

-- Randolph Chung <tausq@debian.org> Sun, 7 May 2000 13:26:39 -0700

tasksel (1.0-8) frozen unstable; urgency=low

* Changed the Quit button into a Finished button - karlheg.


+ 2
- 1
debian/dirs View File

@@ -1,2 +1,3 @@
usr/bin
usr/sbin
usr/share/man/man8
usr/share/locale

+ 9
- 5
po/Makefile View File

@@ -1,11 +1,15 @@
XGETTEXT = xgettext --keyword=_

%.po:
$(XGETTEXT) ../*.[ch]

all: messages.po
all: C.po hu.mo sv.mo pl.mo
touch build_stamp

C.po:
$(XGETTEXT) -o $@ ../*.[ch]

%.mo: %.po
msgfmt -o $@ $<

clean:
-rm -f messages.po build_stamp
-rm -f C.po build_stamp
-rm -f *.mo


Loading…
Cancel
Save