~unity-team/unity-lens-files/browse-in-nautilus

« back to all changes in this revision

Viewing changes to src/main.vala

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2010-08-23 14:48:46 UTC
  • mfrom: (73.1.3 i18n)
  • Revision ID: mikkel.kamstrup@gmail.com-20100823144846-u18j9ojqylquk2i8
Merge Mikkel's branch lp:~unity-team/unity-place-files/i18n:

 * Add i18n support

 * Mark all user visible strings for translation

 * Make distcheck pass

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
  public static int main (string[] args)
26
26
    {
 
27
      GLib.Intl.textdomain (Config.PACKAGE);
 
28
      GLib.Intl.bindtextdomain (Config.PACKAGE, Config.LOCALEDIR);
 
29
      GLib.Intl.bind_textdomain_codeset (Config.PACKAGE, "UTF-8");
 
30
    
 
31
      DesktopAppInfo.set_desktop_env ("GNOME");
 
32
    
27
33
      var daemon = new Daemon ();
28
34
 
29
35
      /* Export the place daemon on the session bus */
41
47
          }
42
48
        else
43
49
          {
44
 
            print ("Another Files Place daemon appears to be running.\nBailing out.");
 
50
            print (_("Another Files Place daemon appears to be running.\nBailing out."));
45
51
            return 1;
46
52
          }
47
53
      } catch (DBus.Error error) {
48
 
        GLib.error ("Error connecting to session bus: %s.\nBailing out.", error.message);
 
54
        print (_("Error connecting to session bus: %s.\nBailing out."), error.message);
49
55
        return 2;
50
56
      }
51
57