PGOAL = booh
# ruby files to search translatable strings in
-RB_FILES = ../bin/booh ../lib/booh/html-merges.rb ../bin/booh-gui ../lib/booh/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)
all: $(PGOAL).pot
$(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