Commit 87ed3686 authored by kov@webkit.org's avatar kov@webkit.org

WebKit/gtk/

2009-04-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=25124
        [GTK] many strings still missing translation calls

        Mark the missing strings for translation.

        * webkit/webkitdownload.cpp:
        (_WebKitDownloadPrivate::webkit_download_cancel):
        * webkit/webkitsoupauthdialog.c:
        (show_auth_dialog):
        * webkit/webkitwebhistoryitem.cpp:
        (_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init):
        * webkit/webkitwebinspector.cpp:
        (_WebKitWebInspectorPrivate::webkit_web_inspector_class_init):
        * webkit/webkitwebnavigationaction.cpp:
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init):
        * webkit/webkitwebsettings.cpp:
        (_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
        * webkit/webkitwebview.cpp:

WebKit/gtk/po/

2009-04-10  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=25124
        [GTK] many strings still missing translation calls

        Extracting translation for the files that got translation calls.

        * POTFILES:
        * de.po:
        * pt_BR.po:
        * webkit.pot:

git-svn-id: svn://svn.chromium.org/blink/trunk@42391 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent d9963bb3
2009-04-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=25124
[GTK] many strings still missing translation calls
Mark the missing strings for translation.
* webkit/webkitdownload.cpp:
(_WebKitDownloadPrivate::webkit_download_cancel):
* webkit/webkitsoupauthdialog.c:
(show_auth_dialog):
* webkit/webkitwebhistoryitem.cpp:
(_WebKitWebHistoryItemPrivate::webkit_web_history_item_class_init):
* webkit/webkitwebinspector.cpp:
(_WebKitWebInspectorPrivate::webkit_web_inspector_class_init):
* webkit/webkitwebnavigationaction.cpp:
(_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init):
* webkit/webkitwebsettings.cpp:
(_WebKitWebSettingsPrivate::webkit_web_settings_class_init):
* webkit/webkitwebview.cpp:
2009-04-08 Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed by Holger Freyther.
......
2009-04-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
Reviewed by Holger Freyther.
https://bugs.webkit.org/show_bug.cgi?id=25124
[GTK] many strings still missing translation calls
Extracting translation for the files that got translation calls.
* POTFILES:
* de.po:
* pt_BR.po:
* webkit.pot:
2009-04-06 Christian Dywan <christian@twotoasts.de>
Rubber-stamped by Oliver Hunt.
......
......@@ -2,5 +2,11 @@
WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp
WebKit/gtk/webkit/webkitdownload.cpp
WebKit/gtk/webkit/webkitsoupauthdialog.c
WebKit/gtk/webkit/webkitwebframe.cpp
WebKit/gtk/webkit/webkitwebhistoryitem.cpp
WebKit/gtk/webkit/webkitwebinspector.cpp
WebKit/gtk/webkit/webkitwebnavigationaction.cpp
WebKit/gtk/webkit/webkitwebsettings.cpp
WebKit/gtk/webkit/webkitwebview.cpp
WebCore/platform/gtk/LocalizedStringsGtk.cpp
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -466,7 +466,7 @@ void webkit_download_cancel(WebKitDownload* download)
webkit_download_set_status(download, WEBKIT_DOWNLOAD_STATUS_CANCELLED);
gboolean handled;
g_signal_emit_by_name(download, "error", 0, WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER, "User cancelled the download", &handled);
g_signal_emit_by_name(download, "error", 0, WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER, _("User cancelled the download"), &handled);
}
/**
......
......@@ -19,6 +19,7 @@
#include "config.h"
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <libsoup/soup.h>
#if USE(GNOMEKEYRING)
......@@ -240,7 +241,7 @@ static void show_auth_dialog(WebKitAuthData* authData, const char* login, const
gtk_box_pack_start(GTK_BOX(hbox), mainVBox, TRUE, TRUE, 0);
uri = soup_message_get_uri(authData->msg);
message = g_strdup_printf("A username and password are being requested by the site %s", uri->host);
message = g_strdup_printf(_("A username and password are being requested by the site %s"), uri->host);
messageLabel = gtk_label_new(message);
g_free(message);
gtk_misc_set_alignment(GTK_MISC(messageLabel), 0.0, 0.5);
......@@ -265,9 +266,9 @@ static void show_auth_dialog(WebKitAuthData* authData, const char* login, const
gtk_table_set_row_spacings(GTK_TABLE (table), 6);
gtk_container_add(GTK_CONTAINER(entryContainer), table);
authData->loginEntry = table_add_entry(table, 0, "Username:",
authData->loginEntry = table_add_entry(table, 0, _("Username:"),
login, NULL);
authData->passwordEntry = table_add_entry(table, 1, "Password:",
authData->passwordEntry = table_add_entry(table, 1, _("Password:"),
password, NULL);
gtk_entry_set_visibility(GTK_ENTRY(authData->passwordEntry), FALSE);
......@@ -277,7 +278,7 @@ static void show_auth_dialog(WebKitAuthData* authData, const char* login, const
gtk_box_pack_start (GTK_BOX (vbox), rememberBox,
FALSE, FALSE, 0);
checkButton = gtk_check_button_new_with_label("Remember password");
checkButton = gtk_check_button_new_with_label(_("Remember password"));
if (login && password)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkButton), TRUE);
gtk_label_set_line_wrap(GTK_LABEL(gtk_bin_get_child(GTK_BIN(checkButton))), TRUE);
......
......@@ -23,6 +23,7 @@
#include "webkitprivate.h"
#include <glib.h>
#include <glib/gi18n-lib.h>
#include "CString.h"
#include "HistoryItem.h"
......@@ -150,8 +151,8 @@ static void webkit_web_history_item_class_init(WebKitWebHistoryItemClass* klass)
PROP_TITLE,
g_param_spec_string(
"title",
"Title",
"The title of the history item",
_("Title"),
_("The title of the history item"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -166,8 +167,8 @@ static void webkit_web_history_item_class_init(WebKitWebHistoryItemClass* klass)
PROP_ALTERNATE_TITLE,
g_param_spec_string(
"alternate-title",
"Alternate Title",
"The alternate title of the history item",
_("Alternate Title"),
_("The alternate title of the history item"),
NULL,
WEBKIT_PARAM_READWRITE));
......@@ -182,8 +183,8 @@ static void webkit_web_history_item_class_init(WebKitWebHistoryItemClass* klass)
PROP_URI,
g_param_spec_string(
"uri",
"URI",
"The URI of the history item",
_("URI"),
_("The URI of the history item"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -198,8 +199,8 @@ static void webkit_web_history_item_class_init(WebKitWebHistoryItemClass* klass)
PROP_ORIGINAL_URI,
g_param_spec_string(
"original-uri",
"Original URI",
"The original URI of the history item",
_("Original URI"),
_("The original URI of the history item"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -214,8 +215,8 @@ static void webkit_web_history_item_class_init(WebKitWebHistoryItemClass* klass)
PROP_LAST_VISITED_TIME,
g_param_spec_double(
"last-visited-time",
"Last visited Time",
"The time at which the history item was last visited",
_("Last visited Time"),
_("The time at which the history item was last visited"),
0, G_MAXDOUBLE, 0,
WEBKIT_PARAM_READABLE));
......
......@@ -20,6 +20,7 @@
#include "config.h"
#include <glib/gi18n-lib.h>
#include "webkitwebinspector.h"
#include "webkitmarshal.h"
#include "InspectorClientGtk.h"
......@@ -256,8 +257,8 @@ static void webkit_web_inspector_class_init(WebKitWebInspectorClass* klass)
*/
g_object_class_install_property(gobject_class, PROP_WEB_VIEW,
g_param_spec_object("web-view",
"Web View",
"The Web View that renders the Web Inspector itself",
_("Web View"),
_("The Web View that renders the Web Inspector itself"),
WEBKIT_TYPE_WEB_VIEW,
WEBKIT_PARAM_READABLE));
......@@ -270,8 +271,8 @@ static void webkit_web_inspector_class_init(WebKitWebInspectorClass* klass)
*/
g_object_class_install_property(gobject_class, PROP_INSPECTED_URI,
g_param_spec_string("inspected-uri",
"Inspected URI",
"The URI that is currently being inspected",
_("Inspected URI"),
_("The URI that is currently being inspected"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -287,8 +288,8 @@ static void webkit_web_inspector_class_init(WebKitWebInspectorClass* klass)
PROP_JAVASCRIPT_PROFILING_ENABLED,
g_param_spec_boolean(
"javascript-profiling-enabled",
"Enable JavaScript profiling",
"Profile the executed JavaScript.",
_("Enable JavaScript profiling"),
_("Profile the executed JavaScript."),
FALSE,
WEBKIT_PARAM_READWRITE));
......
......@@ -22,6 +22,7 @@
#include <wtf/Assertions.h>
#include "FrameLoaderTypes.h"
#include <glib/gi18n-lib.h>
#include "webkitwebnavigationaction.h"
#include "webkitprivate.h"
#include "webkitenumtypes.h"
......@@ -148,8 +149,8 @@ static void webkit_web_navigation_action_class_init(WebKitWebNavigationActionCla
*/
g_object_class_install_property(objectClass, PROP_REASON,
g_param_spec_enum("reason",
"Reason",
"The reason why this navigation is occurring",
_("Reason"),
_("The reason why this navigation is occurring"),
WEBKIT_TYPE_WEB_NAVIGATION_REASON,
WEBKIT_WEB_NAVIGATION_REASON_OTHER,
(GParamFlags)(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT)));
......@@ -163,8 +164,8 @@ static void webkit_web_navigation_action_class_init(WebKitWebNavigationActionCla
*/
g_object_class_install_property(objectClass, PROP_ORIGINAL_URI,
g_param_spec_string("original-uri",
"Original URI",
"The URI that was requested as the target for the navigation",
_("Original URI"),
_("The URI that was requested as the target for the navigation"),
"",
(GParamFlags)(WEBKIT_PARAM_READWRITE | G_PARAM_CONSTRUCT)));
/**
......@@ -176,8 +177,8 @@ static void webkit_web_navigation_action_class_init(WebKitWebNavigationActionCla
*/
g_object_class_install_property(objectClass, PROP_BUTTON,
g_param_spec_int("button",
"Button",
"The button used to click",
_("Button"),
_("The button used to click"),
-1,
G_MAXINT,
-1,
......@@ -192,8 +193,8 @@ static void webkit_web_navigation_action_class_init(WebKitWebNavigationActionCla
*/
g_object_class_install_property(objectClass, PROP_MODIFIER_STATE,
g_param_spec_int("modifier-state",
"Modifier state",
"A bitmask representing the state of the modifier keys",
_("Modifier state"),
_("A bitmask representing the state of the modifier keys"),
0,
G_MAXINT,
0,
......
......@@ -55,6 +55,7 @@
#include "FrameLoaderTypes.h"
#include "HitTestRequest.h"
#include "HitTestResult.h"
#include <glib/gi18n-lib.h>
#include "GraphicsContext.h"
#include "InspectorClientGtk.h"
#include "FrameLoader.h"
......@@ -1711,8 +1712,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_TITLE,
g_param_spec_string("title",
"Title",
"Returns the @web_view's document title",
_("Title"),
_("Returns the @web_view's document title"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -1725,8 +1726,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_URI,
g_param_spec_string("uri",
"URI",
"Returns the current URI of the contents displayed by the @web_view",
_("URI"),
_("Returns the current URI of the contents displayed by the @web_view"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -1739,8 +1740,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_COPY_TARGET_LIST,
g_param_spec_boxed("copy-target-list",
"Copy target list",
"The list of targets this web view supports for clipboard copying",
_("Copy target list"),
_("The list of targets this web view supports for clipboard copying"),
GTK_TYPE_TARGET_LIST,
WEBKIT_PARAM_READABLE));
......@@ -1753,15 +1754,15 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_PASTE_TARGET_LIST,
g_param_spec_boxed("paste-target-list",
"Paste target list",
"The list of targets this web view supports for clipboard pasting",
_("Paste target list"),
_("The list of targets this web view supports for clipboard pasting"),
GTK_TYPE_TARGET_LIST,
WEBKIT_PARAM_READABLE));
g_object_class_install_property(objectClass, PROP_SETTINGS,
g_param_spec_object("settings",
"Settings",
"An associated WebKitWebSettings instance",
_("Settings"),
_("An associated WebKitWebSettings instance"),
WEBKIT_TYPE_WEB_SETTINGS,
WEBKIT_PARAM_READWRITE));
......@@ -1774,8 +1775,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_WEB_INSPECTOR,
g_param_spec_object("web-inspector",
"Web Inspector",
"The associated WebKitWebInspector instance",
_("Web Inspector"),
_("The associated WebKitWebInspector instance"),
WEBKIT_TYPE_WEB_INSPECTOR,
WEBKIT_PARAM_READABLE));
......@@ -1795,15 +1796,15 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
g_object_class_install_property(objectClass, PROP_EDITABLE,
g_param_spec_boolean("editable",
"Editable",
"Whether content can be modified by the user",
_("Editable"),
_("Whether content can be modified by the user"),
FALSE,
WEBKIT_PARAM_READWRITE));
g_object_class_install_property(objectClass, PROP_TRANSPARENT,
g_param_spec_boolean("transparent",
"Transparent",
"Whether content has a transparent background",
_("Transparent"),
_("Whether content has a transparent background"),
FALSE,
WEBKIT_PARAM_READWRITE));
......@@ -1816,8 +1817,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_ZOOM_LEVEL,
g_param_spec_float("zoom-level",
"Zoom level",
"The level of zoom of the content",
_("Zoom level"),
_("The level of zoom of the content"),
G_MINFLOAT,
G_MAXFLOAT,
1.0f,
......@@ -1832,8 +1833,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_FULL_CONTENT_ZOOM,
g_param_spec_boolean("full-content-zoom",
"Full content zoom",
"Whether the full content is scaled when zooming",
_("Full content zoom"),
_("Whether the full content is scaled when zooming"),
FALSE,
WEBKIT_PARAM_READWRITE));
......@@ -1846,8 +1847,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_ENCODING,
g_param_spec_string("encoding",
"Encoding",
"The default encoding of the web view",
_("Encoding"),
_("The default encoding of the web view"),
NULL,
WEBKIT_PARAM_READABLE));
......@@ -1860,8 +1861,8 @@ static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass)
*/
g_object_class_install_property(objectClass, PROP_CUSTOM_ENCODING,
g_param_spec_string("custom-encoding",
"Custom Encoding",
"The custom encoding of the web view",
_("Custom Encoding"),
_("The custom encoding of the web view"),
NULL,
WEBKIT_PARAM_READWRITE));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment