summaryrefslogtreecommitdiff
path: root/po/Makefile
diff options
context:
space:
mode:
authorTiago Bortoletto Vaz <tiagovaz@safernet.org.br>2008-08-11 22:28:54 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:38 +0100
commit6205a24620be1025b802589501814626efed02f7 (patch)
tree13bc6858a98031f10083ab740306f29ff64e8d43 /po/Makefile
parentc7bccbbf26106de79345257db99884d7c938856d (diff)
downloadlive-build-6205a24620be1025b802589501814626efed02f7.zip
live-build-6205a24620be1025b802589501814626efed02f7.tar.gz
Adding last modifications in order to have localization fully working in live-helper. This commit goes with some pt_BR translations just for testing. Thanks to Antonio Terceiro for helping and coding in some shell stuff.
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/po/Makefile b/po/Makefile
index dd8e46e..6090ed0 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -1,12 +1,12 @@
# Makefile to manage gettext files
DOMAIN=live-helper
-ECHO_FUNCTIONS="Echo_message Echo_verbose Echo_warning Echo_debug Echo_error"
+ECHO_FUNCTIONS="Echo_message Echo_verbose Echo_warning Echo_debug Echo_error Echo_breakage"
POFILES=$(wildcard *.po)
MOFILES=$(patsubst %.po,%.mo,$(POFILES))
LINGUAS=$(basename $(POFILES))
-GETTEXTFILES=$(shell find ../helpers -type f)
+GETTEXTFILES=$(shell find ../helpers ../functions -type f)
POTFILE=$(DOMAIN).pot
DESTDIR=/
XGETTEXT_KEYWORDS=$(shell echo $(ECHO_FUNCTIONS) |sed -e 's,\S\+,-k&,g')
@@ -20,7 +20,7 @@ XGETTEXT_KEYWORDS=$(shell echo $(ECHO_FUNCTIONS) |sed -e 's,\S\+,-k&,g')
$(DOMAIN).pot: $(GETTEXTFILES)
$(shell xgettext $(XGETTEXT_KEYWORDS) -L Shell -o $(DOMAIN).pot $(GETTEXTFILES))
-update-po:
+update-po: live-helper.pot
-for lang in $(LINGUAS); do\
msgmerge -U $$lang.po $(DOMAIN).pot; \
done