Localization lost in GtkBuilder interface file when using XFCE_LICENSE_*

View: New views
1 Messages — Rating Filter:   Alert me  

Localization lost in GtkBuilder interface file when using XFCE_LICENSE_*

by Ali Abdallah-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Reported by Hashimoto against Parole, but i just realize that other
packages are affected too (Terminal for example).

Steps:
1) Set locale to let's say fr_FR.utf8
2) Open Terminal or Parole...
3) Open the about dialog
4) Reopen the preferences dialog (or any dialog constructed by
GtkBuilder in the application).

Result:
Strings are displayed in English.

It took me a lot of time to figure out that the thing is XFCE_LICENSE_*
is calling xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, NULL);
but for some reason it is messing up with locale domain of the package
itself.

Disabling the call in libxfce4util or calling xfce_textdomain
(GETTEXT_PACKAGE, LOCALEDIR, "UTF-8"); again after closing the dialog
fixes the problem, no idea why.

Please your comments.

Ali.

(I sent the mail first to the wrong mailing list, resending to the dev one).
_______________________________________________
Xfce4-dev mailing list
Xfce4-dev@...
http://foo-projects.org/mailman/listinfo/xfce4-dev