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

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

Issue 2951483003: [Night Light] CL9: Add localization for time's AM and PM (Closed)
Patch Set: Created 3 years, 6 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 IDS_SETTINGS_STYLUS_NOTE_TAKING_APP_WAITING_FOR_ANDROID}}; 647 IDS_SETTINGS_STYLUS_NOTE_TAKING_APP_WAITING_FOR_ANDROID}};
648 AddLocalizedStringsBulk(html_source, stylus_strings, 648 AddLocalizedStringsBulk(html_source, stylus_strings,
649 arraysize(stylus_strings)); 649 arraysize(stylus_strings));
650 650
651 LocalizedString display_strings[] = { 651 LocalizedString display_strings[] = {
652 {"displayTitle", IDS_SETTINGS_DISPLAY_TITLE}, 652 {"displayTitle", IDS_SETTINGS_DISPLAY_TITLE},
653 {"displayArrangementText", IDS_SETTINGS_DISPLAY_ARRANGEMENT_TEXT}, 653 {"displayArrangementText", IDS_SETTINGS_DISPLAY_ARRANGEMENT_TEXT},
654 {"displayArrangementTitle", IDS_SETTINGS_DISPLAY_ARRANGEMENT_TITLE}, 654 {"displayArrangementTitle", IDS_SETTINGS_DISPLAY_ARRANGEMENT_TITLE},
655 {"displayMirror", IDS_SETTINGS_DISPLAY_MIRROR}, 655 {"displayMirror", IDS_SETTINGS_DISPLAY_MIRROR},
656 {"displayNightLightLabel", IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_LABEL}, 656 {"displayNightLightLabel", IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_LABEL},
657 {"displayNightLightLegend6Am", IDS_SETTINGS_DISPLAY_NIGHT_LEGEND_6AM},
658 {"displayNightLightLegend6Pm", IDS_SETTINGS_DISPLAY_NIGHT_LEGEND_6PM},
659 {"displayNightLightLegend12Am", IDS_SETTINGS_DISPLAY_NIGHT_LEGEND_12AM},
660 {"displayNightLightLegend12Pm", IDS_SETTINGS_DISPLAY_NIGHT_LEGEND_12PM},
657 {"displayNightLightScheduleCustom", 661 {"displayNightLightScheduleCustom",
658 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_CUSTOM}, 662 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_CUSTOM},
659 {"displayNightLightScheduleLabel", 663 {"displayNightLightScheduleLabel",
660 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_LABEL}, 664 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_LABEL},
661 {"displayNightLightScheduleNever", 665 {"displayNightLightScheduleNever",
662 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_NEVER}, 666 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_NEVER},
663 {"displayNightLightScheduleSunsetToSunRise", 667 {"displayNightLightScheduleSunsetToSunRise",
664 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_SUNSET_TO_SUNRISE}, 668 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_SCHEDULE_SUNSET_TO_SUNRISE},
665 {"displayNightLightStartTime", 669 {"displayNightLightStartTime",
666 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_START_TIME}, 670 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_START_TIME},
667 {"displayNightLightStopTime", IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_STOP_TIME}, 671 {"displayNightLightStopTime", IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_STOP_TIME},
668 {"displayNightLightText", IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEXT}, 672 {"displayNightLightText", IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEXT},
669 {"displayNightLightTemperatureLabel", 673 {"displayNightLightTemperatureLabel",
670 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEMPERATURE_LABEL}, 674 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEMPERATURE_LABEL},
671 {"displayNightLightTempSliderMaxLabel", 675 {"displayNightLightTempSliderMaxLabel",
672 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEMP_SLIDER_MAX_LABEL}, 676 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEMP_SLIDER_MAX_LABEL},
673 {"displayNightLightTempSliderMinLabel", 677 {"displayNightLightTempSliderMinLabel",
674 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEMP_SLIDER_MIN_LABEL}, 678 IDS_SETTINGS_DISPLAY_NIGHT_LIGHT_TEMP_SLIDER_MIN_LABEL},
679 {"displayNightLightTimeAm", IDS_SETTINGS_DISPLAY_NIGHT_TIME_AM},
680 {"displayNightLightTimePm", IDS_SETTINGS_DISPLAY_NIGHT_TIME_PM},
675 {"displayUnfiedDesktop", IDS_SETTINGS_DISPLAY_UNIFIED_DESKTOP}, 681 {"displayUnfiedDesktop", IDS_SETTINGS_DISPLAY_UNIFIED_DESKTOP},
676 {"displayResolutionTitle", IDS_SETTINGS_DISPLAY_RESOLUTION_TITLE}, 682 {"displayResolutionTitle", IDS_SETTINGS_DISPLAY_RESOLUTION_TITLE},
677 {"displayResolutionText", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT}, 683 {"displayResolutionText", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT},
678 {"displayResolutionTextBest", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_BEST}, 684 {"displayResolutionTextBest", IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_BEST},
679 {"displayResolutionTextNative", 685 {"displayResolutionTextNative",
680 IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_NATIVE}, 686 IDS_SETTINGS_DISPLAY_RESOLUTION_TEXT_NATIVE},
681 {"displayScreenTitle", IDS_SETTINGS_DISPLAY_SCREEN}, 687 {"displayScreenTitle", IDS_SETTINGS_DISPLAY_SCREEN},
682 {"displayScreenExtended", IDS_SETTINGS_DISPLAY_SCREEN_EXTENDED}, 688 {"displayScreenExtended", IDS_SETTINGS_DISPLAY_SCREEN_EXTENDED},
683 {"displayScreenPrimary", IDS_SETTINGS_DISPLAY_SCREEN_PRIMARY}, 689 {"displayScreenPrimary", IDS_SETTINGS_DISPLAY_SCREEN_PRIMARY},
684 {"displayOrientation", IDS_SETTINGS_DISPLAY_ORIENTATION}, 690 {"displayOrientation", IDS_SETTINGS_DISPLAY_ORIENTATION},
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
2160 2166
2161 #if defined(OS_CHROMEOS) 2167 #if defined(OS_CHROMEOS)
2162 chromeos::network_element::AddLocalizedStrings(html_source); 2168 chromeos::network_element::AddLocalizedStrings(html_source);
2163 #endif 2169 #endif
2164 policy_indicator::AddLocalizedStrings(html_source); 2170 policy_indicator::AddLocalizedStrings(html_source);
2165 2171
2166 html_source->SetJsonPath(kLocalizedStringsFile); 2172 html_source->SetJsonPath(kLocalizedStringsFile);
2167 } 2173 }
2168 2174
2169 } // namespace settings 2175 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698