Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2359353002: MD Settings: Polish for Languages main page (Closed)
Patch Set: dbeam feedback Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 #endif 762 #endif
763 763
764 void AddLanguagesStrings(content::WebUIDataSource* html_source) { 764 void AddLanguagesStrings(content::WebUIDataSource* html_source) {
765 LocalizedString localized_strings[] = { 765 LocalizedString localized_strings[] = {
766 {"languagesPageTitle", IDS_SETTINGS_LANGUAGES_PAGE_TITLE}, 766 {"languagesPageTitle", IDS_SETTINGS_LANGUAGES_PAGE_TITLE},
767 {"languagesListTitle", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_TITLE}, 767 {"languagesListTitle", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_TITLE},
768 {"languagesExpandA11yLabel", 768 {"languagesExpandA11yLabel",
769 IDS_SETTINGS_LANGUAGES_EXPAND_ACCESSIBILITY_LABEL}, 769 IDS_SETTINGS_LANGUAGES_EXPAND_ACCESSIBILITY_LABEL},
770 {"orderLanguagesInstructions", 770 {"orderLanguagesInstructions",
771 IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_ORDERING_INSTRUCTIONS}, 771 IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_ORDERING_INSTRUCTIONS},
772 {"moveToTop", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_MOVE_TO_TOP},
772 {"moveUp", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_MOVE_UP}, 773 {"moveUp", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_MOVE_UP},
773 {"moveDown", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_MOVE_DOWN}, 774 {"moveDown", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_MOVE_DOWN},
774 {"removeLanguage", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_REMOVE}, 775 {"removeLanguage", IDS_SETTINGS_LANGUAGES_LANGUAGES_LIST_REMOVE},
775 {"addLanguages", IDS_SETTINGS_LANGUAGES_LANGUAGES_ADD}, 776 {"addLanguages", IDS_SETTINGS_LANGUAGES_LANGUAGES_ADD},
776 #if defined(OS_CHROMEOS) 777 #if defined(OS_CHROMEOS)
777 {"inputMethodsListTitle", 778 {"inputMethodsListTitle",
778 IDS_SETTINGS_LANGUAGES_INPUT_METHODS_LIST_TITLE}, 779 IDS_SETTINGS_LANGUAGES_INPUT_METHODS_LIST_TITLE},
780 {"inputMethodEnabled", IDS_SETTINGS_LANGUAGES_INPUT_METHOD_ENABLED},
779 {"inputMethodsExpandA11yLabel", 781 {"inputMethodsExpandA11yLabel",
780 IDS_SETTINGS_LANGUAGES_INPUT_METHODS_EXPAND_ACCESSIBILITY_LABEL}, 782 IDS_SETTINGS_LANGUAGES_INPUT_METHODS_EXPAND_ACCESSIBILITY_LABEL},
781 {"manageInputMethods", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_MANAGE}, 783 {"manageInputMethods", IDS_SETTINGS_LANGUAGES_INPUT_METHODS_MANAGE},
782 {"manageInputMethodsPageTitle", 784 {"manageInputMethodsPageTitle",
783 IDS_SETTINGS_LANGUAGES_MANAGE_INPUT_METHODS_TITLE}, 785 IDS_SETTINGS_LANGUAGES_MANAGE_INPUT_METHODS_TITLE},
784 #endif 786 #endif
785 {"addLanguagesDialogTitle", 787 {"addLanguagesDialogTitle",
786 IDS_SETTINGS_LANGUAGES_MANAGE_LANGUAGES_TITLE}, 788 IDS_SETTINGS_LANGUAGES_MANAGE_LANGUAGES_TITLE},
787 {"allLanguages", IDS_SETTINGS_LANGUAGES_ALL_LANGUAGES}, 789 {"allLanguages", IDS_SETTINGS_LANGUAGES_ALL_LANGUAGES},
788 {"enabledLanguages", IDS_SETTINGS_LANGUAGES_ENABLED_LANGUAGES}, 790 {"enabledLanguages", IDS_SETTINGS_LANGUAGES_ENABLED_LANGUAGES},
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 #endif 1635 #endif
1634 AddUsersStrings(html_source); 1636 AddUsersStrings(html_source);
1635 AddWebContentStrings(html_source); 1637 AddWebContentStrings(html_source);
1636 1638
1637 policy_indicator::AddLocalizedStrings(html_source); 1639 policy_indicator::AddLocalizedStrings(html_source);
1638 1640
1639 html_source->SetJsonPath(kLocalizedStringsFile); 1641 html_source->SetJsonPath(kLocalizedStringsFile);
1640 } 1642 }
1641 1643
1642 } // namespace settings 1644 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698