/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-08-03 21:09:38 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140803210938-jfhdl23v4mzji6pf
* Added translation files (messeges.po and sv.po)
* fixed a few gettext errors in app.js
* TODO:
  * Make the translations not be as "fixed" as they are now.
  * Add auto update/compile for the translations to makefile.

  * Switch to a better build system?

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * in the file lgpl-3.0.txt in the root of this project.
6
6
 */
7
7
 
8
 
 
9
 
const Gettext = imports.gettext;
 
8
const cairo = imports.gi.cairo;
10
9
const Gio = imports.gi.Gio;
11
10
const GLib = imports.gi.GLib;
12
11
const GObject = imports.gi.GObject;
13
12
const Gtk = imports.gi.Gtk;
 
13
const Lang = imports.lang;
14
14
const _ = imports.gettext.gettext;
15
 
const Lang = imports.lang;
 
15
const Gettext = imports.gettext;
16
16
 
17
17
const SettingsData = imports.settings_data;
18
18
/* const Style = imports.style; */
19
19
const PreferencesUI = imports.preferences_ui;
20
 
const UserMenu = imports.user_menu;
21
20
 
22
21
const Application = new Lang.Class ({
23
22
  Name: "Application",
177
176
      tooltip_text: _("Refresh the stream")
178
177
    })));
179
178
    
180
 
    this.headerbar.pack_end ((this.user_menu_btn = new Gtk.MenuButton ({
 
179
    this.headerbar.pack_end ((this.user_menu_btn = new Gtk.Button ({
181
180
      image: (new Gtk.Image ({icon_name: 'emblem-system-symbolic'})),
182
 
      tooltip_text: _("Switch and manage users"),
183
 
      popover: (this.user_menu = new UserMenu.UserMenu ()),
 
181
      tooltip_text: _("Switch and manage users")
184
182
    })));
185
 
    
186
183
  }
187
184
  
188
185
});