GETTEXT_PACKAGE from CFlags.
This commit is contained in:
parent
db9366b47d
commit
df2f9f2b54
|
@ -1 +1 @@
|
|||
Subproject commit df96ceb0b067844d341f0405db7c10def84d772c
|
||||
Subproject commit 972b5e5d882bb590fb5eee248c92cdc13ff19c5f
|
|
@ -1,5 +1,7 @@
|
|||
using Gtk;
|
||||
|
||||
extern const string GETTEXT_PACKAGE;
|
||||
|
||||
/* When button click signal received */
|
||||
public void on_button1_clicked (Button source) {
|
||||
/* change button label to clicked! */
|
||||
|
@ -23,6 +25,11 @@ int main (string[] args) {
|
|||
string settings_dir = Path.build_path (Path.DIR_SEPARATOR_S,
|
||||
exec_file.get_parent().get_parent().get_path(), "share/gtkbuilder-test/ui");
|
||||
|
||||
// l18n location:
|
||||
string localedir = Path.build_path (Path.DIR_SEPARATOR_S, exec_file.get_parent().get_parent().get_path(), "share/locale");
|
||||
Intl.bindtextdomain (GETTEXT_PACKAGE, localedir);
|
||||
Intl.bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
|
||||
/* Getting the glade file */
|
||||
builder.add_from_file (settings_dir + "/gtkbuilder-test.glade");
|
||||
|
||||
|
|
Loading…
Reference in New Issue