From 671f09bfcdc1ce45698e3660a0a6c5a1faf6eb8d Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Sun, 9 Feb 2025 12:45:10 +0100 Subject: [PATCH] (ru)(pronouns) rename any route to english name in consistency with keeping most routes in english --- locale/ru/config.suml | 3 ++- migrations/087-ru-rename-any-route.sql | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 migrations/087-ru-rename-any-route.sql diff --git a/locale/ru/config.suml b/locale/ru/config.suml index 7e457632d..859a08ca5 100644 --- a/locale/ru/config.suml +++ b/locale/ru/config.suml @@ -21,7 +21,7 @@ pronouns: - 'definitive' route: 'pronouns' default: 'он' - any: 'любые' + any: 'any' plurals: true honorifics: false generator: @@ -367,6 +367,7 @@ census: redirects: - { from: '^/dictionary/terminology', to: '/terminology' } + - { from: '^/%D0%BB%D1%8E%D0%B1%D1%8B%D0%B5', to: '/any' } api: ~ diff --git a/migrations/087-ru-rename-any-route.sql b/migrations/087-ru-rename-any-route.sql new file mode 100644 index 000000000..7b4c0bc42 --- /dev/null +++ b/migrations/087-ru-rename-any-route.sql @@ -0,0 +1,9 @@ +-- Up + +UPDATE profiles +SET pronouns = REPLACE(REPLACE(pronouns, 'любые', 'any'), + -- urlencoded "любые" + '%\%D0\%BB\%D1\%8E\%D0\%B1\%D1\%8B\%D0\%B5%', 'any') +WHERE locale = 'ru'; + +-- Down