diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2002-08-22 13:18:09 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2002-08-22 13:18:09 +0000 |
commit | ef4c6c595b0800e97b176f5ef42951bd9142ecdc (patch) | |
tree | 5c645a8113b5e01b5ea64929cfa2c824e53e838e /grpmi/po | |
parent | 22d871eb8a1e5fe60bc2fbad5caf97e4a25f3cdc (diff) | |
download | rpmdrake-ef4c6c595b0800e97b176f5ef42951bd9142ecdc.tar rpmdrake-ef4c6c595b0800e97b176f5ef42951bd9142ecdc.tar.gz rpmdrake-ef4c6c595b0800e97b176f5ef42951bd9142ecdc.tar.bz2 rpmdrake-ef4c6c595b0800e97b176f5ef42951bd9142ecdc.tar.xz rpmdrake-ef4c6c595b0800e97b176f5ef42951bd9142ecdc.zip |
Improved makefiles
Diffstat (limited to 'grpmi/po')
-rw-r--r-- | grpmi/po/Makefile | 29 | ||||
-rw-r--r-- | grpmi/po/ar.po | 4 |
2 files changed, 19 insertions, 14 deletions
diff --git a/grpmi/po/Makefile b/grpmi/po/Makefile index 8448a01e..acfea5bf 100644 --- a/grpmi/po/Makefile +++ b/grpmi/po/Makefile @@ -1,19 +1,21 @@ -PL_FILES = ../grpmi.pl -PL_CFILES = $(PL_FILES:%=%_.c) +# the domain name for gettext +PGOAL = grpmi +# perl files to search translatable strings in +PL_FILES = ../grpmi.pl +# C-like files to search translatable strings in CFILES = ../curl_download/curl_download.xs ../rpm/grpmi_rpm.xs +PL_CFILES = $(PL_FILES:%=%_.c) POFILES = $(shell ls *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) -PREFIX = /usr/local +PREFIX = $(RPM_BUILD_ROOT)/usr DATADIR = $(PREFIX)/share LOCALEDIR=$(DATADIR)/locale -CFILES = ../curl_download/curl_download.xs ../rpm/grpmi_rpm.xs - -all: $(MOFILES) +all: $(PGOAL).pot $(MOFILES) %.mo: %.po msgfmt -o $@ $< @@ -24,22 +26,25 @@ $(PL_CFILES): %_.c: % %.mo: %.po msgfmt -o $@ $< -merge: grpmi.pot +merge: $(PGOAL).pot @for n in $(POFILES); do \ echo "Merging $$n"; \ msgmerge "$$n" $< > "$$n"t; \ mv -f "$$n"t "$$n"; \ done -grpmi.pot: $(PL_CFILES) $(CFILES) - xgettext -F -n --add-comments='-PO' --keyword=_ --language=C -o $@ $(PL_CFILES) $(CFILES) - rm $(PL_CFILES) +$(PGOAL).pot: $(PL_CFILES) $(CFILES) + xgettext -F -n --add-comments='-PO' \ + --keyword=_ --keyword=__ --keyword=N_ \ + --language=C -o $@ $(PL_CFILES) $(CFILES) + @rm -rf $(PL_CFILES) install: for l in $(LANGS); do \ install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ - install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/grpmi.mo; \ + install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(PGOAL).mo; \ done clean: - @rm -rf *.mo $(POFILES:%=%t) $(PL_CFILES) grpmi.pot + @rm -rf *.mo $(POFILES:%=%t) $(PL_CFILES) $(PGOAL).pot + diff --git a/grpmi/po/ar.po b/grpmi/po/ar.po index a04a9fcd..f796c10c 100644 --- a/grpmi/po/ar.po +++ b/grpmi/po/ar.po @@ -344,11 +344,11 @@ msgstr "" #: ../grpmi.pl_.c:175 msgid "All requested packages were installed successfully." -msgstr "" +msgstr "تم تثبيت كل الحزم المطلوبة بنجاح." #: ../grpmi.pl_.c:175 msgid "Everything installed successfully" -msgstr "" +msgstr "تم تثبيت كل شئ بنجاح" #: ../rpm/grpmi_rpm.xs:66 msgid "Couldn't read RPM config files" |