[packages/pootle/dev-2.7] move locale files to /usr/share/pootle/locale

glen glen at pld-linux.org
Sun May 8 11:14:16 CEST 2016


commit 4988dce299b67308fa95f4eb7d127077219435cd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 8 11:51:47 2016 +0300

    move locale files to /usr/share/pootle/locale

 pootle.spec    |  4 ++--
 settings.patch | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/pootle.spec b/pootle.spec
index 3116933..9242348 100644
--- a/pootle.spec
+++ b/pootle.spec
@@ -4,7 +4,7 @@
 Summary:	Localization and translation management web application
 Name:		pootle
 Version:	2.7.3
-Release:	0.7
+Release:	0.8
 License:	GPL v2
 Group:		Development/Tools
 Source0:	https://github.com/translate/pootle/releases/download/%{version}/Pootle-%{version}.tar.bz2
@@ -80,7 +80,7 @@ mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/translations/{terminology,tutorial
 rmdir $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/translations
 
 # move to /usr/share
-mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/{static,assets} \
+mv $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/{locale,static,assets} \
 	$RPM_BUILD_ROOT%{_datadir}/%{name}
 
 # install_dirs.py was modified _after_ install completed, so compile again
diff --git a/settings.patch b/settings.patch
index 0543e6f..ea10328 100644
--- a/settings.patch
+++ b/settings.patch
@@ -122,3 +122,14 @@
  ]
  
  
+--- Pootle-2.7.3/pootle/settings/95-outro.conf~	2016-04-25 21:29:00.000000000 +0300
++++ Pootle-2.7.3/pootle/settings/95-outro.conf	2016-05-08 11:49:37.391276706 +0300
+@@ -34,7 +34,7 @@
+         sys.exit(1)
+ 
+ # Look for localization files under the 'locale' directory
+-LOCALE_PATHS = (working_path("locale"), )
++LOCALE_PATHS = ('/usr/share/pootle/locale', )
+ 
+ from pootle.i18n import override
+ LANGUAGES = override.find_languages(LOCALE_PATHS[0])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pootle.git/commitdiff/e30776630c87e8b49d133895dccd5b4a9427ea7b



More information about the pld-cvs-commit mailing list