Changeset 53159 in webkit
- Timestamp:
- Jan 12, 2010 1:15:28 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53157 r53159 1 2010-01-12 Jungshik Shin <jshin@chromium.org> 2 3 Reviewed by Darin Adler 4 5 https://bugs.webkit.org/show_bug.cgi?id=31597 6 7 Make ICU's text breakiterator and string search use Chrome's UI 8 language instead of 'en-US' or the OS UI language. 9 10 As long as the webkit layout tests are run in en-US locale, there'd be 11 no visible change. 12 13 * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp: 14 (UILanguage): 15 (WebCore::currentSearchLocaleID): 16 (WebCore::currentTextBreakLocaleID): 17 1 18 2010-01-12 Beth Dakin <bdakin@apple.com> 2 19 -
trunk/WebCore/platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp
r45762 r53159 23 23 #include "TextBreakIteratorInternalICU.h" 24 24 25 #include "CString.h" 26 #include "Language.h" 27 #include "PlatformString.h" 28 #include <wtf/StdLibExtras.h> 29 25 30 namespace WebCore { 31 32 static const char* UILanguage() 33 { 34 // Chrome's UI language can be different from the OS UI language on Windows. 35 // We want to return Chrome's UI language here. 36 DEFINE_STATIC_LOCAL(CString, locale, (defaultLanguage().latin1())); 37 return locale.data(); 38 } 26 39 27 40 const char* currentSearchLocaleID() 28 41 { 29 // FIXME: Should use system locale. 30 return ""; 42 return UILanguage(); 31 43 } 32 44 33 45 const char* currentTextBreakLocaleID() 34 46 { 35 // FIXME: Should use system locale. 36 return "en_us"; 47 return UILanguage(); 37 48 } 38 49
Note: See TracChangeset
for help on using the changeset viewer.