File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ public class Sequeler.Application : Gtk.Application {
3333 application_id = Constants . PROJECT_NAME ;
3434 flags |= ApplicationFlags . HANDLES_OPEN ;
3535
36+ GLib . Intl . setlocale (LocaleCategory . ALL , " " );
37+ GLib . Intl . bindtextdomain (Constants . GETTEXT_PACKAGE , Constants . LOCALEDIR );
38+ GLib . Intl . bind_textdomain_codeset (Constants . GETTEXT_PACKAGE , " UTF-8" );
39+ GLib . Intl . textdomain (Constants . GETTEXT_PACKAGE );
40+
3641 schema = new Secret .Schema (Constants . PROJECT_NAME , Secret . SchemaFlags . NONE ,
3742 " id" , Secret . SchemaAttributeType . INTEGER ,
3843 " schema" , Secret . SchemaAttributeType . STRING );
Original file line number Diff line number Diff line change 11namespace Constants {
22 public const string PROJECT_NAME = "@PROJECT_NAME@";
33 public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@";
4+ public const string LOCALEDIR = "@LOCALEDIR@";
45 public const string VERSION = "@VERSION@";
56}
Original file line number Diff line number Diff line change 11conf_data = configuration_data ()
22conf_data.set(' PROJECT_NAME' , application_id)
33conf_data.set(' GETTEXT_PACKAGE' , meson .project_name())
4+ conf_data.set(' LOCALEDIR' , join_paths (get_option (' prefix' ), get_option (' localedir' )))
45conf_data.set(' VERSION' , meson .project_version())
56
67config_header = configure_file (
You can’t perform that action at this time.
0 commit comments