Move all global section strings to i18n

This commit is contained in:
MattIPv4
2020-06-01 20:39:46 +01:00
parent d655801e36
commit 84f3a296d8
19 changed files with 313 additions and 79 deletions

View File

@@ -16,4 +16,6 @@ limitations under the License.
import templates from './templates';
// TODO: centralised shared strings
export default { templates };

View 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',
};

View 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 };

View 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',
};

View 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',
};

View File

@@ -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',
};

View 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',
};

View 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',
};

View 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 {
enable: 'Python server',
security: 'Security',
};

View 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',
};

View File

@@ -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 };