[debian-edu-commits] debian-edu/ 60/183: Changed packaging to cope with translations of gui-script
Alexander Alemayhu
ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.
commit 77dc0d29690abdcb7cb0a76bd52057d767754408
Author: Bart Cornelis <cobaco at linux.be>
Date: Thu May 12 20:53:55 2005 +0000
Changed packaging to cope with translations of gui-script
---
Makefile | 17 +++++++++++++++++
debian/changelog | 16 ++++++++++++++++
debian/rules | 4 +++-
3 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a284b01..f1cd165 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
#!/usr/bin/make -f
+PREFIX=/usr/local
+
+build: documentation l10n
+
documentation:
pod2man dh_installlisting > dh_installlisting.1
@@ -12,5 +16,18 @@ pot:
echo 'msgid "Save Changes"' >> po/profile-manager.pot
echo 'msgstr ""' >> po/profile-manager.pot
+# Add language-targets as they're added
+# install-l10n will be called from debian rules
+l10n: po/nl.mo
+install-l10n: install-nl.mo
+
+po/%.mo: po/%.po
+ msgfmt -o $@ $<
+
+install-%.mo: po/%.mo
+ mkdir -p ${PREFIX}/share/locale/$*/LC_MESSAGES/
+ install --mode 644 $< ${PREFIX}/share/locale/$*/LC_MESSAGES/profile-manager.mo
+
clean:
if(test -e dh_installlisting.1); then rm dh_installlisting.1; fi;
+ if(ls po/*.mo 2> /dev/null > /dev/null); then rm po/*.mo; fi;
diff --git a/debian/changelog b/debian/changelog
index 64b33d7..7865058 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,19 @@
+desktop-profiles (1.4.3) unstable; urgency=low
+
+ * Add possibility to use fieldnumbers instead of name when specifying the
+ sort field for list-desktop-profiles
+ * Changed gui-script to use fieldnumbers instead of name (as the latter
+ resulted in translated names being passed to list-desktop-profiles,
+ which off course doesn't work)
+ * Changed packaging to cope with translations of the gui script, and added
+ Dutch translation (start with KDE_LANG=nl from commandline to get the
+ Dutch version of the gui)
+ * Played with layouts in the gui-script to make it better cope with the
+ translated strings (still not perfect, so translators will want to check
+ their translations in action)
+
+ -- Bart Cornelis (cobaco) <cobaco at linux.be> Thu, 12 May 2005 22:44:55 +0200
+
desktop-profiles (1.4.2) unstable; urgency=low
* Added convenience script for starting the gui + man page for that
diff --git a/debian/rules b/debian/rules
index b30fd31..ea16156 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,8 @@
#export DH_VERBOSE=1
build:
+ # build man-page for dh_installlisting and generate .mo files (l10n)
+ make
clean:
dh_testdir
@@ -30,7 +32,7 @@ install: build
binary-indep: build install
dh_testdir
dh_testroot
- make
+ make install-l10n PREFIX=./debian/desktop-profiles/usr
dh_installchangelogs
dh_installdocs
dh_installmenu
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git
More information about the debian-edu-commits
mailing list