~ted/remote-login-service/translatable-server-names

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Ted Gould
  • Date: 2012-09-12 16:35:11 UTC
  • Revision ID: ted@gould.cx-20120912163511-tikfkbif5iisp3tq
Setting up locale stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Author: Ted Gould <ted@canonical.com>
17
17
 */
18
18
 
 
19
#ifdef HAVE_CONFIG_H
 
20
#include "config.h"
 
21
#endif
 
22
 
19
23
#include <glib.h>
20
24
#include <glib/gi18n.h>
21
25
 
336
340
 
337
341
        /* Init the GTypes */
338
342
        g_type_init();
 
343
 
 
344
        /* Setup i18n */
 
345
        setlocale (LC_ALL, ""); 
 
346
        bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
 
347
        textdomain (GETTEXT_PACKAGE);
 
348
 
 
349
        /* Create our global variables */
339
350
        GKeyFile * config = g_key_file_new();
340
351
        GMainLoop * mainloop = g_main_loop_new(NULL, FALSE);
341
352