From b1b0e93d5edfd82857f13c5f7dbd1a3e6203f9c6 Mon Sep 17 00:00:00 2001 From: anonym Date: Mon, 30 Nov 2020 21:33:52 +0100 Subject: [PATCH 1/2] Update i18n for Appearance User Settings The variable has to be added to the i18n files as well (I don't know how to do that) --- .../views/settings/tabs/user/AppearanceUserSettingsTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx b/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx index 9f9acd8e3c..209f245b11 100644 --- a/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx +++ b/src/components/views/settings/tabs/user/AppearanceUserSettingsTab.tsx @@ -394,7 +394,7 @@ export default class AppearanceUserSettingsTab extends React.Component this.setState({showAdvanced: !this.state.showAdvanced})} > - {this.state.showAdvanced ? "Hide advanced" : "Show advanced"} + {this.state.showAdvanced ? _t("Hide advanced") : _t("Show advanced")} ; let advanced: React.ReactNode; From 9b6f93da5f79269cbe19c86d1cfb6ea7c1c0a50c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 30 Nov 2020 13:42:29 -0700 Subject: [PATCH 2/2] Update i18n --- src/i18n/strings/en_EN.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 8746df20cc..b33cbffb8f 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1136,6 +1136,8 @@ "Message layout": "Message layout", "Compact": "Compact", "Modern": "Modern", + "Hide advanced": "Hide advanced", + "Show advanced": "Show advanced", "Set the name of a font installed on your system & %(brand)s will attempt to use it.": "Set the name of a font installed on your system & %(brand)s will attempt to use it.", "Customise your appearance": "Customise your appearance", "Appearance Settings only affect this %(brand)s session.": "Appearance Settings only affect this %(brand)s session.", @@ -1989,8 +1991,6 @@ "Name": "Name", "Topic (optional)": "Topic (optional)", "Make this room public": "Make this room public", - "Hide advanced": "Hide advanced", - "Show advanced": "Show advanced", "Block anyone not part of %(serverName)s from ever joining this room.": "Block anyone not part of %(serverName)s from ever joining this room.", "Create Room": "Create Room", "Sign out": "Sign out",