mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 18:59:17 +08:00
Move strings to i18n for logging & php
This commit is contained in:
@@ -15,5 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import https from './https';
|
||||
import logging from './logging';
|
||||
import php from './php';
|
||||
|
||||
export default { https };
|
||||
export default { https, logging, php };
|
||||
|
21
src/nginxconfig/i18n/en/templates/domain_sections/logging.js
Normal file
21
src/nginxconfig/i18n/en/templates/domain_sections/logging.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
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 {
|
||||
byDomain: 'by domain',
|
||||
enableForThisDomain: 'enable for this domain',
|
||||
logging: 'Logging',
|
||||
};
|
29
src/nginxconfig/i18n/en/templates/domain_sections/php.js
Normal file
29
src/nginxconfig/i18n/en/templates/domain_sections/php.js
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
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 {
|
||||
php: 'PHP',
|
||||
phpIsDisabled: 'PHP is disabled.',
|
||||
phpCannotBeEnabledWithReverseProxy: 'PHP cannot be enabled whilst the reverse proxy is enabled.',
|
||||
phpCannotBeEnabledWithPython: 'PHP cannot be enabled whilst Python is enabled.',
|
||||
enablePhp: 'enable PHP',
|
||||
wordPressRules: 'WordPress rules',
|
||||
enableWordPressRules: 'enable WordPress-specific rules',
|
||||
drupalRules: 'Drupal rules',
|
||||
enableDrupalRules: ' enable Drupal-specific rules',
|
||||
magentoRules: 'Magento rules',
|
||||
enableMagentoRules: ' enable Magento-specific rules',
|
||||
};
|
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import * as en from './en';
|
||||
import en from './en';
|
||||
|
||||
const lang = 'en';
|
||||
const packs = { en };
|
||||
|
Reference in New Issue
Block a user