Use sentence case whenever possible

This commit is contained in:
Girish Ramakrishnan
2025-11-12 18:42:24 +01:00
parent ce15958a9a
commit 39c68075fb
15 changed files with 306 additions and 291 deletions
+2 -1
View File
@@ -178,7 +178,8 @@ defineExpose({
<FormGroup>
<label for="applinkTags">{{ $t('app.display.tags') }}</label>
<TagInput id="applinkTags" :placeholder="$t('app.display.tagsPlaceholder')" v-model="tags" v-tooltip="$t('app.display.tagsTooltip')" />
<TagInput id="applinkTags" v-model="tags" v-tooltip="$t('app.display.tagsTooltip')" />
<small class="helper-text">{{ $t('app.display.tagsPlaceholder') }}</small>
</FormGroup>
<FormGroup>
@@ -258,7 +258,7 @@ onMounted(async () => {
<input type="file" id="gcsKeyFileInput" style="display:none" accept="application/json, text/json" @change="onGcsKeyChange"/>
<label for="gcsKeyInput">{{ $t('backups.configureBackupStorage.gcsServiceKey') }}{{ providerConfig.projectId ? ` - project: ${providerConfig.projectId}` : '' }}</label>
<InputGroup>
<TextInput readonly required style="flex-grow: 1" v-model="providerConfig.credentials.client_email" placeholder="Service Account Key" onclick="document.getElementById('gcsKeyFileInput').click();"/>
<TextInput readonly required style="flex-grow: 1" v-model="providerConfig.credentials.client_email" placeholder="Service account key" onclick="document.getElementById('gcsKeyFileInput').click();"/>
<Button tool icon="fa fa-upload" onclick="document.getElementById('gcsKeyFileInput').click();"/>
</InputGroup>
<div class="error-label" v-show="gcsFileParseError">{{ gcsFileParseError }}</div>
@@ -112,7 +112,7 @@ defineExpose({
</FormGroup>
<FormGroup>
<label for="emailInput">{{ $t('dockerRegistries.email') }} (Optional)</label>
<label for="emailInput">{{ $t('dockerRegistries.email') }} (optional)</label>
<TextInput id="emailInput" v-model="email" />
</FormGroup>
@@ -152,7 +152,7 @@ function onGcdnsFileInputChange(event) {
<input type="file" id="gcdnsKeyFileInput" style="display:none" accept="application/json, text/json" @change="onGcdnsFileInputChange"/>
<label class="control-label">{{ $t('domains.domainDialog.gcdnsServiceAccountKey') }}{{ dnsConfig.projectId ? ` - project: ${dnsConfig.projectId}` : '' }}</label>
<InputGroup>
<TextInput readonly required style="flex-grow: 1" v-model="dnsConfig.credentials.client_email" placeholder="Service Account Key" onclick="getElementById('gcdnsKeyFileInput').click();"/>
<TextInput readonly required style="flex-grow: 1" v-model="dnsConfig.credentials.client_email" placeholder="Service account key" onclick="getElementById('gcdnsKeyFileInput').click();"/>
<Button tool icon="fa fa-upload" onclick="document.getElementById('gcdnsKeyFileInput').click();"/>
</InputGroup>
<div class="error-label" v-show="gcdnsFileParseError">{{ gcdnsFileParseError }}</div>
@@ -320,7 +320,7 @@ function onGcdnsFileInputChange(event) {
<Checkbox v-if="showAdvanced" v-model="customNameservers" :label="$t('domains.domainDialog.customNameservers')" />
<FormGroup v-if="showAdvanced">
<label>Certificate Provider <sup><a href="https://docs.cloudron.io/certificates/#certificate-providers" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></label>
<label>Certificate provider <sup><a href="https://docs.cloudron.io/certificates/#certificate-providers" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></label>
<SingleSelect v-model="tlsProvider" :options="tlsProviders" option-key="value" option-label="name"/>
</FormGroup>
+9 -6
View File
@@ -109,9 +109,10 @@ async function onNewFile() {
message: t('filemanager.newFileDialog.title'),
value: '',
required: true,
confirmStyle: 'success',
confirmStyle: 'primary',
confirmLabel: t('filemanager.newFileDialog.create'),
rejectLabel: t('main.dialog.cancel'),
rejectStyle: 'secondary'
});
if (!newFileName) return;
@@ -125,9 +126,10 @@ async function onNewFolder() {
message: t('filemanager.newDirectoryDialog.title'),
value: '',
required: true,
confirmStyle: 'success',
confirmStyle: 'primary',
confirmLabel: t('filemanager.newFileDialog.create'),
rejectLabel: t('main.dialog.cancel'),
rejectStyle: 'secondary'
});
if (!newFolderName) return;
@@ -239,8 +241,9 @@ async function deleteHandler(files) {
const confirmed = await inputDialog.value.confirm({
message: t('filemanager.removeDialog.reallyDelete'),
confirmStyle: 'danger',
confirmLabel: t('main.dialog.yes'),
rejectLabel: t('main.dialog.no'),
confirmLabel: t('main.dialog.delete'),
rejectLabel: t('main.dialog.cancel'),
rejectStyle: 'secondary'
});
if (!confirmed) return;
@@ -370,8 +373,8 @@ async function onRestartApp() {
const confirmed = await inputDialog.value.confirm({
message: t('filemanager.toolbar.restartApp') + '?',
confirmStyle: 'primary',
confirmLabel: t('main.dialog.yes'),
rejectLabel: t('main.dialog.no'),
confirmLabel: t('app.repair.recovery.restartAction'),
rejectLabel: t('main.dialog.cancel'),
rejectStyle: 'secondary',
});
@@ -59,7 +59,7 @@ defineExpose({
<template>
<Dialog ref="dialog"
:title="$t('users.invitationDialog.title', { username: user? (user.username || user.email) : '' })"
:title="$t('users.invitationDialog.title')"
:reject-label="$t('main.dialog.close')"
reject-style="secondary"
>
@@ -68,6 +68,8 @@ defineExpose({
<ProgressBar mode="indeterminate" :show-label="false" :slim="true"/>
</div>
<div v-else>
<p>{{ $t('users.invitationDialog.context', { username: user? (user.username || user.email) : '' }) }}</p>
<FormGroup>
<label>{{ $t('users.invitationDialog.descriptionLink') }}</label>
<InputGroup>
+4 -4
View File
@@ -11,16 +11,16 @@ const networkModel = NetworkModel.create();
const providers = [
{ name: 'Disabled', value: 'noop' },
{ name: 'Public IP', value: 'generic' },
{ name: 'Static IP Address', value: 'fixed' },
{ name: 'Network Interface', value: 'network-interface' }
{ name: 'Static IP address', value: 'fixed' },
{ name: 'Network interface', value: 'network-interface' }
];
function prettyIpProviderName(provider) {
switch (provider) {
case 'noop': return 'Disabled';
case 'generic': return 'Public IP';
case 'fixed': return 'Static IP Address';
case 'network-interface': return 'Network Interface';
case 'fixed': return 'Static IP address';
case 'network-interface': return 'Network interface';
default: return 'Unknown';
}
}
+4 -4
View File
@@ -11,16 +11,16 @@ const networkModel = NetworkModel.create();
const providers = [
{ name: 'Disabled', value: 'noop' },
{ name: 'Public IP', value: 'generic' },
{ name: 'Static IP Address', value: 'fixed' },
{ name: 'Network Interface', value: 'network-interface' }
{ name: 'Static IP address', value: 'fixed' },
{ name: 'Network interface', value: 'network-interface' }
];
function prettyIpProviderName(provider) {
switch (provider) {
case 'noop': return 'Disabled';
case 'generic': return 'Public IP';
case 'fixed': return 'Static IP Address';
case 'network-interface': return 'Network Interface';
case 'fixed': return 'Static IP address';
case 'network-interface': return 'Network interface';
default: return 'Unknown';
}
}
+2 -1
View File
@@ -104,7 +104,8 @@ onMounted(() => {
<FormGroup>
<label for="tagsInput">{{ $t('app.display.tags') }}</label>
<TagInput id="tagsInput" :placeholder="$t('app.display.tagsPlaceholder')" v-model="tags" v-tooltip="$t('app.display.tagsTooltip')"/>
<TagInput id="tagsInput" v-model="tags" v-tooltip="$t('app.display.tagsTooltip')"/>
<small class="helper-text">{{ $t('app.display.tagsPlaceholder') }}</small>
<div class="text-error" v-if="tagsError">{{ tagsError }}</div>
</FormGroup>
</fieldset>