summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-17 12:52:20 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-17 12:52:20 +0000
commit91760b3583bf19a6a3dabff9af85e89b4eb41cc8 (patch)
tree33c7a6e7d36631fc7e19649f93220287caa6990e /perl-install/standalone
parent0b8d61d40d1b0be9aaa0725002d361e479099b1c (diff)
downloaddrakx-91760b3583bf19a6a3dabff9af85e89b4eb41cc8.tar
drakx-91760b3583bf19a6a3dabff9af85e89b4eb41cc8.tar.gz
drakx-91760b3583bf19a6a3dabff9af85e89b4eb41cc8.tar.bz2
drakx-91760b3583bf19a6a3dabff9af85e89b4eb41cc8.tar.xz
drakx-91760b3583bf19a6a3dabff9af85e89b4eb41cc8.zip
alter build system to add in menu entries strings
Diffstat (limited to 'perl-install/standalone')
-rw-r--r--perl-install/standalone/po/Makefile13
-rw-r--r--perl-install/standalone/po/POTFILES.in3
2 files changed, 13 insertions, 3 deletions
diff --git a/perl-install/standalone/po/Makefile b/perl-install/standalone/po/Makefile
index 21118e257..d3ed76960 100644
--- a/perl-install/standalone/po/Makefile
+++ b/perl-install/standalone/po/Makefile
@@ -4,6 +4,7 @@ NAME = libDrakX-standalone
LOCALEDIR = $(DATADIR)/locale
PMSFILES = $(STANDALONEPMS_)
PMSFILES_HERE = $(wildcard $(PMSFILES:%=../%))
+top_srcdir=..
MAIN_PO_FILES = ../../share/po/libDrakX.pot
@@ -23,10 +24,12 @@ merge: $(NAME).pot
mv -f "$$n"t $$n ; \
done
-$(NAME).pot: $(PMSFILES_HERE)
+$(NAME).pot: $(PMSFILES_HERE) POTFILES.in
+ intltool-update --gettext-package desktopstuff --pot
cd .. ; perl_checker -q --generate-pot po/.$@ $(PMSFILES)
- xgettext $(MAIN_PO_FILES:%=-x %) -o $@ .$@
- rm -f .$@
+ xgettext $(MAIN_PO_FILES:%=-x %) -o ..$@ .$@
+ msgcat --use-first ..$@ desktopstuff.pot > $@
+ rm -f desktopstuff.pot $(NAME)_tmp.pot .$@ ..$@
install: $(MOFILES)
for l in $(LANGS); do \
@@ -34,5 +37,9 @@ install: $(MOFILES)
install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \
done
+POTFILES.in:
+ (cd .. ; /bin/ls data/*.desktop.in data/*.directory.in) > POTFILES.in
+
+
clean:
@rm -rf *.mo $(POFILES:%=%t)
diff --git a/perl-install/standalone/po/POTFILES.in b/perl-install/standalone/po/POTFILES.in
new file mode 100644
index 000000000..2d36aa8cb
--- /dev/null
+++ b/perl-install/standalone/po/POTFILES.in
@@ -0,0 +1,3 @@
+menu/localedrake-system.desktop.in
+menu/harddrake.desktop.in
+menu/localedrake-user.desktop.in