freebsd-ports/x11-toolkits/granite/files/patch-lib_Application.vala
Tobias Kortkamp 75603347c4 x11-toolkits/granite: Update to 5.2.2
- Update WWW
- Add missing gsettings-desktop-schemas dependency to prevent
  runtime crashes of applications using the DateTime widget
- Bump revision of dependent ports

Changes:	https://github.com/elementary/granite/releases
2019-01-03 13:49:07 +00:00

15 lines
749 B
Vala

--- lib/Application.vala.orig 2018-12-17 13:02:11 UTC
+++ lib/Application.vala
@@ -157,7 +157,11 @@ namespace Granite {
message ("Kernel version: %s", (string) un.release);
Granite.Services.Logger.DisplayLevel = Granite.Services.LogLevel.WARN;
- Intl.bindtextdomain (exec_name, build_data_dir + "/locale");
+ Intl.setlocale (LocaleCategory.ALL, "");
+ string langpack_dir = Path.build_path (Path.DIR_SEPARATOR_S, build_data_dir, "locale");
+ Intl.bindtextdomain (exec_name, langpack_dir);
+ Intl.bind_textdomain_codeset (exec_name, "UTF-8");
+ Intl.textdomain (exec_name);
handle_local_options.connect (on_handle_local_options);
}