feat(desktop): fix translation keys

This commit is contained in:
Andreas Coroiu 2022-06-23 11:44:26 +02:00
parent 34480eddd5
commit 900c91ea4f
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A
5 changed files with 22 additions and 22 deletions

View File

@ -174,10 +174,10 @@
[(ngModel)]="enableFavicons"
(change)="saveFavicons()"
/>
{{ "enableFavicon" | i18n }}
{{ "showWebsiteIcons" | i18n }}
</label>
</div>
<small class="help-block">{{ "faviconDesc" | i18n }}</small>
<small class="help-block">{{ "showWebsiteIconsDesc" | i18n }}</small>
</div>
</ng-container>
</div>
@ -305,10 +305,10 @@
[(ngModel)]="enableBrowserIntegration"
(change)="saveBrowserIntegration()"
/>
{{ "enableBrowserIntegration" | i18n }}
{{ "allowBrowserIntegration" | i18n }}
</label>
</div>
<small class="help-block">{{ "enableBrowserIntegrationDesc" | i18n }}</small>
<small class="help-block">{{ "allowBrowserIntegrationDesc" | i18n }}</small>
</div>
<div class="form-group">
<div class="checkbox">
@ -321,11 +321,11 @@
(change)="saveBrowserIntegrationFingerprint()"
[disabled]="!enableBrowserIntegration"
/>
{{ "enableBrowserIntegrationFingerprint" | i18n }}
{{ "requireVerificationForBrowserIntegration" | i18n }}
</label>
</div>
<small class="help-block">{{
"enableBrowserIntegrationFingerprintDesc" | i18n
"requireVerificationForBrowserIntegrationDesc" | i18n
}}</small>
</div>
<div class="form-group">

View File

@ -81,7 +81,7 @@ export class SettingsComponent implements OnInit {
// Workaround to avoid ghosting trays https://github.com/electron/electron/issues/17622
this.requireEnableTray = this.platformUtilsService.getDevice() === DeviceType.LinuxDesktop;
const trayKey = isMac ? "enableMenuBar" : "enableTray";
const trayKey = isMac ? "showMenuBarIcon" : "showTrayIcon";
this.enableTrayText = this.i18nService.t(trayKey);
this.enableTrayDescText = this.i18nService.t(trayKey + "Desc");

View File

@ -894,10 +894,10 @@
"message": "Automatically clear copied values from your clipboard.",
"description": "Clipboard is the operating system thing where you copy/paste data to on your device."
},
"enableFavicon": {
"showWebsiteIcons": {
"message": "Show website icons"
},
"faviconDesc": {
"showWebsiteIconsDesc": {
"message": "Show a recognizable image next to each login."
},
"enableMinToTray": {
@ -924,10 +924,10 @@
"enableCloseToMenuBarDesc": {
"message": "When closing the window, show an icon in the menu bar instead."
},
"enableTray": {
"message": "Enable tray icon"
"showTrayIcon": {
"message": "Show tray icon"
},
"enableTrayDesc": {
"showTrayIconDesc": {
"message": "Always show an icon in the system tray."
},
"startToTray": {
@ -1381,10 +1381,10 @@
"touchIdConsentMessage": {
"message": "unlock your vault"
},
"autoPromptWindowsHello": {
"askForWindowsHelloOnLaunch": {
"message": "Ask for Windows Hello on launch"
},
"autoPromptTouchId": {
"askForTouchIdOnLaunch": {
"message": "Ask for Touch ID on launch"
},
"lockWithMasterPassOnRestart": {
@ -1393,10 +1393,10 @@
"preferences": {
"message": "Preferences"
},
"enableMenuBar": {
"showMenuBarIcon": {
"message": "Show menu bar icon"
},
"enableMenuBarDesc": {
"showMenuBarIconDesc": {
"message": "Always show an icon in the menu bar."
},
"hideToMenuBar": {
@ -1546,10 +1546,10 @@
"acceptPoliciesError": {
"message": "Terms of Service and Privacy Policy have not been acknowledged."
},
"enableBrowserIntegration": {
"allowBrowserIntegration": {
"message": "Allow browser integration"
},
"enableBrowserIntegrationDesc": {
"allowBrowserIntegrationDesc": {
"message": "Browser integration is used for biometrics in browser."
},
"browserIntegrationUnsupportedTitle": {
@ -1564,10 +1564,10 @@
"browserIntegrationLinuxDesc": {
"message": "Unfortunately browser integration is currently not supported in the linux version."
},
"enableBrowserIntegrationFingerprint": {
"requireVerificationForBrowserIntegration": {
"message": "Require verification for browser integration"
},
"enableBrowserIntegrationFingerprintDesc": {
"requireVerificationForBrowserIntegrationDesc": {
"message": "Add an additional layer of security by requiring fingerprint phrase confirmation when establishing a link between your desktop and browser. This requires user action and verification each time a connection is created."
},
"approve": {

View File

@ -13,7 +13,7 @@ export default class BiometricDarwinMain implements BiometricMain {
async init() {
await this.stateService.setEnableBiometric(await this.supportsBiometric());
await this.stateService.setBiometricText("unlockWithTouchId");
await this.stateService.setNoAutoPromptBiometricsText("autoPromptTouchId");
await this.stateService.setNoAutoPromptBiometricsText("askForTouchIdOnLaunch");
// eslint-disable-next-line
ipcMain.on("biometric", async (event: any, message: any) => {

View File

@ -31,7 +31,7 @@ export default class BiometricWindowsMain implements BiometricMain {
}
await this.stateService.setEnableBiometric(supportsBiometric);
await this.stateService.setBiometricText("unlockWithWindowsHello");
await this.stateService.setNoAutoPromptBiometricsText("autoPromptWindowsHello");
await this.stateService.setNoAutoPromptBiometricsText("askForWindowsHelloOnLaunch");
ipcMain.on("biometric", async (event: any, message: any) => {
event.returnValue = await this.authenticateBiometric();