From d4d02172d0a731df45e13b7d81ec6bda4d3bdac1 Mon Sep 17 00:00:00 2001 From: powerdot Date: Wed, 17 Feb 2021 15:43:34 +0300 Subject: [PATCH] Add Russian language support (#226) * Russian lang * Russian Lang * Update src/nginxconfig/i18n/fr/languages.js Mama Mia! Pizza! Co-authored-by: Matt (IPv4) Cowley * Update src/nginxconfig/i18n/ru/common.js Tabs to 4 spaces Co-authored-by: Matt (IPv4) Cowley * Matt language revision 2020 -> 2021 Added translations * Little updates 1 translation 1 correction * Update package-lock.json * Update package-lock.json * Update https.js Broken French Co-authored-by: Matt (IPv4) Cowley --- src/nginxconfig/i18n/en/languages.js | 3 +- src/nginxconfig/i18n/fr/languages.js | 1 + src/nginxconfig/i18n/pt-br/languages.js | 3 +- src/nginxconfig/i18n/ru/common.js | 48 +++++++++++++++++ src/nginxconfig/i18n/ru/index.js | 31 +++++++++++ src/nginxconfig/i18n/ru/languages.js | 34 ++++++++++++ src/nginxconfig/i18n/ru/templates/app.js | 39 ++++++++++++++ .../i18n/ru/templates/callouts/contribute.js | 30 +++++++++++ .../i18n/ru/templates/callouts/droplet.js | 30 +++++++++++ .../i18n/ru/templates/callouts/index.js | 30 +++++++++++ .../ru/templates/domain_sections/https.js | 41 ++++++++++++++ .../ru/templates/domain_sections/index.js | 38 +++++++++++++ .../ru/templates/domain_sections/logging.js | 32 +++++++++++ .../ru/templates/domain_sections/onion.js | 36 +++++++++++++ .../i18n/ru/templates/domain_sections/php.js | 42 +++++++++++++++ .../ru/templates/domain_sections/presets.js | 33 ++++++++++++ .../ru/templates/domain_sections/python.js | 36 +++++++++++++ .../ru/templates/domain_sections/restrict.js | 30 +++++++++++ .../domain_sections/reverse_proxy.js | 34 ++++++++++++ .../ru/templates/domain_sections/routing.js | 35 ++++++++++++ .../ru/templates/domain_sections/server.js | 37 +++++++++++++ src/nginxconfig/i18n/ru/templates/footer.js | 39 ++++++++++++++ .../ru/templates/global_sections/docker.js | 41 ++++++++++++++ .../ru/templates/global_sections/https.js | 50 +++++++++++++++++ .../ru/templates/global_sections/index.js | 38 +++++++++++++ .../ru/templates/global_sections/logging.js | 41 ++++++++++++++ .../ru/templates/global_sections/nginx.js | 32 +++++++++++ .../templates/global_sections/performance.js | 39 ++++++++++++++ .../i18n/ru/templates/global_sections/php.js | 45 ++++++++++++++++ .../ru/templates/global_sections/python.js | 32 +++++++++++ .../global_sections/reverse_proxy.js | 32 +++++++++++ .../ru/templates/global_sections/security.js | 32 +++++++++++ .../ru/templates/global_sections/tools.js | 53 +++++++++++++++++++ src/nginxconfig/i18n/ru/templates/index.js | 35 ++++++++++++ src/nginxconfig/i18n/ru/templates/setup.js | 30 +++++++++++ .../ru/templates/setup_sections/certbot.js | 39 ++++++++++++++ .../ru/templates/setup_sections/download.js | 40 ++++++++++++++ .../ru/templates/setup_sections/go_live.js | 33 ++++++++++++ .../i18n/ru/templates/setup_sections/index.js | 32 +++++++++++ .../i18n/ru/templates/setup_sections/ssl.js | 34 ++++++++++++ src/nginxconfig/i18n/setup.js | 2 +- src/nginxconfig/i18n/zh-cn/languages.js | 3 +- src/nginxconfig/i18n/zh-tw/languages.js | 3 +- 43 files changed, 1363 insertions(+), 5 deletions(-) create mode 100644 src/nginxconfig/i18n/ru/common.js create mode 100644 src/nginxconfig/i18n/ru/index.js create mode 100644 src/nginxconfig/i18n/ru/languages.js create mode 100644 src/nginxconfig/i18n/ru/templates/app.js create mode 100644 src/nginxconfig/i18n/ru/templates/callouts/contribute.js create mode 100644 src/nginxconfig/i18n/ru/templates/callouts/droplet.js create mode 100644 src/nginxconfig/i18n/ru/templates/callouts/index.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/https.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/index.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/logging.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/onion.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/php.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/presets.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/python.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/restrict.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/reverse_proxy.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/routing.js create mode 100644 src/nginxconfig/i18n/ru/templates/domain_sections/server.js create mode 100644 src/nginxconfig/i18n/ru/templates/footer.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/docker.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/https.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/index.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/logging.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/nginx.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/performance.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/php.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/python.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/reverse_proxy.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/security.js create mode 100644 src/nginxconfig/i18n/ru/templates/global_sections/tools.js create mode 100644 src/nginxconfig/i18n/ru/templates/index.js create mode 100644 src/nginxconfig/i18n/ru/templates/setup.js create mode 100644 src/nginxconfig/i18n/ru/templates/setup_sections/certbot.js create mode 100644 src/nginxconfig/i18n/ru/templates/setup_sections/download.js create mode 100644 src/nginxconfig/i18n/ru/templates/setup_sections/go_live.js create mode 100644 src/nginxconfig/i18n/ru/templates/setup_sections/index.js create mode 100644 src/nginxconfig/i18n/ru/templates/setup_sections/ssl.js diff --git a/src/nginxconfig/i18n/en/languages.js b/src/nginxconfig/i18n/en/languages.js index 941c188..666e7c6 100644 --- a/src/nginxconfig/i18n/en/languages.js +++ b/src/nginxconfig/i18n/en/languages.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -30,4 +30,5 @@ export default { zhTW: 'Chinese (traditional)', ptBR: 'Portuguese (brazilian)', fr: 'French', + ru: 'Russian', }; diff --git a/src/nginxconfig/i18n/fr/languages.js b/src/nginxconfig/i18n/fr/languages.js index ac519f3..c247d8a 100644 --- a/src/nginxconfig/i18n/fr/languages.js +++ b/src/nginxconfig/i18n/fr/languages.js @@ -30,4 +30,5 @@ export default { zhTW: 'Chinois (traditionnel)', ptBR: 'Portugais (brésilien)', fr: 'Français', + ru: 'Russe', }; diff --git a/src/nginxconfig/i18n/pt-br/languages.js b/src/nginxconfig/i18n/pt-br/languages.js index ba00996..8668082 100644 --- a/src/nginxconfig/i18n/pt-br/languages.js +++ b/src/nginxconfig/i18n/pt-br/languages.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -30,4 +30,5 @@ export default { zhTW: 'Chinês (tradicional)', ptBR: 'Português (brasileiro)', fr: 'Francês', + ru: 'Russa', }; diff --git a/src/nginxconfig/i18n/ru/common.js b/src/nginxconfig/i18n/ru/common.js new file mode 100644 index 0000000..2feeb03 --- /dev/null +++ b/src/nginxconfig/i18n/ru/common.js @@ -0,0 +1,48 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + back: 'Назад', + next: 'Дальше', + enable: 'включить', + php: 'PHP', + ssl: 'SSL', + nginx: 'NGINX', + http: 'HTTP', + https: 'HTTPS', + letsEncrypt: 'Let\'s Encrypt', + python: 'Python', + wordPress: 'WordPress', + drupal: 'Drupal', + magento: 'Magento', + joomla: 'Joomla', + django: 'Django', + logging: 'Логирование', + reverseProxy: 'Обратный прокси', + reverseProxyLower: 'обратный прокси', + restrict: 'Ограничить', + path: 'Путь', +}; diff --git a/src/nginxconfig/i18n/ru/index.js b/src/nginxconfig/i18n/ru/index.js new file mode 100644 index 0000000..01c3f3e --- /dev/null +++ b/src/nginxconfig/i18n/ru/index.js @@ -0,0 +1,31 @@ +/* +Copyright 2020 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from './common'; +import languages from './languages'; +import templates from './templates'; + +export default { common, languages, templates }; diff --git a/src/nginxconfig/i18n/ru/languages.js b/src/nginxconfig/i18n/ru/languages.js new file mode 100644 index 0000000..e2ea6cb --- /dev/null +++ b/src/nginxconfig/i18n/ru/languages.js @@ -0,0 +1,34 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + en: 'Английский', + zhCN: 'Китайский (упрощённый)', + zhTW: 'Китайский (традиционный)', + ptBR: 'Португальский (бразильский)', + fr: 'Французский', + ru: 'Русский', +}; diff --git a/src/nginxconfig/i18n/ru/templates/app.js b/src/nginxconfig/i18n/ru/templates/app.js new file mode 100644 index 0000000..c2bb15c --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/app.js @@ -0,0 +1,39 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../common'; + +export default { + title: `${common.nginx}Config`, + description: `Самый простой способ настроить производительный, безопасный и стабильный ${common.nginx} сервер.`, + singleColumnMode: 'Одноколоночный режим', + splitColumnMode: 'Режим разделения столбца', + perWebsiteConfig: 'Конфигурация для каждого сайта', + addSite: 'Добавить сайт', + globalConfig: 'Глобальная конфигурация', + setup: 'Настройка', + configFiles: 'Файлы конфигурации', +}; diff --git a/src/nginxconfig/i18n/ru/templates/callouts/contribute.js b/src/nginxconfig/i18n/ru/templates/callouts/contribute.js new file mode 100644 index 0000000..c6ab273 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/callouts/contribute.js @@ -0,0 +1,30 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + wantToContributeChanges: '👋 Хотите запросить новые функции, внести изменения или перевести инструмент на новый язык?', + getInvolvedOnGitHub: 'Присоединяйтесь к проекту на GitHub', +}; diff --git a/src/nginxconfig/i18n/ru/templates/callouts/droplet.js b/src/nginxconfig/i18n/ru/templates/callouts/droplet.js new file mode 100644 index 0000000..75950e8 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/callouts/droplet.js @@ -0,0 +1,30 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + lookingForAPlaceToDeploy: '👋 Ищете место для развертывания новой конфигурации?', + tryOutDigitalOceansDroplet: 'Попробуйте LEMP Droplet от DigitalOcean с NGINX', +}; diff --git a/src/nginxconfig/i18n/ru/templates/callouts/index.js b/src/nginxconfig/i18n/ru/templates/callouts/index.js new file mode 100644 index 0000000..dd68947 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/callouts/index.js @@ -0,0 +1,30 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import droplet from './droplet'; +import contribute from './contribute'; + +export default { droplet, contribute }; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/https.js b/src/nginxconfig/i18n/ru/templates/domain_sections/https.js new file mode 100644 index 0000000..4dd4635 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/https.js @@ -0,0 +1,41 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + enableEncryptedSslConnection: `${common.enable} зашифрованные ${common.ssl} соединения`, + http2: `${common.http}/2`, + enableHttp2Connections: `${common.enable} ${common.http}/2 соединения`, + forceHttps: `Использовать только ${common.https}`, + hsts: 'HSTS', + enableStrictTransportSecurity: `${common.enable} Strict Transport Security, требующая HTTPS соединения`, + enableIncludeSubDomains: `${common.enable} includeSubDomains директиву, требующая HTTPS соединения для ВСЕХ поддоменов`, + enablePreload: `${common.enable} preload директиву, указывающая браузерам всегда устанавливать только HTTPS-соединения`, + certificationType: 'Тип сертификации', + customCertificate: 'Другой сертификат', + letsEncryptEmail: `${common.letsEncrypt} email`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/index.js b/src/nginxconfig/i18n/ru/templates/domain_sections/index.js new file mode 100644 index 0000000..5b2b817 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/index.js @@ -0,0 +1,38 @@ +/* +Copyright 2020 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import https from './https'; +import logging from './logging'; +import php from './php'; +import presets from './presets'; +import python from './python'; +import reverseProxy from './reverse_proxy'; +import routing from './routing'; +import server from './server'; +import restrict from './restrict'; +import onion from './onion'; + +export default { https, logging, php, presets, python, reverseProxy, routing, server, restrict, onion }; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/logging.js b/src/nginxconfig/i18n/ru/templates/domain_sections/logging.js new file mode 100644 index 0000000..1ad7d67 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/logging.js @@ -0,0 +1,32 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + byDomain: 'по домену', + enableForThisDomain: `${common.enable} для этого домена`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/onion.js b/src/nginxconfig/i18n/ru/templates/domain_sections/onion.js new file mode 100644 index 0000000..994acb7 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/onion.js @@ -0,0 +1,36 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +const onion = 'Onion'; + +export default { + onion, + onionLocation: `Расположение ${onion}`, + provideAnOnionLocationToSetOnionLocationHeader: `Укажите расположение ${onion}, чтобы задать заголовок Onion-Location для Вашего сайта.`, + letsVisitorsKnownOnionServicesIsAvailable: `Это позволит узнать посетителям, что у Вашего сайта есть ${onion}-версия, доступная в браузере Tor.`, + learnMoreAboutOnionServices: `Узнайте больше об ${onion}`, + onionLocationExpectedToEndWithOnion: `Адреса ${onion} обычно оканчиваются на \`.onion\`.`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/php.js b/src/nginxconfig/i18n/ru/templates/domain_sections/php.js new file mode 100644 index 0000000..b623f92 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/php.js @@ -0,0 +1,42 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + phpIsDisabled: `${common.php} выключен.`, + phpCannotBeEnabledWithReverseProxy: `${common.php} не может быть включен, пока включен обратный прокси.`, + phpCannotBeEnabledWithPython: `${common.php} не может быть включен, пока включен ${common.python}.`, + enablePhp: `${common.enable} ${common.php}`, + wordPressRules: `${common.wordPress} правила`, + enableWordPressRules: `${common.enable} ${common.wordPress}-специфичные правила`, + drupalRules: `${common.drupal} правила`, + enableDrupalRules: `${common.enable} ${common.drupal}-специфичные правила`, + magentoRules: `${common.magento} правила`, + enableMagentoRules: `${common.enable} ${common.magento}-специфичные правила`, + joomlaRules: `${common.joomla} правила`, + enableJoomlaRules: `${common.enable} ${common.joomla}-специфичные правила`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/presets.js b/src/nginxconfig/i18n/ru/templates/domain_sections/presets.js new file mode 100644 index 0000000..0b2a194 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/presets.js @@ -0,0 +1,33 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + presets: 'Пресеты', + itLooksLikeYouCustomisedTheConfig: 'Похоже, вы уже настроили конфигурацию для этого домена. Выбор нового пресета может привести к сбросу или изменению некоторых настроек, которые Вы настроили ранее.', + frontend: 'Фронтэнд', + nodeJs: 'Node.js', + singlePageApplication: 'Одностраничное приложение', +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/python.js b/src/nginxconfig/i18n/ru/templates/domain_sections/python.js new file mode 100644 index 0000000..0866f3c --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/python.js @@ -0,0 +1,36 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + pythonIsDisabled: `${common.python} выключен.`, + pythonCannotBeEnabledWithReverseProxy: `${common.python} не может быть включен, пока включен обратный прокси.`, + pythonCannotBeEnabledWithPhp: `${common.python} не может быть включен, пока включен ${common.php}.`, + enablePython: `${common.enable} ${common.python}`, + djangoRules: `${common.django} правила`, + enableDjangoRules: `${common.enable} ${common.django}-специфичные правила`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/restrict.js b/src/nginxconfig/i18n/ru/templates/domain_sections/restrict.js new file mode 100644 index 0000000..e462b7b --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/restrict.js @@ -0,0 +1,30 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + disableForThisDomain: 'выключено для этого домена', + responseCode: 'Код ответа', +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/reverse_proxy.js b/src/nginxconfig/i18n/ru/templates/domain_sections/reverse_proxy.js new file mode 100644 index 0000000..6d109dd --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/reverse_proxy.js @@ -0,0 +1,34 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + reverseProxyIsDisabled: `${common.reverseProxy} выключено.`, + reverseProxyCannotBeEnabledWithPhp: `${common.reverseProxy} не может быть включен, пока включен ${common.php}.`, + reverseProxyCannotBeEnabledWithPython: `${common.reverseProxy} не может быть включен, пока включен ${common.python}.`, + enableReverseProxy: `${common.enable} ${common.reverseProxyLower}`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/routing.js b/src/nginxconfig/i18n/ru/templates/domain_sections/routing.js new file mode 100644 index 0000000..5faf415 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/routing.js @@ -0,0 +1,35 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + fallbackRouting: 'Fallback маршрутизация', + fallbackRoutingPhpPath: `Путь к Fallback ${common.php}`, + legacyPhpRouting: `Устаревшая маршрутизация ${common.php}`, + enableLegacyRouting: `${common.enable} устаревшую маршрутизацию`, + routing: 'Маршрутизация', +}; diff --git a/src/nginxconfig/i18n/ru/templates/domain_sections/server.js b/src/nginxconfig/i18n/ru/templates/domain_sections/server.js new file mode 100644 index 0000000..637f1a6 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/domain_sections/server.js @@ -0,0 +1,37 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + domain: 'Домен', + documentRoot: 'Корневая директория', + oneOrMoreOtherDomainsAreAlsoNamed: 'Один или несколько других доменов также названы', + thisWillCauseIssuesWithConfigGeneration: 'Это вызовет проблемы с генерацией конфигурации.', + wwwSubdomain: 'www поддомен', + cdnSubdomain: 'CDN поддомен', + redirectSubdomains: 'Перенаправлять поддомены', + server: 'Сервер', + listen: 'слушать', +}; diff --git a/src/nginxconfig/i18n/ru/templates/footer.js b/src/nginxconfig/i18n/ru/templates/footer.js new file mode 100644 index 0000000..50f7eab --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/footer.js @@ -0,0 +1,39 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + backToTop: 'Вернуться в начало', + thisToolIs: 'Этот инструмент', + openSourceOnGitHub: 'с открытым исходным кодом на GitHub', + underThe: 'под', + mit: 'MIT', + license: 'лицензией!', + weWelcomeFeedbackAndContributions: 'Мы приветсвуем обратную связь и поддержку.', + originallyCreatedBy: 'Начало проекта положил', + balintSzekeres: 'Bálint Szekeres', + maintainedBy: 'при поддержке', + digitalOcean: 'DigitalOcean', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/docker.js b/src/nginxconfig/i18n/ru/templates/global_sections/docker.js new file mode 100644 index 0000000..208351b --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/docker.js @@ -0,0 +1,41 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const docker = 'Docker'; +const dockerfile = 'Dockerfile'; + +export default { + docker, + dockerfile, + dockerCompose: `${docker} Compose`, + applyDockerTweaks: `Применить настройки ${docker}`, + applyDockerTweaksForNginx: `Примените настройки конфигурации для запуска ${common.nginx} с ${docker}`, + applyDockerTweaksExplainer: `Обновляет пользователя ${common.nginx} на nginx и pid на /var/run/nginx.pid`, + includeDockerfile: `Вставьте ${dockerfile}, чтобы запустить ${common.nginx} с ${docker}`, + includeDockerCompose: `Вставьте docker-compose, чтобы запустить ${common.nginx} с docker-compose`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/https.js b/src/nginxconfig/i18n/ru/templates/global_sections/https.js new file mode 100644 index 0000000..28f47de --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/https.js @@ -0,0 +1,50 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const mozilla = 'Mozilla'; +const ipv4 = 'IPv4'; +const ipv6 = 'IPv6'; + +export default { + sslProfile: `${common.ssl} Профиль`, + httpsMustBeEnabledOnOneSite: `${common.https} должен быть включен хотя бы на одном сайте, чтобы сконфигурировать глобальные ${common.https} настройки.`, + ocspDnsResolvers: 'OCSP DNS Преобразователи', + cloudflareResolver: 'Cloudflare Преобразователь', + googlePublicDns: 'Публичные Google DNS', + openDns: 'OpenDNS', + quad9: 'Quad9', + verisign: 'Verisign', + letsEncryptWebroot: `Директория ${common.letsEncrypt}`, + letsEncryptCertRoot: `Директория сертификата ${common.letsEncrypt}`, + mozillaModern: `${mozilla} Modern`, + mozillaIntermediate: `${mozilla} Intermediate`, + mozillaOld: `${mozilla} Old`, + ipv4Only: `только ${ipv4}`, + ipv6Only: `только ${ipv6}`, + ipv4AndIpv6: `${ipv4} & ${ipv6}`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/index.js b/src/nginxconfig/i18n/ru/templates/global_sections/index.js new file mode 100644 index 0000000..8a8e3ac --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/index.js @@ -0,0 +1,38 @@ +/* +Copyright 2020 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import https from './https'; +import logging from './logging'; +import nginx from './nginx'; +import performance from './performance'; +import php from './php'; +import python from './python'; +import reverseProxy from './reverse_proxy'; +import security from './security'; +import tools from './tools'; +import docker from './docker'; + +export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker }; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/logging.js b/src/nginxconfig/i18n/ru/templates/global_sections/logging.js new file mode 100644 index 0000000..9ccaacd --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/logging.js @@ -0,0 +1,41 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + enableFileNotFoundErrorLogging: `${common.enable} файл не найден, ошибка входа`, + logformat: 'log_format', + enableCloudflare: 'добавить Cloudflare хедеры запроса в дефолтный формат логов', + cfRay: 'CF-Ray', + cfConnectingIp: 'CF-Connecting-IP', + xForwardedFor: 'X-Forwarded-For', + xForwardedProto: 'X-Forwarded-Proto', + trueClientIp: 'True-Client-IP', + cfIpCountry: 'CF-IPCountry', + cfVisitor: 'CF-Visitor', + cdnLoop: 'CDN-Loop', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/nginx.js b/src/nginxconfig/i18n/ru/templates/global_sections/nginx.js new file mode 100644 index 0000000..b1adea7 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/nginx.js @@ -0,0 +1,32 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + nginxConfigDirectory: `Директория конфигурации ${common.nginx}`, + mb: 'MB', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/performance.js b/src/nginxconfig/i18n/ru/templates/global_sections/performance.js new file mode 100644 index 0000000..82b396e --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/performance.js @@ -0,0 +1,39 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + gzipCompression: 'Gzip сжатие', + enableGzipCompression: `${common.enable} gzip сжатие`, + brotliCompression: 'Brotli сжатие', + enableBrotliCompression: `${common.enable} brotli сжатие`, + expirationForAssets: 'Истечение срока для ассетов', + expirationForMedia: 'Истечение срока для медиа файлов', + expirationForSvgs: 'Истечение срока для SVG файлов', + expirationForFonts: 'Истечение срока для шрифтов', + performance: 'Производительность', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/php.js b/src/nginxconfig/i18n/ru/templates/global_sections/php.js new file mode 100644 index 0000000..1505e7a --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/php.js @@ -0,0 +1,45 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + phpServer: `${common.php} сервер`, + phpMustBeEnabledOnOneSite: `${common.php} должен быть включен как минимум на одном сайте, чтобы сконфигурировать глобаьные настройки ${common.php}.`, + phpBackupServer: `${common.php} бекап сервер`, + tcp: 'TCP', + hhvmSocket: 'HHVM сокет', + php5Socket: '5.x сокет', + php70Socket: '7.0 сокет', + php71Socket: '7.1 сокет', + php72Socket: '7.2 сокет', + php73Socket: '7.3 сокет', + php74Socket: '7.4 сокет', + php80Socket: '8.0 сокет', + phpSocket: 'PHP сокет', + custom: 'Другой', + disabled: 'Выключено', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/python.js b/src/nginxconfig/i18n/ru/templates/global_sections/python.js new file mode 100644 index 0000000..f4e7413 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/python.js @@ -0,0 +1,32 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + pythonServer: `${common.python} сервер`, + pythonMustBeEnabledOnOneSite: `${common.python} должен быть включен как минимум на одном сайте, чтобы сконфигурировать глобаьные настройки ${common.python}.`, +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/reverse_proxy.js b/src/nginxconfig/i18n/ru/templates/global_sections/reverse_proxy.js new file mode 100644 index 0000000..73164ac --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/reverse_proxy.js @@ -0,0 +1,32 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + reverseProxyMustBeEnabledOnOneSite: `${common.reverseProxy} должен быть включен как минимум на одном сайте, чтобы сконфигурировать глобаьные настройки ${common.reverseProxyLower}.`, + seconds: 'секунд', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/security.js b/src/nginxconfig/i18n/ru/templates/global_sections/security.js new file mode 100644 index 0000000..1415f70 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/security.js @@ -0,0 +1,32 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `Во время использования ${common.wordPress}, 'unsafe-eval' часто требуется в Content Security Policy, чтобы панель администратора работала исправно.`, + security: 'Безопасность', +}; diff --git a/src/nginxconfig/i18n/ru/templates/global_sections/tools.js b/src/nginxconfig/i18n/ru/templates/global_sections/tools.js new file mode 100644 index 0000000..d5480ee --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/global_sections/tools.js @@ -0,0 +1,53 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + modularizedStructure: 'Модульная структура', + enableModularizedConfigFiles: `${common.enable} модульную структуру для фйлов конфигурации`, + symlinkVhost: 'Symlink vhost', + enableSymLinksFrom: `${common.enable} symlinks из`, + to: 'в', + shareConfiguration: 'Поделиться конфигурацией', + resetConfiguration: 'Сбросить конфигурацию', + resetGlobalConfig: 'Сбросить глобальную конфигурацию', + resetAllDomains: 'Сбросить все домены', + removeAllDomains: 'Удалить все домены', + resetAllDomainsConfig: 'Сбросить конфигурации всех доменов', + resetDomainConfig: 'Сбросить конфигурацию домена', + removeDomain: 'Удалить домен', + yesImSure: 'Да, я уверен', + noCancel: 'Нет, отменить', + tools: 'Инструменты', + resetGlobalConfigBody: 'Вы уверены, что хотите сбросить все параметры конфигурации в разделе глобальной конфигурации?', + resetAllDomainsConfigBody: 'Вы уверены, что хотите сбросить конфигурацию ВСЕХ доменов?', + removeAllDomainsBody: 'Вы действительно хотите удалить ВСЕ конфигурации домена?', + areYouSureYouWantToResetAllConfigurationOptionsForThe: 'Вы действительно хотите сбросить все параметры конфигурации для', + domain: 'домена?', + areYouSureYouWantToRemoveThe: 'Вы уверены, что желаете удалить ', + domainConfiguration: 'конфигурацию домена?', +}; diff --git a/src/nginxconfig/i18n/ru/templates/index.js b/src/nginxconfig/i18n/ru/templates/index.js new file mode 100644 index 0000000..d946745 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/index.js @@ -0,0 +1,35 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import app from './app'; +import setup from './setup'; +import footer from './footer'; +import domainSections from './domain_sections'; +import globalSections from './global_sections'; +import setupSections from './setup_sections'; +import callouts from './callouts'; + +export default { app, setup, footer, domainSections, globalSections, setupSections, callouts }; diff --git a/src/nginxconfig/i18n/ru/templates/setup.js b/src/nginxconfig/i18n/ru/templates/setup.js new file mode 100644 index 0000000..ab99594 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/setup.js @@ -0,0 +1,30 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +export default { + downloadConfig: 'Скачать конфигурацию', + copyBase64: 'Копировать Base64', +}; diff --git a/src/nginxconfig/i18n/ru/templates/setup_sections/certbot.js b/src/nginxconfig/i18n/ru/templates/setup_sections/certbot.js new file mode 100644 index 0000000..7f478ce --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/setup_sections/certbot.js @@ -0,0 +1,39 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +const certbot = 'Certbot'; + +export default { + commentOutSslDirectivesInConfiguration: `Закомментируйте директивы, связанные с ${common.ssl} в конфигурации:`, + reloadYourNginxServer: `Перезагрузите свой ${common.nginx} сервер:`, + obtainSslCertificatesFromLetsEncrypt: `Получите ${common.ssl} сертификат ${common.letsEncrypt} используя ${certbot}:`, + uncommentSslDirectivesInConfiguration: `Раскомментируйте директивы, связанные с ${common.ssl} в конфигурации:`, + configureCertbotToReloadNginxOnCertificateRenewal: `Настройте ${certbot}, чтобы перезагрузить ${common.nginx}, когда сертификаты успешно обновятся:`, + certbotDoesNotNeedToBeSetupForYourConfiguration: `${certbot} не нужно настраивать для вашей ${common.nginx} конфигурации.`, + certbot, +}; diff --git a/src/nginxconfig/i18n/ru/templates/setup_sections/download.js b/src/nginxconfig/i18n/ru/templates/setup_sections/download.js new file mode 100644 index 0000000..e957a67 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/setup_sections/download.js @@ -0,0 +1,40 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + downloadTheGeneratedConfig: 'Скачать сгенерированную конфигурацию:', + andUploadItToYourServers: 'и загрузить её на Ваш сервер', + directory: 'директория.', + or: 'или, ', + copyBase64StringOfCompressedConfig: 'Скопируйте Base64 c сжатой конфигурацией', + pasteItInYourServersCommandLineAndExecute: ', вставьте это в Вашу командную строку на сервере и запустите.', + navigateToYourNginxConfigurationDirectoryOnYourServer: `Перейдите в папку конфигурации ${common.nginx} на Вашем сервере:`, + createABackupOfYourCurrentNginxConfiguration: `Сделайте резервную копию Вашей нынешней ${common.nginx} конфигурации:`, + extractTheNewCompressedConfigurationArchiveUsingTar: 'Извлеките архив с новой конфигурацией с помощью использованием tar:', + download: 'Скачать', +}; diff --git a/src/nginxconfig/i18n/ru/templates/setup_sections/go_live.js b/src/nginxconfig/i18n/ru/templates/setup_sections/go_live.js new file mode 100644 index 0000000..46b667a --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/setup_sections/go_live.js @@ -0,0 +1,33 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + letsGoLive: 'Время запуска!', + reloadNginxToLoadInYourNewConfiguration: `Перезагрузите ${common.nginx}, чтобы запустить его с новой конфигурацией:`, + goLive: 'Запустить!', +}; diff --git a/src/nginxconfig/i18n/ru/templates/setup_sections/index.js b/src/nginxconfig/i18n/ru/templates/setup_sections/index.js new file mode 100644 index 0000000..378a5cf --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/setup_sections/index.js @@ -0,0 +1,32 @@ +/* +Copyright 2020 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import certbot from './certbot'; +import download from './download'; +import goLive from './go_live'; +import ssl from './ssl'; + +export default { certbot, download, goLive, ssl }; diff --git a/src/nginxconfig/i18n/ru/templates/setup_sections/ssl.js b/src/nginxconfig/i18n/ru/templates/setup_sections/ssl.js new file mode 100644 index 0000000..3d39c39 --- /dev/null +++ b/src/nginxconfig/i18n/ru/templates/setup_sections/ssl.js @@ -0,0 +1,34 @@ +/* +Copyright 2021 DigitalOcean + +This code is licensed under the MIT License. +You may obtain a copy of the License at +https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and / or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions : + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +*/ + +import common from '../../common'; + +export default { + generateDiffieHellmanKeysByRunningThisCommandOnYourServer: 'Сгенерируйте ключи Диффи-Хеллмана, запустив следующую команду на своем сервере:', + createACommonAcmeChallengeDirectoryForLetsEncrypt: `Создайте директорию хранения ACME-challenge (для ${common.letsEncrypt}):`, + noAdditionalStepsAreNeededToSetUpSslForNginx: `Больше ничего не требуется, чтобы настроить ${common.ssl} в Вашей ${common.nginx} конфигурации.`, + sslInit: `${common.ssl} init`, +}; diff --git a/src/nginxconfig/i18n/setup.js b/src/nginxconfig/i18n/setup.js index 7b807bb..138504b 100644 --- a/src/nginxconfig/i18n/setup.js +++ b/src/nginxconfig/i18n/setup.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at diff --git a/src/nginxconfig/i18n/zh-cn/languages.js b/src/nginxconfig/i18n/zh-cn/languages.js index f103b6d..02a3e87 100644 --- a/src/nginxconfig/i18n/zh-cn/languages.js +++ b/src/nginxconfig/i18n/zh-cn/languages.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -30,4 +30,5 @@ export default { zhTW: '繁体中文', ptBR: '葡萄牙语 (巴西)', fr: '法语', + ru: '俄语', }; diff --git a/src/nginxconfig/i18n/zh-tw/languages.js b/src/nginxconfig/i18n/zh-tw/languages.js index c817aec..a359cd4 100644 --- a/src/nginxconfig/i18n/zh-tw/languages.js +++ b/src/nginxconfig/i18n/zh-tw/languages.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -30,4 +30,5 @@ export default { zhTW: '繁體中文', ptBR: '葡萄牙語(巴西)', fr: '法語', + ru: '俄語', };