Bug 136249

Summary: [GTK] Translations are not initialized in the UI process
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: berto, commit-queue, gustavo, mrobinson, pnormand, svillar
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch pnormand: review+

Description Carlos Garcia Campos 2014-08-26 04:35:28 PDT
This is breaking things like webkitContextMenuActionGetForContextMenuItem() for non English locales in the cases where we use the action title to guess the action, because the action title we get from the web process is translated while the one in the UI process is in English. We should initialize gettext also in the Ui process.
Comment 1 Carlos Garcia Campos 2014-08-26 04:38:09 PDT
Created attachment 237146 [details]
Patch
Comment 2 WebKit Commit Bot 2014-08-26 04:39:39 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Comment 3 Philippe Normand 2014-08-26 04:48:33 PDT
Comment on attachment 237146 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=237146&action=review

> Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp:254
> +    // Initialize gettext here, right before creating the default web context.

Not sure this comment has any relevant info. The explanation in the Changelog would be enough for me :)
Comment 4 Carlos Garcia Campos 2014-08-26 04:55:21 PDT
Committed r172957: <http://trac.webkit.org/changeset/172957>