Move strings to i18n for routing & server domain sections

This commit is contained in:
MattIPv4
2020-06-01 17:37:18 +01:00
parent 49406bfd46
commit d655801e36
5 changed files with 67 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ limitations under the License.
<div class="checkbox">
<PrettyCheck v-model="root" class="p-default p-curve p-fill p-icon">
<i slot="extra" class="icon fas fa-check"></i>
enable
{{ i18n.templates.domainSections.routing.enable }}
</PrettyCheck>
</div>
</div>
@@ -56,7 +56,7 @@ limitations under the License.
<div v-if="fallbackHtmlEnabled || fallbackPhpEnabled" class="field is-horizontal is-aligned-top">
<div class="field-label">
<label class="label">Fallback routing</label>
<label class="label">{{ i18n.templates.domainSections.routing.fallbackRouting }}</label>
</div>
<div class="field-body">
<div class="field">
@@ -82,7 +82,7 @@ limitations under the License.
<div v-if="fallbackPhpPathEnabled" class="field is-horizontal">
<div class="field-label">
<label class="label">Fallback routing PHP path</label>
<label class="label">{{ i18n.templates.domainSections.routing.fallbackRoutingPhpPath }}</label>
</div>
<div class="field-body">
<div :class="`field${fallbackPhpPathChanged ? ' is-changed' : ''}`">
@@ -99,7 +99,7 @@ limitations under the License.
<div v-if="legacyPhpRoutingEnabled" class="field is-horizontal">
<div class="field-label">
<label class="label">Legacy PHP routing</label>
<label class="label">{{ i18n.templates.domainSections.routing.legacyPhpRouting }}</label>
</div>
<div class="field-body">
<div class="field">
@@ -107,7 +107,7 @@ limitations under the License.
<div class="checkbox">
<PrettyCheck v-model="legacyPhpRouting" class="p-default p-curve p-fill p-icon">
<i slot="extra" class="icon fas fa-check"></i>
enable legacy routing
{{ i18n.templates.domainSections.routing.enableLegacyRouting }}
</PrettyCheck>
</div>
</div>
@@ -154,7 +154,7 @@ limitations under the License.
export default {
name: 'DomainRouting', // Component name
display: 'Routing', // Display name for tab
display: i18n.templates.domainSections.routing.routing, // Display name for tab
key: 'routing', // Key for data in parent
delegated: delegatedFromDefaults(defaults), // Data the parent will present here
components: {

View File

@@ -18,21 +18,21 @@ limitations under the License.
<div>
<div class="field-row">
<div class="field">
<label class="label">Domain</label>
<label class="label">{{ i18n.templates.domainSections.server.domain }}</label>
<div :class="`control${domainChanged ? ' is-changed' : ''}`">
<input v-model="domain" class="input" type="text" :placeholder="domainDefault" />
</div>
</div>
<div class="field">
<label class="label">Path</label>
<label class="label">{{ i18n.templates.domainSections.server.path }}</label>
<div :class="`control${pathChanged ? ' is-changed' : ''}`">
<input v-model="path" class="input" type="text" :placeholder="`/var/www/${domain}`" />
</div>
</div>
<div class="field">
<label class="label">Document root</label>
<label class="label">{{ i18n.templates.domainSections.server.documentRoot }}</label>
<div :class="`control${documentRootChanged ? ' is-changed' : ''}`">
<input v-model="documentRoot" class="input" type="text" :placeholder="documentRootDefault" />
</div>
@@ -41,7 +41,7 @@ limitations under the License.
<div class="field is-horizontal">
<div class="field-label">
<label class="label">www subdomain</label>
<label class="label">{{ i18n.templates.domainSections.server.wwwSubdomain }}</label>
</div>
<div class="field-body">
<div class="field">
@@ -59,7 +59,7 @@ limitations under the License.
<div v-if="cdnSubdomainEnabled" class="field is-horizontal">
<div class="field-label">
<label class="label">CDN subdomain</label>
<label class="label">{{ i18n.templates.domainSections.server.cdnSubdomain }}</label>
</div>
<div class="field-body">
<div class="field">
@@ -77,7 +77,7 @@ limitations under the License.
<div class="field is-horizontal">
<div class="field-label">
<label class="label">Redirect subdomains</label>
<label class="label">{{ i18n.templates.domainSections.server.redirectSubdomains }}</label>
</div>
<div class="field-body">
<div class="field">
@@ -168,7 +168,7 @@ limitations under the License.
export default {
name: 'DomainServer', // Component name
display: 'Server', // Display name for tab
display: i18n.templates.domainSections.server.server, // Display name for tab
key: 'server', // Key for data in parent
delegated: delegatedFromDefaults(defaults), // Data the parent will present here
components: {