mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-20 18:59:17 +08:00
Move all global section strings to i18n
This commit is contained in:
@@ -16,4 +16,6 @@ limitations under the License.
|
||||
|
||||
import templates from './templates';
|
||||
|
||||
// TODO: centralised shared strings
|
||||
|
||||
export default { templates };
|
||||
|
29
src/nginxconfig/i18n/en/templates/global_sections/https.js
Normal file
29
src/nginxconfig/i18n/en/templates/global_sections/https.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 {
|
||||
sslProfile: 'SSL Profile',
|
||||
httpsMustBeEnabledOnOneSite: 'HTTPS must be enabled on at least one site to configure global HTTPS settings.',
|
||||
ocspDnsResolvers: 'OCSP DNS Resolvers',
|
||||
cloudflareResolver: 'Cloudflare Resolver',
|
||||
googlePublicDns: 'Google Public DNS',
|
||||
openDns: 'OpenDNS',
|
||||
letsEncryptWebroot: 'Let\'s Encrypt webroot',
|
||||
mozillaModern: 'Mozilla Modern',
|
||||
mozillaIntermediate: 'Mozilla Intermediate',
|
||||
mozillaOld: 'Mozilla Old',
|
||||
https: 'HTTPS',
|
||||
};
|
26
src/nginxconfig/i18n/en/templates/global_sections/index.js
Normal file
26
src/nginxconfig/i18n/en/templates/global_sections/index.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
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.
|
||||
*/
|
||||
|
||||
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 security from './security';
|
||||
import tools from './tools';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, security, tools };
|
20
src/nginxconfig/i18n/en/templates/global_sections/logging.js
Normal file
20
src/nginxconfig/i18n/en/templates/global_sections/logging.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
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 {
|
||||
enableFileNotFoundErrorLogging: 'enable file not found error logging in',
|
||||
logging: 'Logging',
|
||||
};
|
21
src/nginxconfig/i18n/en/templates/global_sections/nginx.js
Normal file
21
src/nginxconfig/i18n/en/templates/global_sections/nginx.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 {
|
||||
nginxConfigDirectory: 'NGINX config directory',
|
||||
mb: 'MB',
|
||||
nginx: 'NGINX',
|
||||
};
|
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
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 {
|
||||
gzipCompression: 'Gzip compression',
|
||||
enableGzipCompression: 'enable gzip compression',
|
||||
brotliCompression: 'Brotli compression',
|
||||
enableBrotliCompression: 'enable brotli compression',
|
||||
expirationForAssets: 'Expiration for assets',
|
||||
expirationForMedia: 'Expiration for media',
|
||||
expirationForSvgs: 'Expiration for SVGs',
|
||||
expirationForFonts: 'Expiration for fonts',
|
||||
performance: 'Performance',
|
||||
};
|
30
src/nginxconfig/i18n/en/templates/global_sections/php.js
Normal file
30
src/nginxconfig/i18n/en/templates/global_sections/php.js
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
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 {
|
||||
phpServer: 'PHP server',
|
||||
phpMustBeEnabledOnOneSite: 'PHP must be enabled on at least one site to configure global PHP settings.',
|
||||
phpBackupServer: 'PHP backup server',
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
disabled: 'Disabled',
|
||||
php: 'PHP',
|
||||
};
|
21
src/nginxconfig/i18n/en/templates/global_sections/python.js
Normal file
21
src/nginxconfig/i18n/en/templates/global_sections/python.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 {
|
||||
pythonServer: 'Python server',
|
||||
pythonMustBeEnabledOnOneSite: 'Python must be enabled on at least one site to configure global Python settings.',
|
||||
python: 'Python',
|
||||
};
|
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
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 {
|
||||
enable: 'Python server',
|
||||
security: 'Security',
|
||||
};
|
33
src/nginxconfig/i18n/en/templates/global_sections/tools.js
Normal file
33
src/nginxconfig/i18n/en/templates/global_sections/tools.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
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 {
|
||||
modularizedStructure: 'Modularized structure',
|
||||
enableModularizedConfigFiles: 'enable modularized config files',
|
||||
symlinkVhost: 'Symlink vhost',
|
||||
enableSymLinksFrom: 'enable symlinks from',
|
||||
to: 'to',
|
||||
shareConfiguration: 'Share configuration',
|
||||
resetConfiguration: 'Reset configuration',
|
||||
resetGlobalConfig: 'Reset global config',
|
||||
resetAllDomains: 'Reset all domains',
|
||||
removeAllDomains: 'Remove all domains',
|
||||
resetDomainConfig: 'Reset domain config',
|
||||
removeDomain: 'Remove domain',
|
||||
yesImSure: 'Yes, I\'m sure',
|
||||
noCancel: 'No, cancel',
|
||||
tools: 'Tools',
|
||||
};
|
@@ -16,5 +16,6 @@ limitations under the License.
|
||||
|
||||
import app from './app';
|
||||
import domainSections from './domain_sections';
|
||||
import globalSections from './global_sections';
|
||||
|
||||
export default { app, domainSections };
|
||||
export default { app, domainSections, globalSections };
|
||||
|
Reference in New Issue
Block a user