~bryan-blunt/awn-extras/awnmediaplayerupdate

« back to all changes in this revision

Viewing changes to applets/maintained/dialect/dialect.py

  • Committer: Gabor Karsay
  • Date: 2010-10-30 20:32:45 UTC
  • Revision ID: gabor.karsay@gmx.at-20101030203245-kebcet01wuh2tt1s
Weather, Dialect: add/make strings translatable

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
            self.gtk[item] = gtk.ImageMenuItem(str(item))
195
195
            self.gtk['umenu'].append(self.gtk[item])
196
196
            self.gtk[item].connect('activate', self.on_umenu, item)
 
197
        # glade-3 does not support translation of the following elements or
 
198
        # without markup, therefore coded here
197
199
        layout_info = builder.get_object('layout_info')
198
200
        layout_info.set_tooltip_markup(_('<b>User List:</b> The list of '
199
201
            'layouts you commonly use. The maximum number of layouts is '
202
204
            'can order the list by drag and drop.\n'
203
205
            '<b>System List:</b> The complete list of layouts and variants '
204
206
            'available. Select an item and click the add button to include '
205
 
            'in your user list.'))  # glade3 doesn't support translatable markup
 
207
            'in your user list.'))
206
208
        label_small = builder.get_object('label_small')
207
209
        label_small.set_markup('<i><small>%s</small></i>' % _('small'))
208
210
        label_small = builder.get_object('label_large')
211
213
        label_small.set_markup('<i><small>%s</small></i>' % _('transparent'))
212
214
        label_small = builder.get_object('label_opaque')
213
215
        label_small.set_markup('<i><small>%s</small></i>' % _('opaque'))
 
216
        sys_name_col = builder.get_object('sys_name_col')
 
217
        sys_name_col.set_title(_('System List'))
 
218
        user_name_col = builder.get_object('user_name_col')
 
219
        user_name_col.set_title(_('User List'))
214
220
 
215
221
    # Create CONTEXT menu
216
222
    def context_init(self):