diff options
author | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-07-14 11:36:39 +0000 |
---|---|---|
committer | shnavid <shnavid@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2007-07-14 11:36:39 +0000 |
commit | ed9713b66f2e2385a1b9e35b38e43cca99c150c5 (patch) | |
tree | 0bb4ddc6fc29314444a66fcf1bcb75a60597f4cd | |
parent | f78567b537bd40f6112e051f7206ad36cc5d9828 (diff) | |
download | sos-ed9713b66f2e2385a1b9e35b38e43cca99c150c5.tar.gz |
* package translations as well
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@205 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r-- | src/Makefile | 5 | ||||
-rw-r--r-- | src/setup.py | 3 | ||||
-rw-r--r-- | src/sos.spec | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index c7564b88..4ceaad18 100644 --- a/src/Makefile +++ b/src/Makefile @@ -64,7 +64,7 @@ version: clean: @rm -fv *~ .*~ changenew ChangeLog.old $(NAME)-$(VERSION).tar.bz2 sosreport.1.gz -rpm: +rpm: mo @test -f sos.spec @mkdir -p $(TOPDIR)/SOURCES $(TOPDIR)/SRPMS $(TOPDIR)/RPMS $(TOPDIR)/BUILD @@ -86,3 +86,6 @@ rpm: pot: python tools/pygettext.py -o locale/sos.pot sosreport + +mo: + python tools/msgfmt.py locale/*/LC_MESSAGES/sos.po diff --git a/src/setup.py b/src/setup.py index acc0db66..26504147 100644 --- a/src/setup.py +++ b/src/setup.py @@ -9,5 +9,6 @@ setup( packages = ['sos', 'sos.plugins'], scripts = [], package_dir = {'': 'lib',}, - data_files = [('/usr/sbin', ['sosreport']), ('/usr/share/man/man1', ['sosreport.1']) ] + data_files = [ ('/usr/sbin', ['sosreport']), ('/usr/share/man/man1', ['sosreport.1']), ('/usr/share/locale/en', []), ('/usr/share/locale/it', []), ('/usr/share/locale/en/LC_MESSAGES', ['locale/en/LC_MESSAGES/sos.mo']), ('/usr/share/locale/it/LC_MESSAGES', ['locale/it/LC_MESSAGES/sos.mo']) + ] ) diff --git a/src/sos.spec b/src/sos.spec index 17b2b6ae..4b4237d7 100644 --- a/src/sos.spec +++ b/src/sos.spec @@ -4,6 +4,8 @@ %define version 1.7 %define release 1 +%define _localedir %_datadir/locale + Summary: A set of tools to gather troubleshooting information from a system Name: %{name} Version: %{version} @@ -44,6 +46,7 @@ rm -rf ${RPM_BUILD_ROOT} %{_sbindir}/sosreport %{python_sitelib}/sos/ %{_mandir}/man1/sosreport.1* +%{_localedir}/*/LC_MESSAGES/sos.mo %doc README TODO LICENSE ChangeLog %changelog |