PGOAL = booh
# ruby files to search translatable strings in
-RB_FILES = ../booh ../html_merges.rb
+RB_FILES = ../bin/booh ../bin/booh-classifier ../lib/booh/html-merges.rb ../bin/booh-backend ../lib/booh/booh-lib.rb ../lib/booh/UndoHandler.rb $(wildcard ../data/booh/themes/*/metadata/parameters.rb)
POFILES = $(wildcard *.po)
-MOFILES = $(POFILES:%.po=%.mo)
-LANGS = $(POFILES:%.po=%)
-# because of different charsets or encodings.. :-(
-IGNOREPOMS =
-
-PREFIX = /usr/local
-DATADIR = $(PREFIX)/share
-LOCALEDIR=$(DATADIR)/locale
-
-all: $(MOFILES)
-
-%.mo: %.po
- rmsgfmt -o $@ "$<"
+all: $(PGOAL).pot
merge: $(PGOAL).pot
@for n in $(POFILES); do \
$(PGOAL).pot: $(RB_FILES)
rm -f $@
- rgettext --keyword=__ -o $@ $(RB_FILES)
-
-install:
- for l in $(LANGS); do \
- install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \
- install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PGOAL).mo; \
- done
+ rgettext -o $@ $(RB_FILES)
+ perl -pi -e 's/, , \[ or \], sorry/, \\", [ or ], sorry/' $@
clean:
- @rm -rf *.mo $(PGOAL).pot
+ @rm -rf $(PGOAL).pot