From 192750a66fc45aedd207a2e1b49e9cf60925f7fa Mon Sep 17 00:00:00 2001 From: Andrey Cherepanov Date: Wed, 23 Jun 2021 12:09:25 +0300 Subject: [PATCH] Add Russian language to server config file --- ...ds-server-add-Russian-language-to-config.patch | 15 +++++++++++++++ .gear/openuds-server.spec | 2 ++ .gear/rules | 1 + 3 files changed, 18 insertions(+) create mode 100644 .gear/openuds-server-add-Russian-language-to-config.patch diff --git a/.gear/openuds-server-add-Russian-language-to-config.patch b/.gear/openuds-server-add-Russian-language-to-config.patch new file mode 100644 index 00000000..6ce146f5 --- /dev/null +++ b/.gear/openuds-server-add-Russian-language-to-config.patch @@ -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')), diff --git a/.gear/openuds-server.spec b/.gear/openuds-server.spec index cd39f1f2..f2edd1aa 100644 --- a/.gear/openuds-server.spec +++ b/.gear/openuds-server.spec @@ -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') diff --git a/.gear/rules b/.gear/rules index 16308f7a..a48068ee 100644 --- a/.gear/rules +++ b/.gear/rules @@ -4,3 +4,4 @@ copy?: .gear/*.logrotate copy?: .gear/*.conf copy?: .gear/*.service copy?: .gear/*.socket +copy?: .gear/*.patch