WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
191854
Remove the need for LocalizedStringsWPE.cpp
https://bugs.webkit.org/show_bug.cgi?id=191854
Summary
Remove the need for LocalizedStringsWPE.cpp
Christopher Reid
Reported
2018-11-20 00:02:49 PST
These functions can be shared between ports.
Attachments
patch
(7.01 KB, patch)
2018-11-20 00:52 PST
,
Christopher Reid
no flags
Details
Formatted Diff
Diff
patch
(7.45 KB, patch)
2018-11-20 00:56 PST
,
Christopher Reid
no flags
Details
Formatted Diff
Diff
rebased patch
(7.45 KB, patch)
2018-11-20 01:18 PST
,
Christopher Reid
no flags
Details
Formatted Diff
Diff
patch
(7.44 KB, patch)
2018-11-20 01:59 PST
,
Christopher Reid
no flags
Details
Formatted Diff
Diff
Patch for landing
(7.88 KB, patch)
2018-11-20 13:42 PST
,
Christopher Reid
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Christopher Reid
Comment 1
2018-11-20 00:52:09 PST
Created
attachment 355319
[details]
patch
Christopher Reid
Comment 2
2018-11-20 00:56:03 PST
Created
attachment 355320
[details]
patch
Christopher Reid
Comment 3
2018-11-20 01:18:52 PST
Created
attachment 355324
[details]
rebased patch
Christopher Reid
Comment 4
2018-11-20 01:59:13 PST
Created
attachment 355326
[details]
patch
Christopher Reid
Comment 5
2018-11-20 02:01:53 PST
I wanted to check with Apple Win if there's any objection to replacing "Search with Google" to a more generic "Search the Web".
Don Olmstead
Comment 6
2018-11-20 10:23:24 PST
Comment on
attachment 355326
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=355326&action=review
I don't think it matters for AppleWin since its just used for embedding in apps.
> Source/WebCore/en.lproj/Localizable.strings:602 > -/* Search with Google context menu item */ > -"Search with Google" = "Search with Google"; > +/* Search the Web context menu item */ > +"Search the Web" = "Search the Web";
I have a feeling we might want to keep the original and add the new one. I'm not sure how this will affect XCode builds.
Christopher Reid
Comment 7
2018-11-20 11:16:23 PST
Comment on
attachment 355326
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=355326&action=review
> Source/WebCore/ChangeLog:13 > + of String::fromUTF8. Move that to LocalizedString.cpp as the default implement
Just noticed this typo, will change implement to implementation before landing
>> Source/WebCore/en.lproj/Localizable.strings:602 >> +"Search the Web" = "Search the Web"; > > I have a feeling we might want to keep the original and add the new one. I'm not sure how this will affect XCode builds.
That string seems to only be used in windows CF ports. COCOA is using the "Search with %@" string. I'm not certain about the NSPerformService(@"Search With Google", pasteboard); call in WebKitLegacy's WebView.mm but it looks like it's only used for invoking a context menu action and not for the context menu text so it doesn't seem to be doing localization. I'm not familiar enough with NSPerformService to confirm whether that's true or not. If it is the case, I don't see much value in keeping the original string around.
Don Olmstead
Comment 8
2018-11-20 12:09:32 PST
(In reply to Christopher Reid from
comment #7
)
> Comment on
attachment 355326
[details]
> patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=355326&action=review
> > > Source/WebCore/ChangeLog:13 > > + of String::fromUTF8. Move that to LocalizedString.cpp as the default implement > > Just noticed this typo, will change implement to implementation before > landing > > >> Source/WebCore/en.lproj/Localizable.strings:602 > >> +"Search the Web" = "Search the Web"; > > > > I have a feeling we might want to keep the original and add the new one. I'm not sure how this will affect XCode builds. > > That string seems to only be used in windows CF ports. COCOA is using the > "Search with %@" string. I'm not certain about the NSPerformService(@"Search > With Google", pasteboard); call in WebKitLegacy's WebView.mm but it looks > like it's only used for invoking a context menu action and not for the > context menu text so it doesn't seem to be doing localization. I'm not > familiar enough with NSPerformService to confirm whether that's true or not. > If it is the case, I don't see much value in keeping the original string > around.
Ok then I guess this is good to go after you fix your typo.
Christopher Reid
Comment 9
2018-11-20 13:42:47 PST
Created
attachment 355362
[details]
Patch for landing
WebKit Commit Bot
Comment 10
2018-11-20 14:09:30 PST
Comment on
attachment 355362
[details]
Patch for landing Clearing flags on attachment: 355362 Committed
r238406
: <
https://trac.webkit.org/changeset/238406
>
WebKit Commit Bot
Comment 11
2018-11-20 14:09:32 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12
2018-11-20 14:10:27 PST
<
rdar://problem/46190457
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug