Changeset 238406 in webkit
- Timestamp:
- Nov 20, 2018 2:09:23 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238405 r238406 1 2018-11-20 Christopher Reid <chris.reid@sony.com> 2 3 Remove the need for LocalizedStringsWPE.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=191854 5 6 Reviewed by Michael Catanzaro. 7 8 No change in behavior. 9 10 Consolidate "Search the Web" as the default search context menu text on non-COCOA ports. 11 12 GTK, WPE, and non-CF WIN all had the same default localizedString function 13 of String::fromUTF8. Move that to LocalizedString.cpp as the default implementation 14 for all ports not using CF. 15 16 * en.lproj/Localizable.strings: 17 * platform/LocalizedStrings.cpp: 18 * platform/gtk/LocalizedStringsGtk.cpp: 19 * platform/win/LocalizedStringsWin.cpp: 20 * platform/wpe/LocalizedStringsWPE.cpp: Removed. 21 1 22 2018-11-20 Zan Dobersek <zdobersek@igalia.com> 2 23 -
trunk/Source/WebCore/SourcesWPE.txt
r238336 r238406 72 72 platform/unix/LoggingUnix.cpp 73 73 74 platform/wpe/LocalizedStringsWPE.cpp75 74 platform/wpe/PlatformScreenWPE.cpp 76 75 platform/wpe/RenderThemeWPE.cpp -
trunk/Source/WebCore/en.lproj/Localizable.strings
r238342 r238406 599 599 "Search with %@" = "Search with %@"; 600 600 601 /* Search with Googlecontext menu item */602 "Search with Google" = "Search with Google";601 /* Search the Web context menu item */ 602 "Search the Web" = "Search the Web"; 603 603 604 604 /* Validation message for required file inputs that have no value */ -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r238342 r238406 73 73 } 74 74 75 #if !USE(CF) 76 String localizedString(const char* key) 77 { 78 return String::fromUTF8(key, strlen(key)); 79 } 80 #endif 81 75 82 #if ENABLE(CONTEXT_MENUS) 76 83 … … 406 413 return WEB_UI_STRING_WITH_MNEMONIC("Inspect Element", "Inspect _Element", "Inspect Element context menu item"); 407 414 } 415 416 #if !PLATFORM(COCOA) 417 String contextMenuItemTagSearchWeb() 418 { 419 return WEB_UI_STRING_WITH_MNEMONIC("Search the Web", "_Search the Web", "Search the Web context menu item"); 420 } 421 #endif 408 422 409 423 #endif // ENABLE(CONTEXT_MENUS) … … 1084 1098 #endif 1085 1099 1100 #if USE(SOUP) 1101 String unacceptableTLSCertificate() 1102 { 1103 return WEB_UI_STRING("Unacceptable TLS certificate", "Unacceptable TLS certificate error"); 1104 } 1105 #endif 1106 1086 1107 } // namespace WebCore -
trunk/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
r214244 r238406 109 109 } 110 110 111 String contextMenuItemTagSearchWeb()112 {113 return String::fromUTF8(_("_Search the Web"));114 }115 116 111 String contextMenuItemTagUnicodeInsertLRMMark() 117 112 { … … 177 172 } 178 173 179 String unacceptableTLSCertificate()180 {181 return String::fromUTF8(_("Unacceptable TLS certificate"));182 }183 184 String localizedString(const char* key)185 {186 return String::fromUTF8(key, strlen(key));187 }188 189 174 } // namespace WebCore -
trunk/Source/WebCore/platform/win/LocalizedStringsWin.cpp
r214244 r238406 43 43 namespace WebCore { 44 44 45 #if USE(CF) 45 46 String localizedString(const char* key) 46 47 { 47 48 ASSERT(isMainThread()); 48 49 49 #if USE(CF)50 50 static CFStringRef notFound = CFSTR("localized string not found"); 51 51 … … 55 55 56 56 return result.get(); 57 #else58 // FIXME: Implement localizedString() for !USE(CF).59 return String::fromUTF8(key, strlen(key));60 #endif61 }62 63 #if ENABLE(CONTEXT_MENUS)64 String contextMenuItemTagSearchWeb()65 {66 return WEB_UI_STRING("Search with Google", "Search with Google context menu item");67 57 } 68 58 #endif
Note: See TracChangeset
for help on using the changeset viewer.