aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/plank/files/patch-lib_Widgets_PreferencesWindow.vala
blob: 468f3832831f4611a6fd444831b993398d65118f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- lib/Widgets/PreferencesWindow.vala.orig	2015-04-07 07:42:22 UTC
+++ lib/Widgets/PreferencesWindow.vala
@@ -59,6 +59,12 @@ namespace Plank.Widgets
 		
 		construct
 		{
+			GLib.Intl.setlocale (LocaleCategory.ALL, "");
+			string langpack_dir = GLib.Path.build_filename (Build.INSTALL_PREFIX, "share", "locale");
+			GLib.Intl.bindtextdomain (Build.GETTEXT_PACKAGE, langpack_dir);
+			GLib.Intl.bind_textdomain_codeset (Build.GETTEXT_PACKAGE, "UTF-8");
+			GLib.Intl.textdomain (Build.GETTEXT_PACKAGE);
+			
 			skip_pager_hint = true;
 			skip_taskbar_hint = true;
 			title = _("Preferences");