fix: localise some headings on the about window

pull/3145/head
yougotwill 8 months ago
parent 86df66621b
commit 35633cce94

@ -95,6 +95,7 @@
"closedGroupInviteSuccessTitle": "Group Invitation Succeeded", "closedGroupInviteSuccessTitle": "Group Invitation Succeeded",
"closedGroupInviteSuccessTitlePlural": "Group Invitations Completed", "closedGroupInviteSuccessTitlePlural": "Group Invitations Completed",
"closedGroupMaxSize": "A group cannot have more than 100 members", "closedGroupMaxSize": "A group cannot have more than 100 members",
"commitHashDesktop": "Commit Hash: $hash$",
"confirm": "Confirm", "confirm": "Confirm",
"confirmNewPassword": "Confirm new password", "confirmNewPassword": "Confirm new password",
"confirmPassword": "Confirm password", "confirmPassword": "Confirm password",
@ -503,6 +504,7 @@
"startInTrayTitle": "Keep in System Tray", "startInTrayTitle": "Keep in System Tray",
"support": "Support", "support": "Support",
"surveyTitle": "We'd Love Your Feedback", "surveyTitle": "We'd Love Your Feedback",
"systemInformationDesktop": "System Information: $information$",
"termsOfService": "Terms of Service", "termsOfService": "Terms of Service",
"themesSettingTitle": "Themes", "themesSettingTitle": "Themes",
"theyChangedTheTimer": "<b>$name$</b> has set messages to disappear <b>$time$</b> after they have been <b>$mode$</b>", "theyChangedTheTimer": "<b>$name$</b> has set messages to disappear <b>$time$</b> after they have been <b>$mode$</b>",

@ -54,8 +54,8 @@ export const AboutView = () => {
} }
const versionInfo = `v${window.getVersion()}`; const versionInfo = `v${window.getVersion()}`;
const commitInfo = `Commit: ${window.getCommitHash()}` || ''; const systemInfo = `${window.i18n('systemInformationDesktop', [window.getOSRelease()])}`;
const osInfo = `Operating System: ${window.getOSRelease()}`; const commitInfo = `${window.i18n('commitHashDesktop', [window.getCommitHash() || window.i18n('unknown')])}`;
useEffect(() => { useEffect(() => {
if (window.theme) { if (window.theme) {
@ -92,12 +92,16 @@ export const AboutView = () => {
text={versionInfo} text={versionInfo}
buttonType={SessionButtonType.Simple} buttonType={SessionButtonType.Simple}
/> />
<CopyToClipboardButton
className="os"
text={systemInfo}
buttonType={SessionButtonType.Simple}
/>
<CopyToClipboardButton <CopyToClipboardButton
className="commitHash" className="commitHash"
text={commitInfo} text={commitInfo}
buttonType={SessionButtonType.Simple} buttonType={SessionButtonType.Simple}
/> />
<CopyToClipboardButton className="os" text={osInfo} buttonType={SessionButtonType.Simple} />
{environmentStates.length ? ( {environmentStates.length ? (
<CopyToClipboardButton <CopyToClipboardButton
className="environment" className="environment"

@ -95,6 +95,7 @@ export type LocalizerKeys =
| 'closedGroupInviteSuccessTitle' | 'closedGroupInviteSuccessTitle'
| 'closedGroupInviteSuccessTitlePlural' | 'closedGroupInviteSuccessTitlePlural'
| 'closedGroupMaxSize' | 'closedGroupMaxSize'
| 'commitHashDesktop'
| 'confirm' | 'confirm'
| 'confirmNewPassword' | 'confirmNewPassword'
| 'confirmPassword' | 'confirmPassword'
@ -503,6 +504,7 @@ export type LocalizerKeys =
| 'startedACall' | 'startedACall'
| 'support' | 'support'
| 'surveyTitle' | 'surveyTitle'
| 'systemInformationDesktop'
| 'termsOfService' | 'termsOfService'
| 'themesSettingTitle' | 'themesSettingTitle'
| 'theyChangedTheTimer' | 'theyChangedTheTimer'

@ -151,14 +151,14 @@ window.addEventListener('unhandledrejection', rejectionEvent => {
export function saveLogToDesktop() { export function saveLogToDesktop() {
const versionInfo = `v${window.getVersion()}`; const versionInfo = `v${window.getVersion()}`;
const operatingSystemInfo = `Operating System: ${window.getOSRelease()}`; const systemInfo = `System Information: ${window.getOSRelease()}`;
const commitHashInfo = window.getCommitHash() ? `Commit: ${window.getCommitHash()}` : ''; const commitInfo = `Commit Hash: ${window.getCommitHash()}` || 'Unknown';
const debugLogWithSystemInfo = ` const debugLogWithSystemInfo = `
****************************************************************************** ******************************************************************************
# Application Info # Application Info
${versionInfo} ${versionInfo}
${operatingSystemInfo} ${systemInfo}
${commitHashInfo} ${commitInfo}
******************************************************************************`; ******************************************************************************`;
window.saveLog(debugLogWithSystemInfo); window.saveLog(debugLogWithSystemInfo);
} }

Loading…
Cancel
Save