Add Russian language to server config file

This commit is contained in:
Andrey Cherepanov 2021-06-23 12:09:25 +03:00
parent 4cd8c5c72c
commit 192750a66f
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/server/src/server/settings.py.sample b/server/src/server/settings.py.sample
index 5f7accc2..5b5766b5 100644
--- a/server/src/server/settings.py.sample
+++ b/server/src/server/settings.py.sample
@@ -53,8 +53,9 @@ LANGUAGE_CODE = 'en'
ugettext = lambda s: s
LANGUAGES = (
- ('es', ugettext('Spanish')),
+ ('ru', ugettext('Russian')),
('en', ugettext('English')),
+ ('es', ugettext('Spanish')),
('fr', ugettext('French')),
('de', ugettext('German')),
('pt', ugettext('Portuguese')),

View File

@ -27,6 +27,7 @@ Source16: openuds-web.service
Source17: openuds-web.socket
#Patch: %name-%version.patch
Patch1: openuds-server-add-Russian-language-to-config.patch
Requires: python3-module-django >= 2.2
Requires: python3-module-django-dbbackend-mysql >= 2.2
@ -77,6 +78,7 @@ Requires: cert-sh-functions
%prep
%setup
#%patch -p1
%patch1 -p2
sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python3|' \
$(find . -name '*.py')

View File

@ -4,3 +4,4 @@ copy?: .gear/*.logrotate
copy?: .gear/*.conf
copy?: .gear/*.service
copy?: .gear/*.socket
copy?: .gear/*.patch