Changeset 2379 for lliurex-shutdowner


Ignore:
Timestamp:
Sep 6, 2016, 12:00:34 PM (3 years ago)
Author:
jrpelegrina
Message:

Fix translations

Location:
lliurex-shutdowner/trunk/fuentes
Files:
8 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-shutdowner/trunk/fuentes/lliurex-shutdowner.install/usr/sbin/shutdowner

    r496 r2379  
    2525import threading
    2626
     27import gettext
     28gettext.textdomain('lliurex-shutdowner')
     29_ = gettext.gettext
    2730#Comment the first line and uncomment the second before installing
    2831#or making the tarball (alternatively, use project variables)
     
    8992
    9093                self.builder = Gtk.Builder()
     94                self.builder.set_translation_domain('lliurex-shutdowner')
    9195                self.builder.add_from_file(UI_FILE)
    9296                self.builder.connect_signals(self)
     
    135139                    self.txtbuff=textarea.get_buffer()
    136140                    #start, end = self.txtbuff.get_bounds()
    137                     self.txtbuff.set_text('Clientes detectados:\n'+f.read())
     141                    self.txtbuff.set_text(_('Clientes detectados:\n')+f.read())
    138142               
    139143
Note: See TracChangeset for help on using the changeset viewer.