Skip to content

Commit

Permalink
[ci skip] Yet anothed locale fix
Browse files Browse the repository at this point in the history
Former-commit-id: e26aef4
  • Loading branch information
tkashkin committed Jul 16, 2018
1 parent 8a9b34b commit 9abe019
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ProjectConfig.vala.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ namespace GameHub.ProjectConfig
public const string GETTEXT_PACKAGE = @GETTEXT_PACKAGE@;
public const string PROJECT_NAME = @PROJECT_NAME@;
public const string VERSION = @VERSION@;
public const string INSTALL_PREFIX = @PREFIX@;

public const string PREFIX = @PREFIX@;
public const string DATADIR = @DATADIR@;

public const string RUNTIME = @RUNTIME@;
}
2 changes: 1 addition & 1 deletion src/app.vala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace GameHub
#endif

Intl.setlocale(LocaleCategory.ALL, "");
Intl.bindtextdomain(ProjectConfig.GETTEXT_PACKAGE, ProjectConfig.INSTALL_PREFIX + "/locale");
Intl.bindtextdomain(ProjectConfig.GETTEXT_PACKAGE, ProjectConfig.DATADIR + "/locale");
Intl.bind_textdomain_codeset(ProjectConfig.GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain(ProjectConfig.GETTEXT_PACKAGE);

Expand Down
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ conf_data.set_quoted('PROJECT_NAME', meson.project_name())
conf_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf_data.set_quoted('VERSION', meson.project_version())
conf_data.set_quoted('PREFIX', get_option('prefix'))
conf_data.set_quoted('DATADIR', get_option('datadir'))
conf_data.set_quoted('RUNTIME', get_option('runtime'))
project_config = configure_file(
input: 'ProjectConfig.vala.in',
Expand Down

0 comments on commit 9abe019

Please sign in to comment.