[eog-plugins] [exif-display] Set translation domain on GtkBuilder instances
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [eog-plugins] [exif-display] Set translation domain on GtkBuilder instances
- Date: Wed, 12 Aug 2009 19:49:55 +0000 (UTC)
commit e9273fadb5583fb8003989328e85491a9dd1283d
Author: Felix Riemann <friemann gnome org>
Date: Wed Aug 12 21:47:42 2009 +0200
[exif-display] Set translation domain on GtkBuilder instances
Otherwise GtkBuilder will search the translated strings in eog and not
the eog-plugins package.
ChangeLog | 8 ++++++++
plugins/exif-display/eog-exif-display-plugin.c | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3546fde..f38e01a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2009-08-12 Felix Riemann <friemann gnome org>
+ * plugins/exif-display/eog-exif-display-plugin.c (impl_activate),
+ (impl_create_config_dialog):
+ Set translation domain on GtkBuilder instances or else UI strings are
+ only partially translated because the strings are searched for in
+ eog's translations.
+
+2009-08-12 Felix Riemann <friemann gnome org>
+
* plugins/exif-display/eog-exif-display-plugin.c:
* plugins/exif-display/exif-display.ui:
Add description tag to the list of displayed exif tags and improve
diff --git a/plugins/exif-display/eog-exif-display-plugin.c b/plugins/exif-display/eog-exif-display-plugin.c
index df86fb4..aa07aa5 100644
--- a/plugins/exif-display/eog-exif-display-plugin.c
+++ b/plugins/exif-display/eog-exif-display-plugin.c
@@ -724,6 +724,7 @@ impl_activate (EogPlugin *plugin,
GError* error = NULL;
data->sidebar_builder = gtk_builder_new ();
+ gtk_builder_set_translation_domain (data->sidebar_builder, GETTEXT_PACKAGE);
if (!gtk_builder_add_from_file (data->sidebar_builder, GTKBUILDER_FILE, &error))
{
g_warning ("Couldn't load builder file: %s", error->message);
@@ -841,6 +842,7 @@ impl_create_config_dialog (EogPlugin *plugin)
GtkWidget *result;
config_builder = gtk_builder_new ();
+ gtk_builder_set_translation_domain (config_builder, GETTEXT_PACKAGE);
if (!gtk_builder_add_from_file (config_builder, GTKBUILDER_CONFIG_FILE, &error))
{
g_warning ("Couldn't load builder file: %s", error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]