Skip to content

Commit

Permalink
MD Settings: About: Fixes to channel switcher dialog
Browse files Browse the repository at this point in the history
BUG=666876
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2563143002
Cr-Commit-Position: refs/heads/master@{#438038}
  • Loading branch information
stevenjb authored and Commit bot committed Dec 13, 2016
1 parent 5749f7c commit fa49259
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
9 changes: 9 additions & 0 deletions chrome/app/settings_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@
<message name="IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_TITLE" desc="The title of the warning about switching to developer (unstable) channel.">
Warning: you are switching to developer channel
</message>
<message name="IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_STABLE" desc="The stable option in the channel select.">
Stable
</message>
<message name="IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_BETA" desc="The beta option in the channel select.">
Beta
</message>
<message name="IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_DEV" desc="The development option in the channel select.">
Developer - unstable
</message>
</if>
<if expr="not chromeos">
<message name="IDS_SETTINGS_ABOUT_PAGE_RELAUNCH" desc="The label for the relaunch button that relaunches the browser once update is complete">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

<dom-module id="settings-channel-switcher-dialog">
<template>
<style include="settings-shared"></style>
<style include="settings-shared">
dialog {
width: 600px;
}
</style>
<dialog is="cr-dialog" id="dialog">
<div class="title">$i18n{aboutChangeChannel}</div>
<div class="body">
Expand All @@ -19,13 +23,13 @@
<paper-radio-group
on-paper-radio-group-changed="onChannelSelectionChanged_">
<paper-radio-button name="[[browserChannelEnum_.STABLE]]">
$i18n{aboutChannelStable}
$i18n{aboutChannelDialogStable}
</paper-radio-button>
<paper-radio-button name="[[browserChannelEnum_.BETA]]">
$i18n{aboutChannelBeta}
$i18n{aboutChannelDialogBeta}
</paper-radio-button>
<paper-radio-button name="[[browserChannelEnum_.DEV]]">
$i18n{aboutChannelDev}
$i18n{aboutChannelDialogDev}
</paper-radio-button>
</paper-radio-group>
<div id="warning" hidden="[[!shouldShowWarning_(warning_)]]">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ void AddAboutStrings(content::WebUIDataSource* html_source) {
IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_MESSAGE},
{"aboutUnstableWarningTitle",
IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_TITLE},
{"aboutChannelDialogBeta", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_BETA},
{"aboutChannelDialogDev", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_DEV},
{"aboutChannelDialogStable", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_STABLE},
#endif
};
AddLocalizedStringsBulk(html_source, localized_strings,
Expand Down

0 comments on commit fa49259

Please sign in to comment.