diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2024-01-21 13:51:56 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2024-01-21 14:20:44 +0000 |
commit | 927ab4ea7236153801e7b718f9cf698db5bb2617 (patch) | |
tree | e32027aa7f196ec69986e3dd468cb6b0342f0acb | |
parent | 1f7225f33af7c28b7af57d2fa1223c6559bae226 (diff) | |
download | qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar.gz qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar.bz2 qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.tar.xz qarepo-927ab4ea7236153801e7b718f9cf698db5bb2617.zip |
Fix makefiles and update NEWS for i18n support.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | po/Makefile | 8 |
3 files changed, 6 insertions, 5 deletions
@@ -22,7 +22,7 @@ install: install -m 0644 qarepo.desktop $(DESTDIR)/usr/share/applications install -m 0644 org.mageia.qarepo-helper.policy $(DESTDIR)/usr/share/polkit-1/actions install -m 0644 org.mageia.qarepo-helper.rules $(DESTDIR)/usr/share/polkit-1/rules.d - make -c po install + make -C po install dist: @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz; @@ -1,3 +1,4 @@ +- add UI translations - remove --upgrade option from suggested downgrade command (mga#32333) - support https in repository URLs diff --git a/po/Makefile b/po/Makefile index 9fbc4a7..bc6abc5 100644 --- a/po/Makefile +++ b/po/Makefile @@ -1,6 +1,6 @@ NAME = qarepo -localedir = ${prefix}/share/locale +LOCALEDIR = $(DESTDIR)/usr/share/locale PL_FILE = ../$(NAME) DT_FILE = ../$(NAME).desktop.in @@ -9,7 +9,7 @@ POFILES = $(wildcard *.po) MOFILES = $(POFILES:%.po=%.mo) LANGS = $(POFILES:%.po=%) -all: $(NAME).pot $(POFILES) $(MOFILES) +all: $(MOFILES) %.mo: %.po msgfmt -o $@ $< @@ -24,8 +24,8 @@ $(NAME).pot: $(PL_FILE) $(DT_FILE) install: all for l in $(LANGS); do \ - install -d $(localedir)/$$l/LC_MESSAGES; \ - install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(NAME).mo; \ + install -d $(LOCALEDIR)/$$l/LC_MESSAGES; \ + install -m 644 $$l.mo $(LOCALEDIR)/$$l/LC_MESSAGES/$(NAME).mo; \ done clean: |