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" [(ngModel)]="enableFavicons"
(change)="saveFavicons()" (change)="saveFavicons()"
/> />
{{ "enableFavicon" | i18n }} {{ "showWebsiteIcons" | i18n }}
</label> </label>
</div> </div>
<small class="help-block">{{ "faviconDesc" | i18n }}</small> <small class="help-block">{{ "showWebsiteIconsDesc" | i18n }}</small>
</div> </div>
</ng-container> </ng-container>
</div> </div>
@ -305,10 +305,10 @@
[(ngModel)]="enableBrowserIntegration" [(ngModel)]="enableBrowserIntegration"
(change)="saveBrowserIntegration()" (change)="saveBrowserIntegration()"
/> />
{{ "enableBrowserIntegration" | i18n }} {{ "allowBrowserIntegration" | i18n }}
</label> </label>
</div> </div>
<small class="help-block">{{ "enableBrowserIntegrationDesc" | i18n }}</small> <small class="help-block">{{ "allowBrowserIntegrationDesc" | i18n }}</small>
</div> </div>
<div class="form-group"> <div class="form-group">
<div class="checkbox"> <div class="checkbox">
@ -321,11 +321,11 @@
(change)="saveBrowserIntegrationFingerprint()" (change)="saveBrowserIntegrationFingerprint()"
[disabled]="!enableBrowserIntegration" [disabled]="!enableBrowserIntegration"
/> />
{{ "enableBrowserIntegrationFingerprint" | i18n }} {{ "requireVerificationForBrowserIntegration" | i18n }}
</label> </label>
</div> </div>
<small class="help-block">{{ <small class="help-block">{{
"enableBrowserIntegrationFingerprintDesc" | i18n "requireVerificationForBrowserIntegrationDesc" | i18n
}}</small> }}</small>
</div> </div>
<div class="form-group"> <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 // Workaround to avoid ghosting trays https://github.com/electron/electron/issues/17622
this.requireEnableTray = this.platformUtilsService.getDevice() === DeviceType.LinuxDesktop; this.requireEnableTray = this.platformUtilsService.getDevice() === DeviceType.LinuxDesktop;
const trayKey = isMac ? "enableMenuBar" : "enableTray"; const trayKey = isMac ? "showMenuBarIcon" : "showTrayIcon";
this.enableTrayText = this.i18nService.t(trayKey); this.enableTrayText = this.i18nService.t(trayKey);
this.enableTrayDescText = this.i18nService.t(trayKey + "Desc"); this.enableTrayDescText = this.i18nService.t(trayKey + "Desc");

View File

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

View File

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