Skip to content

Commit

Permalink
Clean up AI Chat settings browser data deleter strings
Browse files Browse the repository at this point in the history
  • Loading branch information
petemill committed Oct 22, 2024
1 parent 5c43459 commit 7d10150
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions app/brave_settings_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
Position
</message>
<message name="IDS_SETTINGS_APPEARANCE_SETTINGS_BRAVE_TAB_VERTICAL_TAB_EXPANDED_STATE_PER_WINDOW" desc="Title for checkbox to set expanded state per window">
Expand vertical tabs independently per window
Expand vertical tabs independently per window
</message>
<message name="IDS_SETTINGS_APPEARANCE_SETTINGS_BRAVE_TAB_VERTICAL_TAB_SHOW_SCROLLBAR" desc="Title for checkbox to show scrollbar on vertical tabs">
Show scrollbar
Expand Down Expand Up @@ -1330,11 +1330,11 @@ Leo. This action can't be undone.
<message name="IDS_SETTINGS_LEO_ASSISTANT_AUTOCOMPLETE_LINK" desc="A label for a link to settings page to adjust autocomplete suggestion based on Leo">
Adjust autocomplete suggestions
</message>
<message name="IDS_SETTINGS_LEO_ASSISTANT_CLEAR_HISTORY_DATA_LABEL" desc="The text for settings option">
Leo
<message name="IDS_SETTINGS_AI_CHAT_CLEAR_HISTORY_DATA_LABEL" desc="Label for checkbox to select AI assistant conversations for deletion when deleting browser data">
Leo AI
</message>
<message name="IDS_SETTINGS_LEO_ASSISTANT_CLEAR_HISTORY_DATA_SUBLABEL" desc="The text for settings option">
Data and chat history
<message name="IDS_SETTINGS_AI_CHAT_CLEAR_HISTORY_DATA_SUBLABEL" desc="Label description for checkbox to select AI assistant conversations for deletion when deleting browser data">
Chat history
</message>
<message name="IDS_SETTINGS_LEO_ASSISTANT_MODEL_SELECTION_LABEL" desc="Label for selecting default model">
Default model for new conversations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
</settings-checkbox>
<settings-checkbox id="leoResetOnExitCheckbox"
pref="{{prefs.browser.clear_data.brave_leo_on_exit}}"
label="$i18n{leoClearHistoryData}"
sub-label="$i18n{leoClearHistoryDataSubLabel}"
label="$i18n{aiChatClearHistoryData}"
sub-label="$i18n{aiChatClearHistoryDataSubLabel}"
hidden="[[!isLeoAssistantAndHistoryAllowed_]]"
no-set-pref>
</settings-checkbox>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Polymer({
},
},

isLeoAssistantAndHistoryAllowed_: {
isAIChatAndHistoryAllowed_: {
type: Boolean,
value: function() {
return loadTimeData.getBoolean('isLeoAssistantAllowed')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ RegisterPolymerTemplateModifications({
<settings-checkbox
id="leoResetCheckbox"
pref="{{prefs.browser.clear_data.brave_leo}}"
label="[[i18n('leoClearHistoryData')]]"
sub-label="[[i18n('leoClearHistoryDataSubLabel')]]"
label="[[i18n('aiChatClearHistoryData')]]"
sub-label="[[i18n('aiChatClearHistoryDataSubLabel')]]"
disabled="[[clearingInProgress_]]"
no-set-pref>
</settings-checkbox>`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,10 @@ void BraveAddCommonStrings(content::WebUIDataSource* html_source,
IDS_SETTINGS_LEO_ASSISTANT_RESET_AND_CLEAR_DATA_CONFIRMATION_LABEL},
{"braveLeoAssistantAutocompleteLink",
IDS_SETTINGS_LEO_ASSISTANT_AUTOCOMPLETE_LINK},
{"leoClearHistoryData",
IDS_SETTINGS_LEO_ASSISTANT_CLEAR_HISTORY_DATA_LABEL},
{"leoClearHistoryDataSubLabel",
IDS_SETTINGS_LEO_ASSISTANT_CLEAR_HISTORY_DATA_SUBLABEL},
{"aiChatClearHistoryData",
IDS_SETTINGS_AI_CHAT_CLEAR_HISTORY_DATA_LABEL},
{"aiChatClearHistoryDataSubLabel",
IDS_SETTINGS_AI_CHAT_CLEAR_HISTORY_DATA_SUBLABEL},
{"braveLeoPremiumLabelNonPremium",
IDS_CHAT_UI_MODEL_PREMIUM_LABEL_NON_PREMIUM},
{"braveLeoAssistantModelSelectionLabel",
Expand Down

0 comments on commit 7d10150

Please sign in to comment.