PGOAL = booh
# ruby files to search translatable strings in
-RB_FILES = ../booh ../html_merges.rb ../booh-gui ../booh-lib.rb
+RB_FILES = ../bin/booh ../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=%)
-all: $(MOFILES)
+all: $(PGOAL).pot
merge: $(PGOAL).pot
@for n in $(POFILES); do \
$(PGOAL).pot: $(RB_FILES)
rm -f $@
- rgettext --keyword=__ -o $@ $(RB_FILES)
+ rgettext -o $@ $(RB_FILES)
+ perl -pi -e 's/, , \[ or \], sorry/, \\", [ or ], sorry/' $@
clean:
@rm -rf $(PGOAL).pot