summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authoryusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 11:12:20 +0000
committeryusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 11:12:20 +0000
commitd906c4ea08c5cedbf12fc6ec2befa233a6cea32e (patch)
tree165423da920fb7eddfa8598eba3d1074156de1c8 /chrome
parent4e074bae766e9e560da4227468689508b9cd96eb (diff)
downloadchromium_src-d906c4ea08c5cedbf12fc6ec2befa233a6cea32e.zip
chromium_src-d906c4ea08c5cedbf12fc6ec2befa233a6cea32e.tar.gz
chromium_src-d906c4ea08c5cedbf12fc6ec2befa233a6cea32e.tar.bz2
Key names for ibus-gconf (and ibus-memconf) were wrong.
I was using those for Pytyhon version of ibus-pinyin. C++ version uses CamelCase strings. BUG=chromium-os:3266 TEST=see the bug Review URL: http://codereview.chromium.org/2094011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/chromeos/language_preferences.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/chrome/browser/chromeos/language_preferences.h b/chrome/browser/chromeos/language_preferences.h
index ed7af17..b5d7793 100644
--- a/chrome/browser/chromeos/language_preferences.h
+++ b/chrome/browser/chromeos/language_preferences.h
@@ -64,35 +64,36 @@ const struct {
bool default_value;
int message_id;
} kPinyinBooleanPrefs[] = {
- { prefs::kLanguagePinyinCorrectPinyin, "correct_pinyin", true,
+ { prefs::kLanguagePinyinCorrectPinyin, "CorrectPinyin", true,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_CORRECT_PINYIN },
- { prefs::kLanguagePinyinFuzzyPinyin, "fuzzy_pinyin", false,
+ { prefs::kLanguagePinyinFuzzyPinyin, "FuzzyPinyin", false,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_FUZZY_PINYIN },
- { prefs::kLanguagePinyinShiftSelectCandidate, "shift_select_candidate",
+ { prefs::kLanguagePinyinShiftSelectCandidate, "ShiftSelectCandidate",
false, IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_SHIFT_SELECT_PINYIN },
- { prefs::kLanguagePinyinMinusEqualPage, "minus_equal_page", true,
+ { prefs::kLanguagePinyinMinusEqualPage, "MinusEqualPage", true,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_MINUS_EQUAL_PAGE },
- { prefs::kLanguagePinyinCommaPeriodPage, "comma_period_page", true,
+ { prefs::kLanguagePinyinCommaPeriodPage, "CommaPeriodPage", true,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_COMMA_PERIOD_PAGE },
- { prefs::kLanguagePinyinAutoCommit, "auto_commit", false,
+ { prefs::kLanguagePinyinAutoCommit, "AutoCommit", false,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_AUTO_COMMIT },
- { prefs::kLanguagePinyinDoublePinyin, "double_pinyin", false,
+ { prefs::kLanguagePinyinDoublePinyin, "DoublePinyin", false,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_DOUBLE_PINYIN },
- { prefs::kLanguagePinyinInitChinese, "init_chinese", true,
+ { prefs::kLanguagePinyinInitChinese, "InitChinese", true,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_INIT_CHINESE },
- { prefs::kLanguagePinyinInitFull, "init_full", false,
+ { prefs::kLanguagePinyinInitFull, "InitFull", false,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_INIT_FULL },
- { prefs::kLanguagePinyinInitFullPunct, "init_full_punct", true,
+ { prefs::kLanguagePinyinInitFullPunct, "InitFullPunct", true,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_INIT_FULL_PUNCT },
- { prefs::kLanguagePinyinInitSimplifiedChinese, "init_simplified_chinese",
+ { prefs::kLanguagePinyinInitSimplifiedChinese, "InitSimplifiedChinese",
true,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_INIT_SIMPLIFIED_CHINESE },
- { prefs::kLanguagePinyinTradCandidate, "trad_candidate", false,
+ { prefs::kLanguagePinyinTradCandidate, "TradCandidate", false,
IDS_OPTIONS_SETTINGS_LANGUAGES_PINYIN_SETTING_TRAD_CANDIDATE },
// TODO(yusukes): Support PINYIN_{INCOMPLETE,CORRECT,FUZZY}_... prefs (32
// additional boolean prefs.)
};
const size_t kNumPinyinBooleanPrefs = ARRAYSIZE_UNSAFE(kPinyinBooleanPrefs);
+// TODO(yusukes): Support HalfWidthPuncts and IncompletePinyin prefs if needed.
const struct {
const wchar_t* pref_name;
@@ -100,9 +101,9 @@ const struct {
int default_value;
// TODO(yusukes): Add message_id if needed.
} kPinyinIntegerPrefs[] = {
- { prefs::kLanguagePinyinDoublePinyinSchema, "double_pinyin_schema", 0 },
+ { prefs::kLanguagePinyinDoublePinyinSchema, "DoublePinyinSchema", 0 },
// TODO(yusukes): the type of lookup_table_page_size on ibus should be uint.
- { prefs::kLanguagePinyinLookupTablePageSize, "lookup_table_page_size", 5 },
+ { prefs::kLanguagePinyinLookupTablePageSize, "LookupTablePageSize", 5 },
};
const size_t kNumPinyinIntegerPrefs = ARRAYSIZE_UNSAFE(kPinyinIntegerPrefs);