diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 3dc24691e..1cc473bf2 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -95,6 +95,7 @@ "closedGroupInviteSuccessTitle": "Group Invitation Succeeded", "closedGroupInviteSuccessTitlePlural": "Group Invitations Completed", "closedGroupMaxSize": "A group cannot have more than 100 members", + "commitHashDesktop": "Commit Hash: $hash$", "confirm": "Confirm", "confirmNewPassword": "Confirm new password", "confirmPassword": "Confirm password", @@ -503,6 +504,7 @@ "startInTrayTitle": "Keep in System Tray", "support": "Support", "surveyTitle": "We'd Love Your Feedback", + "systemInformationDesktop": "System Information: $information$", "termsOfService": "Terms of Service", "themesSettingTitle": "Themes", "theyChangedTheTimer": "$name$ has set messages to disappear $time$ after they have been $mode$", diff --git a/ts/components/AboutView.tsx b/ts/components/AboutView.tsx index 3efe8d26e..f92f8e3c0 100644 --- a/ts/components/AboutView.tsx +++ b/ts/components/AboutView.tsx @@ -54,8 +54,8 @@ export const AboutView = () => { } const versionInfo = `v${window.getVersion()}`; - const commitInfo = `Commit: ${window.getCommitHash()}` || ''; - const osInfo = `Operating System: ${window.getOSRelease()}`; + const systemInfo = `${window.i18n('systemInformationDesktop', [window.getOSRelease()])}`; + const commitInfo = `${window.i18n('commitHashDesktop', [window.getCommitHash() || window.i18n('unknown')])}`; useEffect(() => { if (window.theme) { @@ -92,12 +92,16 @@ export const AboutView = () => { text={versionInfo} buttonType={SessionButtonType.Simple} /> + - {environmentStates.length ? ( { export function saveLogToDesktop() { const versionInfo = `v${window.getVersion()}`; - const operatingSystemInfo = `Operating System: ${window.getOSRelease()}`; - const commitHashInfo = window.getCommitHash() ? `Commit: ${window.getCommitHash()}` : ''; + const systemInfo = `System Information: ${window.getOSRelease()}`; + const commitInfo = `Commit Hash: ${window.getCommitHash()}` || 'Unknown'; const debugLogWithSystemInfo = ` ****************************************************************************** # Application Info ${versionInfo} -${operatingSystemInfo} -${commitHashInfo} +${systemInfo} +${commitInfo} ******************************************************************************`; window.saveLog(debugLogWithSystemInfo); }