Skip to content

Commit

Permalink
Merge pull request #26745 from brave/update_vpn_product_title
Browse files Browse the repository at this point in the history
Update VPN product title at vpn panel
  • Loading branch information
simonhong committed Nov 26, 2024
1 parent d24a54b commit 613c1dd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace brave_vpn {
void AddLocalizedStrings(content::WebUIDataSource* html_source) {
static constexpr webui::LocalizedString kLocalizedStrings[] = {
{"braveVpn", IDS_BRAVE_VPN},
{"braveVpnMainPanelTitle", IDS_BRAVE_VPN_MAIN_PANEL_TITLE},
{"braveVpnConnect", IDS_BRAVE_VPN_CONNECT},
{"braveVpnConnecting", IDS_BRAVE_VPN_CONNECTING},
{"braveVpnConnected", IDS_BRAVE_VPN_CONNECTED},
Expand All @@ -33,7 +32,6 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source) {
{"braveVpnSettingsPanelHeader", IDS_BRAVE_VPN_SETTINGS_PANEL_HEADER},
{"braveVpnSettingsPanelBackButtonAriaLabel",
IDS_BRAVE_VPN_SETTINGS_PANEL_BACK_BUTTON_ARIA_LABEL},
{"braveVpnErrorPanelHeader", IDS_BRAVE_VPN_ERROR_PANEL_HEADER},
{"braveVpnErrorPanelBackButtonAriaLabel",
IDS_BRAVE_VPN_PANEL_GO_TO_MAIN_BUTTON_ARIA_LABEL},
{"braveVpnStatus", IDS_BRAVE_VPN_STATUS},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function ErrorPanel(props: Props) {
<S.Box>
<S.PanelContent>
<PanelHeader
title={getLocale('braveVpnErrorPanelHeader')}
title={getLocale('braveVpn')}
buttonAriaLabel={getLocale('braveVpnErrorPanelBackButtonAriaLabel')}
onClick={handleShowMainView}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function LoadingPanel() {
tooltip={getLocale('braveVpnSettingsTooltip')}
onClick={handleSettingsButtonClick}
/>
<PanelHeader title={getLocale('braveVpnMainPanelTitle')} />
<PanelHeader title={getLocale('braveVpn')} />
<S.Status>
<S.LoadingIcon />
<S.PanelDesc>{getLocale('braveVpnLoading')}</S.PanelDesc>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function MainPanel() {
tooltip={getLocale('braveVpnSettingsTooltip')}
onClick={handleSettingsButtonClick}
/>
<PanelHeader title={getLocale('braveVpnMainPanelTitle')} />
<PanelHeader title={getLocale('braveVpn')} />
<Toggle disabled={expired} />
{connectionStatus === ConnectionState.CONNECT_NOT_ALLOWED && (
<S.StyledAlert
Expand Down
4 changes: 1 addition & 3 deletions components/brave_vpn/resources/panel/stories/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import { provideStrings } from '../../../../../.storybook/locale'

provideStrings({
braveVpn: 'Brave Firewall + VPN',
braveVpnMainPanelTitle: 'Firewall + VPN',
braveVpn: 'Brave VPN',
braveVpnConnect: 'Connect',
braveVpnConnecting: 'Connecting',
braveVpnConnected: 'Connected',
Expand All @@ -30,7 +29,6 @@ provideStrings({
braveVpnReconnectAutomatically: 'Reconnect automatically',
braveVpnContactSupport: 'Contact technical support',
braveVpnAbout: 'About',
braveVpnErrorPanelHeader: 'Firewall + VPN',
braveVpnErrorPanelBackButtonAriaLabel: 'Go to main',
braveVpnFeature1: 'Extra privacy & security online',
braveVpnFeature2: 'Hide your IP & change your location',
Expand Down
14 changes: 3 additions & 11 deletions components/resources/brave_vpn_strings.grdp
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<grit-part>
<message name="IDS_BRAVE_VPN" translateable="false" desc="Title for VPN the product">
Brave Firewall + VPN
</message>

<message name="IDS_BRAVE_VPN_MAIN_PANEL_TITLE" translateable="false" desc="Title for VPN the product">
Firewall + VPN
Brave VPN
</message>

<message name="IDS_BRAVE_VPN_CONNECTED_TOOLTIP" desc="Status tooltip label when VPN has connected to a region">
Brave Firewall + VPN: Connected
Brave VPN: Connected
</message>

<message name="IDS_BRAVE_VPN_DISCONNECTED_TOOLTIP" desc="Status tooltip label when VPN has disconnected">
Brave Firewall + VPN: Disconnected
Brave VPN: Disconnected
</message>

<message name="IDS_BRAVE_VPN_PANEL_NAME" desc="The name of VPN panel">
Expand Down Expand Up @@ -78,10 +74,6 @@
Close settings
</message>

<message name="IDS_BRAVE_VPN_ERROR_PANEL_HEADER" desc="Text shown in header for error panel">
Firewall + VPN
</message>

<message name="IDS_BRAVE_VPN_PANEL_GO_TO_MAIN_BUTTON_ARIA_LABEL" desc="Text for go to main button in panels">
Go to main
</message>
Expand Down

0 comments on commit 613c1dd

Please sign in to comment.