Skip to content

Commit cca17cb

Browse files
committed
Set title tag with i18n
1 parent 2dd5aff commit cca17cb

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

electron/app/js/prompt/credential-passphrase.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
-->
66
<html lang="en-us">
77
<head>
8-
<title>...</title>
8+
<title id="title">...</title>
99
<link href="prompt.css" rel="stylesheet" />
1010
</head>
1111
<body>

electron/app/js/prompt/credential-passphrase.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function promptRegister() {
5959
document.querySelector('#ok').textContent = window.api.i18n.t('dialog-button-ok');
6060
document.querySelector('#cancel').textContent = window.api.i18n.t('dialog-button-cancel');
6161
document.querySelector('#label').textContent = window.api.i18n.t('dialog-passphrase-prompt-label');
62+
document.querySelector('#title').textContent = window.api.i18n.t('dialog-passphrase-prompt-title');
6263

6364
const height = document.querySelector('body').offsetHeight;
6465
window.api.ipc.sendSync('prompt-size:' + promptId, height);

electron/app/js/promptUtils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
const path = require('path');
77
const { BrowserWindow, ipcMain } = require('electron');
8-
const i18n = require('./i18next.config');
98

109
/* global __dirname */
1110

@@ -33,7 +32,6 @@ async function getCredentialPassphrase(parentWindow) {
3332
alwaysOnTop: false,
3433
useContentSize: true,
3534
modal: Boolean(parentWindow),
36-
title: i18n.t('dialog-passphrase-prompt-title'),
3735
menuBarVisible: false,
3836
webPreferences: {
3937
nodeIntegration: false,

electron/app/locales/en/electron.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
"dialog-invalid-oracle-home-title": "Invalid Oracle Home Directory",
126126
"dialog-invalid-oracle-home-not-specified": "Oracle Home is not specified.",
127127
"dialog-invalid-oracle-home-not-valid": "Specified Oracle Home {{oracleHome}} is not valid.",
128-
"dialog-passphrase-prompt-title": "Credential Encryption Passphrase",
129128
"dialog-https-proxy-url-label": "HTTPS Proxy URL",
130129
"dialog-bypass-proxy-hosts-label": "Bypass Proxy Hosts",
131130

electron/app/locales/en/webui.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
"user-settings-dialog-quickstart-skip-label": "Skip Showing Introduction at Startup",
145145
"user-settings-dialog-quickstart-skip-help": "Whether or not to skip showing the WebLogic Kubernetes Toolkit UI Introduction at application startup.",
146146

147+
"dialog-passphrase-prompt-title": "Credential Encryption Passphrase",
147148
"dialog-passphrase-prompt-label": "Please enter the passphrase to use to encrypt the project credential.",
148149

149150
"model-design-coming-soon": "Coming Soon...",

0 commit comments

Comments
 (0)