Move strings to i18n for python & reverse proxy domain sections

This commit is contained in:
MattIPv4
2020-06-01 17:04:55 +01:00
parent 242ff5b80e
commit 49406bfd46
6 changed files with 75 additions and 24 deletions

View File

@@ -18,5 +18,7 @@ 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';
export default { https, logging, php, presets };
export default { https, logging, php, presets, python, reverseProxy };

View File

@@ -0,0 +1,25 @@
/*
Copyright 2020 DigitalOcean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export default {
python: 'Python',
pythonIsDisabled: 'Python is disabled.',
pythonCannotBeEnabledWithReverseProxy: 'Python cannot be enabled whilst the reverse proxy is enabled.',
pythonCannotBeEnabledWithPhp: 'Python cannot be enabled whilst PHP is enabled.',
enablePython: 'enable Python',
djangoRules: 'Django rules',
enableDjangoRules: 'enable Django-specific rules',
};

View File

@@ -0,0 +1,24 @@
/*
Copyright 2020 DigitalOcean
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
export default {
reverseProxy: 'Reverse proxy',
reverseProxyIsDisabled: 'Reverse proxy is disabled.',
reverseProxyCannotBeEnabledWithPhp: 'Reverse proxy cannot be enabled whilst PHP is enabled.',
reverseProxyCannotBeEnabledWithPython: 'Reverse proxy cannot be enabled whilst Python is enabled.',
enableReverseProxy: 'enable reverse proxy',
path: 'Path',
};