/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to src/app.js

  • Committer: Gustav Hartvigsson
  • Date: 2014-06-08 17:40:09 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140608174009-xb9w8bkkzb2fyylx
* added GetText stuffs...

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 */
7
7
 
8
8
const Gio = imports.gi.Gio;
9
 
const Gst = imports.gi.Gst;
10
9
const GLib = imports.gi.GLib;
11
10
const Gtk = imports.gi.Gtk;
12
11
const Lang = imports.lang;
 
12
const _ = imports.gettext.gettext;
 
13
 
13
14
 
14
15
const SettingsData = imports.settings_data;
15
16
 
56
57
    
57
58
    this.window.set_titlebar ((this.headerbar = new Gtk.HeaderBar({
58
59
      title: 'GPump',
59
 
      subtitle: 'A Pump.io client',
 
60
      subtitle: _('A Pump.io client'),
60
61
      show_close_button: true
61
62
    })));
62
63
    
81
82
    menu.append_section (null, section);
82
83
    
83
84
    section = new Gio.Menu ();
84
 
    section.append ("About", "app.about");
85
 
    section.append ("Quit", "app.quit");
 
85
    section.append (_("About"), "app.about");
 
86
    section.append (_("Quit"), "app.quit");
86
87
    menu.append_section (null, section);
87
88
    
88
89
    this.application.set_app_menu (menu);
102
103
  _prepareHeaderBar: function () {
103
104
    this.headerbar.pack_start ((this.new_post_btn = new Gtk.Button ({
104
105
      image: (new Gtk.Image ({icon_name: 'text-editor-symbolic'})),
105
 
      tooltip_text: 'Create new post'
 
106
      tooltip_text: _('Create new post')
106
107
    })));
107
108
    
108
109
    this.headerbar.pack_start ((this.refresh_btn = new Gtk.Button({
109
110
      image: (new Gtk.Image ({icon_name: 'emblem-synchronizing-symbolic'})),
110
 
      tooltip_text: 'Refresh the stream'
 
111
      tooltip_text: _('Refresh the stream')
111
112
    })));
112
113
    
113
114
    this.headerbar.pack_end ((this.user_menu_btn = new Gtk.Button ({
114
115
      image: (new Gtk.Image ({icon_name: 'emblem-system-symbolic'})),
115
 
      tooltip_text: 'Switch and manage users'
 
116
      tooltip_text: _('Switch and manage users')
116
117
    })));
117
118
  }
118
119