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

Side by Side Diff: chrome/browser/chromeos/dom_ui/language_options_handler.cc

Issue 2958003: First cut at adding the Languages and Input options sub page. (Closed)
Patch Set: make it a comment Created 10 years, 5 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/dom_ui/language_options_handler.h"
6
7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "base/values.h"
10 #include "grit/chromium_strings.h"
11 #include "grit/generated_resources.h"
12
13 LanguageOptionsHandler::LanguageOptionsHandler() {
14 }
15
16 LanguageOptionsHandler::~LanguageOptionsHandler() {
17 }
18
19 void LanguageOptionsHandler::GetLocalizedValues(
20 DictionaryValue* localized_strings) {
21 DCHECK(localized_strings);
22 localized_strings->SetString(L"languagePage",
23 l10n_util::GetString(IDS_OPTIONS_SETTINGS_LANGUAGES_DIALOG_TITLE));
24 localized_strings->SetString(L"add_language",
25 l10n_util::GetString(
26 IDS_OPTIONS_SETTINGS_LANGUAGES_ADD_LANGUAGE_COMBOBOX));
27 localized_strings->SetString(L"configure",
28 l10n_util::GetString(IDS_OPTIONS_SETTINGS_LANGUAGES_CONFIGURE));
29 localized_strings->SetString(L"input_method",
30 l10n_util::GetString(IDS_OPTIONS_SETTINGS_LANGUAGES_INPUT_METHOD));
31 localized_strings->SetString(L"languages",
32 l10n_util::GetString(IDS_OPTIONS_SETTINGS_LANGUAGES_LANGUAGES));
33 localized_strings->SetString(L"remove_button",
34 l10n_util::GetString(IDS_OPTIONS_SETTINGS_LANGUAGES_REMOVE_BUTTON));
35 localized_strings->SetString(L"others",
36 l10n_util::GetString(IDS_OPTIONS_SETTINGS_LANGUAGES_OTHERS));
37 localized_strings->SetString(L"is_displayed_in_this_language",
38 l10n_util::GetStringF(
39 IDS_OPTIONS_SETTINGS_LANGUAGES_IS_DISPLAYED_IN_THIS_LANGUAGE,
40 l10n_util::GetString(IDS_PRODUCT_OS_NAME)));
41 localized_strings->SetString(L"display_in_this_language",
42 l10n_util::GetStringF(
43 IDS_OPTIONS_SETTINGS_LANGUAGES_DISPLAY_IN_THIS_LANGUAGE,
44 l10n_util::GetString(IDS_PRODUCT_OS_NAME)));
45 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dom_ui/language_options_handler.h ('k') | chrome/browser/dom_ui/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698