[Xfce4-commits] <terminal:master> Set the correct translation domain before reading the ui file (bug #5842).

Nick Schermer noreply at xfce.org
Thu Oct 8 11:48:01 CEST 2009


Updating branch refs/heads/master
         to 5c955bb0435dca6d7114903d246cf2e4a215cc5e (commit)
       from 1498b9c59c5b874dcf8b6084dd6a542dde97e664 (commit)

commit 5c955bb0435dca6d7114903d246cf2e4a215cc5e
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Oct 8 11:44:36 2009 +0200

    Set the correct translation domain before reading the ui file (bug #5842).

 terminal/terminal-preferences-dialog.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/terminal/terminal-preferences-dialog.c b/terminal/terminal-preferences-dialog.c
index 7836032..c3bc2cf 100644
--- a/terminal/terminal-preferences-dialog.c
+++ b/terminal/terminal-preferences-dialog.c
@@ -101,6 +101,11 @@ terminal_preferences_dialog_init (TerminalPreferencesDialog *dialog)
 
   dialog->preferences = terminal_preferences_get ();
 
+  /* make sure the correct translation domain is set, since other programs
+   * could reset it, like for example the XFCE_LICENSE_GPL in terminal-dialogs.c,
+   * see http://bugzilla.xfce.org/show_bug.cgi?id=5842 */
+  xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+
   /* hack to initialize the XfceTitledDialog class */
   if (xfce_titled_dialog_get_type () == 0)
     return;



More information about the Xfce4-commits mailing list