~unity-team/unity/7.1

« back to all changes in this revision

Viewing changes to src/main.vala

  • Committer: Neil Jagdish Patel
  • Date: 2010-02-12 12:29:17 UTC
  • mto: (124.1.2 unity.miscfixes)
  • mto: This revision was merged to the branch mainline in revision 127.
  • Revision ID: neil.patel@canonical.com-20100212122917-ruemhr36vi0mut83
InitialĀ translationĀ support

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    Unity.Application    app;
84
84
    Unity.UnderlayWindow window;
85
85
    Unity.TimelineLogger.get_default(); // just inits the timer for logging
 
86
 
 
87
    GLib.Intl.textdomain (Config.GETTEXT_PACKAGE);
 
88
    GLib.Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALE_DIR);
 
89
    GLib.Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
 
90
 
86
91
    try
87
92
      {
88
93
        var opt_context = new OptionContext ("-- Unity");
100
105
 
101
106
    if (show_version)
102
107
      {
103
 
        /* FIXME: Add VERSION define */
104
 
        print ("\nUnity %s\n", "0.1.0");
 
108
        print ("\nUnity %s\n", Config.VERSION);
105
109
        return 0;
106
110
      }
107
111
    // attempt to get a boot logging filename