Skip to content
Prev Previous commit
Next Next commit
Set title tag with i18n
  • Loading branch information
rakillen committed Oct 13, 2021
commit cca17cbb19e88f62b8ec882fdd603d3b32c06ce2
2 changes: 1 addition & 1 deletion electron/app/js/prompt/credential-passphrase.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-->
<html lang="en-us">
<head>
<title>...</title>
<title id="title">...</title>
<link href="prompt.css" rel="stylesheet" />
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions electron/app/js/prompt/credential-passphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function promptRegister() {
document.querySelector('#ok').textContent = window.api.i18n.t('dialog-button-ok');
document.querySelector('#cancel').textContent = window.api.i18n.t('dialog-button-cancel');
document.querySelector('#label').textContent = window.api.i18n.t('dialog-passphrase-prompt-label');
document.querySelector('#title').textContent = window.api.i18n.t('dialog-passphrase-prompt-title');

const height = document.querySelector('body').offsetHeight;
window.api.ipc.sendSync('prompt-size:' + promptId, height);
Expand Down
2 changes: 0 additions & 2 deletions electron/app/js/promptUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/
const path = require('path');
const { BrowserWindow, ipcMain } = require('electron');
const i18n = require('./i18next.config');

/* global __dirname */

Expand Down Expand Up @@ -33,7 +32,6 @@ async function getCredentialPassphrase(parentWindow) {
alwaysOnTop: false,
useContentSize: true,
modal: Boolean(parentWindow),
title: i18n.t('dialog-passphrase-prompt-title'),
menuBarVisible: false,
webPreferences: {
nodeIntegration: false,
Expand Down
1 change: 0 additions & 1 deletion electron/app/locales/en/electron.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
"dialog-invalid-oracle-home-title": "Invalid Oracle Home Directory",
"dialog-invalid-oracle-home-not-specified": "Oracle Home is not specified.",
"dialog-invalid-oracle-home-not-valid": "Specified Oracle Home {{oracleHome}} is not valid.",
"dialog-passphrase-prompt-title": "Credential Encryption Passphrase",
"dialog-https-proxy-url-label": "HTTPS Proxy URL",
"dialog-bypass-proxy-hosts-label": "Bypass Proxy Hosts",

Expand Down
1 change: 1 addition & 0 deletions electron/app/locales/en/webui.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"user-settings-dialog-quickstart-skip-label": "Skip Showing Introduction at Startup",
"user-settings-dialog-quickstart-skip-help": "Whether or not to skip showing the WebLogic Kubernetes Toolkit UI Introduction at application startup.",

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

"model-design-coming-soon": "Coming Soon...",
Expand Down