mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
update text content
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
<span v-if="!loading">{{ oldProfile.username }}</span>
|
||||
</div>
|
||||
<div class="d-flex text-body-1 align-center" style="height: 40px;">
|
||||
<span v-if="!loading && emailVerified">{{ $t('Email has been verified') }}</span>
|
||||
<span v-if="!loading && !emailVerified">{{ $t('Email has not been verified') }}</span>
|
||||
<span v-if="!loading && emailVerified">{{ $t('Email address is verified') }}</span>
|
||||
<span v-if="!loading && !emailVerified">{{ $t('Email address is not verified') }}</span>
|
||||
<v-btn class="ml-2 px-2" size="small" variant="text" :disabled="loading || resending"
|
||||
@click="resendVerifyEmail" v-if="isUserVerifyEmailEnabled && !loading && !emailVerified">
|
||||
{{ $t('Resend Validation Email') }}
|
||||
@@ -81,7 +81,7 @@
|
||||
:label="$t('Default Account')"
|
||||
:placeholder="$t('Default Account')"
|
||||
:items="allCategorizedAccounts"
|
||||
:no-item-text="$t('Not Specified')"
|
||||
:no-item-text="$t('Unspecified')"
|
||||
v-model="newProfile.defaultAccountId">
|
||||
</two-column-select>
|
||||
</v-col>
|
||||
@@ -92,8 +92,8 @@
|
||||
item-value="type"
|
||||
persistent-placeholder
|
||||
:disabled="loading || saving"
|
||||
:label="$t('Editable Transaction Scope')"
|
||||
:placeholder="$t('Editable Transaction Scope')"
|
||||
:label="$t('Editable Transaction Range')"
|
||||
:placeholder="$t('Editable Transaction Range')"
|
||||
:items="allTransactionEditScopeTypes"
|
||||
v-model="newProfile.transactionEditScope"
|
||||
/>
|
||||
@@ -208,7 +208,7 @@
|
||||
|
||||
<v-card-text class="d-flex flex-wrap gap-4">
|
||||
<v-btn :disabled="inputIsNotChanged || inputIsInvalid || saving" @click="save">
|
||||
{{ $t('Save changes') }}
|
||||
{{ $t('Save Changes') }}
|
||||
<v-progress-circular indeterminate size="22" class="ml-2" v-if="saving"></v-progress-circular>
|
||||
</v-btn>
|
||||
|
||||
@@ -354,11 +354,11 @@ export default {
|
||||
},
|
||||
inputInvalidProblemMessage() {
|
||||
if (!this.newProfile.email) {
|
||||
return 'Email address cannot be empty';
|
||||
return 'Email address cannot be blank';
|
||||
} else if (!this.newProfile.nickname) {
|
||||
return 'Nickname cannot be empty';
|
||||
return 'Nickname cannot be blank';
|
||||
} else if (!this.newProfile.defaultCurrency) {
|
||||
return 'Default currency cannot be empty';
|
||||
return 'Default currency cannot be blank';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
@@ -368,7 +368,7 @@ export default {
|
||||
},
|
||||
langAndRegionInputInvalidProblemMessage() {
|
||||
if (!this.newProfile.defaultCurrency) {
|
||||
return 'Default currency cannot be empty';
|
||||
return 'Default currency cannot be blank';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<v-card-text class="py-0">
|
||||
<span class="text-body-1 text-error">
|
||||
<v-icon :icon="icons.alert"/>
|
||||
{{ $t('You CANNOT undo this action. This will clear your accounts, categories, tags and transactions data. Please input your current password to confirm.') }}
|
||||
{{ $t('You CANNOT undo this action. This will clear your accounts, categories, tags and transactions data. Please enter your current password to confirm.') }}
|
||||
</span>
|
||||
</v-card-text>
|
||||
|
||||
@@ -277,7 +277,7 @@ export default {
|
||||
const self = this;
|
||||
|
||||
if (!self.currentPasswordForClearData) {
|
||||
self.$refs.snackbar.showMessage('Current password cannot be empty');
|
||||
self.$refs.snackbar.showMessage('Current password cannot be blank');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<v-card :class="{ 'disabled': updatingPassword }" :title="$t('Modify Password')">
|
||||
<v-form>
|
||||
<v-card-text class="pt-0">
|
||||
<span class="text-body-1">{{ $t('After the password is changed, other devices will be logged out, please log in again on other devices by using the new password.') }}</span>
|
||||
<span class="text-body-1">{{ $t('After changing the password, other devices will be logged out. Please use the new password to log in on other devices.') }}</span>
|
||||
</v-card-text>
|
||||
|
||||
<v-card-text>
|
||||
@@ -51,7 +51,7 @@
|
||||
clearable
|
||||
:disabled="updatingPassword"
|
||||
:type="isConfirmPasswordVisible ? 'text' : 'password'"
|
||||
:label="$t('Confirmation Password')"
|
||||
:label="$t('Confirm Password')"
|
||||
:placeholder="$t('Re-enter the password')"
|
||||
:append-inner-icon="isConfirmPasswordVisible ? icons.eyeSlash : icons.eye"
|
||||
v-model="confirmPassword"
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
<v-card-text class="d-flex flex-wrap gap-4">
|
||||
<v-btn :disabled="!currentPassword || !newPassword || !confirmPassword || updatingPassword" @click="updatePassword">
|
||||
{{ $t('Save changes') }}
|
||||
{{ $t('Save Changes') }}
|
||||
<v-progress-circular indeterminate size="22" class="ml-2" v-if="updatingPassword"></v-progress-circular>
|
||||
</v-btn>
|
||||
</v-card-text>
|
||||
@@ -181,15 +181,15 @@ export default {
|
||||
...mapStores(useRootStore, useSettingsStore, useUserStore, useTokensStore),
|
||||
inputProblemMessage() {
|
||||
if (!this.currentPassword) {
|
||||
return 'Current password cannot be empty';
|
||||
return 'Current password cannot be blank';
|
||||
} else if (!this.newPassword && !this.confirmPassword) {
|
||||
return 'Nothing has been modified';
|
||||
} else if (!this.newPassword && this.confirmPassword) {
|
||||
return 'New password cannot be empty';
|
||||
return 'New password cannot be blank';
|
||||
} else if (this.newPassword && !this.confirmPassword) {
|
||||
return 'Confirmation password cannot be empty';
|
||||
return 'Password confirmation cannot be blank';
|
||||
} else if (this.newPassword && this.confirmPassword && this.newPassword !== this.confirmPassword) {
|
||||
return 'Password and confirmation password do not match';
|
||||
return 'Password and password confirmation do not match';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -10,13 +10,13 @@
|
||||
<v-card-text class="pb-0">
|
||||
<v-skeleton-loader class="skeleton-no-margin pt-2 pb-5" type="text" style="width: 150px" :loading="true" v-if="loading"></v-skeleton-loader>
|
||||
<p class="text-body-1 font-weight-semibold" v-if="!loading && !new2FAQRCode">
|
||||
{{ status === true ? $t('Two-factor authentication has been enabled.') : $t('Two-factor authentication is not enabled yet.') }}
|
||||
{{ status === true ? $t('Two-factor authentication is already enabled.') : $t('Two-factor authentication is not enabled yet.') }}
|
||||
</p>
|
||||
<p class="text-body-1" v-if="!loading && new2FAQRCode">
|
||||
{{ $t('Please use two factor authentication app scan the below qrcode and input current passcode') }}
|
||||
{{ $t('Please use a two-factor authentication app to scan the qrcode below and enter the current passcode.') }}
|
||||
</p>
|
||||
<p class="text-body-1" v-if="!loading && status === true">
|
||||
{{ $t('Please enter your current password when disable two factor authentication or regenerate two factor authentication backup codes. If you regenerate backup codes, the old codes will be invalidated.') }}
|
||||
{{ $t('Your current password is required to disable two-factor authentication or regenerate backup codes for two-factor authentication. If you regenerate backup codes, the previous ones will become invalid.') }}
|
||||
</p>
|
||||
</v-card-text>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<v-row>
|
||||
<v-col cols="12" class="d-flex flex-wrap gap-4">
|
||||
<v-btn :disabled="!currentPassword || loading || disabling " v-if="status === true" @click="disable">
|
||||
{{ $t('Disable two-factor authentication') }}
|
||||
{{ $t('Disable Two-Factor Authentication') }}
|
||||
<v-progress-circular indeterminate size="22" class="ml-2" v-if="disabling"></v-progress-circular>
|
||||
</v-btn>
|
||||
<v-btn :disabled="!currentPassword || loading || regenerating" v-if="status === true" @click="regenerateBackupCode()">
|
||||
@@ -66,7 +66,7 @@
|
||||
<v-progress-circular indeterminate size="22" class="ml-2" v-if="regenerating"></v-progress-circular>
|
||||
</v-btn>
|
||||
<v-btn :disabled="loading || enabling" v-if="status === false && !new2FAQRCode" @click="enable">
|
||||
{{ $t('Enable two-factor authentication') }}
|
||||
{{ $t('Enable Two-Factor Authentication') }}
|
||||
<v-progress-circular indeterminate size="22" class="ml-2" v-if="enabling"></v-progress-circular>
|
||||
</v-btn>
|
||||
<v-btn :disabled="!currentPasscode || loading || enableConfirming" v-if="status === false && new2FAQRCode" @click="enableConfirm">
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
<v-card-text>
|
||||
<p class="text-body-1" v-if="status === true">
|
||||
{{ $t('Please copy these backup codes to safe place, the below codes can only be shown once. If these codes were lost, you can regenerate backup codes at any time.') }}
|
||||
{{ $t('Please copy these backup codes to safe place, the following backup codes will be displayed only once. If these codes were lost, you can regenerate them at any time.') }}
|
||||
</p>
|
||||
<v-textarea class="backup-code" readonly="readonly" :rows="10" :value="currentBackupCode"/>
|
||||
</v-card-text>
|
||||
@@ -207,7 +207,7 @@ export default {
|
||||
const self = this;
|
||||
|
||||
if (!self.currentPasscode) {
|
||||
self.$refs.snackbar.showMessage('Passcode cannot be empty');
|
||||
self.$refs.snackbar.showMessage('Passcode cannot be blank');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ export default {
|
||||
const self = this;
|
||||
|
||||
if (!self.currentPassword) {
|
||||
self.$refs.snackbar.showMessage('Current password cannot be empty');
|
||||
self.$refs.snackbar.showMessage('Current password cannot be blank');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ export default {
|
||||
self.disabling = false;
|
||||
|
||||
self.status = false;
|
||||
self.$refs.snackbar.showMessage('Two factor authentication has been disabled');
|
||||
self.$refs.snackbar.showMessage('Two-factor authentication has been disabled');
|
||||
}).catch(error => {
|
||||
self.disabling = false;
|
||||
|
||||
@@ -286,7 +286,7 @@ export default {
|
||||
const self = this;
|
||||
|
||||
if (!self.currentPassword) {
|
||||
self.$refs.snackbar.showMessage('Current password cannot be empty');
|
||||
self.$refs.snackbar.showMessage('Current password cannot be blank');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user