From 60afa7000f14f8f8ca890236f636d45a2b59b61e Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 16 Jan 2014 04:32:32 +0900 Subject: Fix a bug specific to German capitalization. Bug: 9663105 Change-Id: Ib68ee4edb135e96dfca229c1ccce308e7e638bdd --- .../android/inputmethod/latin/settings/SpacingAndPunctuations.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java') diff --git a/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java b/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java index dbe30e260..29bd3e7b3 100644 --- a/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java +++ b/java/src/com/android/inputmethod/latin/settings/SpacingAndPunctuations.java @@ -41,6 +41,7 @@ public final class SpacingAndPunctuations { public final String mSentenceSeparatorAndSpace; public final boolean mCurrentLanguageHasSpaces; public final boolean mUsesAmericanTypography; + public final boolean mUsesGermanRules; public SpacingAndPunctuations(final Resources res) { mSymbolsPrecededBySpace = @@ -62,8 +63,9 @@ public final class SpacingAndPunctuations { mCurrentLanguageHasSpaces = res.getBoolean(R.bool.current_language_has_spaces); final Locale locale = res.getConfiguration().locale; // Heuristic: we use American Typography rules because it's the most common rules for all - // English variants. + // English variants. German rules (not "German typography") also have small gotchas. mUsesAmericanTypography = Locale.ENGLISH.getLanguage().equals(locale.getLanguage()); + mUsesGermanRules = Locale.GERMAN.getLanguage().equals(locale.getLanguage()); } // Helper functions to create member values. -- cgit v1.2.3-83-g751a