Opened 12 years ago
Last modified 2 years ago
#8956 new bug
Webkit: context menu items do not translate
Reported by: | dsjonny | Owned by: | leavengood |
---|---|---|---|
Priority: | normal | Milestone: | R1.1 |
Component: | Kits/Web Kit | Version: | R1/Development |
Keywords: | Cc: | aldeck | |
Blocked By: | Blocking: | #14637, #18235 | |
Platform: | All |
Description
The WebPositive's context menu always shows in English. This is the same for all HTML elements.
Attachments (2)
Change History (15)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
I found the missing translations for the tab-bar's tooltips:
http://cgit.haiku-os.org/haiku/tree/src/apps/webpositive/tabview/TabContainerView.cpp?h=r1alpha4 line 472: fController->SetToolTip("Double-click or middle-click to open new tab."); http://cgit.haiku-os.org/haiku/tree/src/apps/webpositive/tabview/TabManager.cpp?h=r1alpha4 line: SetToolTip("New tab (Cmd-T)");
The page's context menu is in the webcore library, but I did not found that source.
comment:3 by , 12 years ago
You'll want to look at Source/WebCore/platform/haiku/ContextMenuItemHaiku.cpp. That seems to be where the actual menu items are added to the popup menu.
comment:4 by , 12 years ago
Thanks jessicah!
I found the strings in the "LocalizedStringsHaiku.cpp" file. And do I know this right we need only to add
#include "<Catalog.h>" #define B_TRANSLATION_CONTEXT "WebPositive Page Context Menu"
to this file, and replace all
return "...";
to
return B_TRANSLATE("...");
?
If this is right, than one more ticket solved :)
I attach this file with these modifications.
by , 12 years ago
Attachment: | LocalizedStringsHaiku.cpp added |
---|
comment:5 by , 12 years ago
Version: | R1/alpha3 → R1/Development |
---|
by , 12 years ago
Attachment: | 0001-Added-missing-localization-support-for-WebPositive-c.patch added |
---|
comment:6 by , 12 years ago
patch: | 0 → 1 |
---|
comment:7 by , 12 years ago
I have added a patch for the localization. Please check it, because I'm not sure the jamfile is correct.
comment:10 by , 4 years ago
Milestone: | R1 → R1.1 |
---|
comment:11 by , 4 years ago
Component: | Applications/WebPositive → Kits/Web Kit |
---|---|
Summary: | Browser's context menu does not translate → Webkit: context menu items do not translate |
comment:12 by , 4 years ago
Blocking: | 14637 added |
---|
comment:13 by , 2 years ago
Blocking: | 18235 added |
---|
And the tab-bar's tooltips too.