summaryrefslogtreecommitdiff
path: root/src/ui/main.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/main.vala')
-rw-r--r--src/ui/main.vala24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/ui/main.vala b/src/ui/main.vala
index a0acd6d..82dc9d1 100644
--- a/src/ui/main.vala
+++ b/src/ui/main.vala
@@ -14,18 +14,28 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
+[CCode (cname="PACKAGE")]
+extern const string PACKAGE;
+
+[CCode (cname="LOCALEDIR")]
+extern const string LOCALEDIR;
+
namespace Disfluid {
class Main: GLib.Object {
public static int main (string[] args) {
+ GLib.Intl.setlocale (GLib.LocaleCategory.ALL, "");
+ GLib.Intl.bindtextdomain (PACKAGE, LOCALEDIR);
+ GLib.Intl.textdomain (PACKAGE);
int return_code = 1;
Disfluid.Api.init ((api) => {
- var settings = new Disfluid.Settings (api);
- foreach (var arg in args) {
- stdout.printf ("%s\n", arg);
- }
- return_code = 0;
- return null;
- });
+ var settings = new Disfluid.Settings (api);
+ stdout.printf (_ ("Hello, world!\n"));
+ foreach (var arg in args) {
+ stdout.printf ("%s\n", arg);
+ }
+ return_code = 0;
+ return null;
+ });
return return_code;
}
}