/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to nautilus-bzr.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-01 10:46:10 UTC
  • mfrom: (750.1.4 bzr-gtk)
  • Revision ID: jelmer@samba.org-20111201104610-28d43twnvlmosnt8
Use translations in nautilus-bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
from bzrlib.plugin import load_plugins
38
38
load_plugins()
39
39
 
 
40
from bzrlib.plugins.gtk.i18n import _i18n
 
41
 
40
42
 
41
43
class BazaarExtension(Nautilus.MenuProvider, Nautilus.ColumnProvider,
42
44
        Nautilus.InfoProvider, Nautilus.PropertyPageProvider,
455
457
    def _create_table(self):
456
458
        table = Gtk.Table(homogeneous=False, columns=2, rows=3)
457
459
 
458
 
        table.attach(Gtk.Label('File id:'), 0, 1, 0, 1)
 
460
        table.attach(Gtk.Label(_i18n('File id:')), 0, 1, 0, 1)
459
461
        table.attach(Gtk.Label(self.file_id), 1, 2, 0, 1)
460
462
 
461
 
        table.attach(Gtk.Label('SHA1Sum:'), 0, 1, 1, 2)
 
463
        table.attach(Gtk.Label(_i18n('SHA1Sum:')), 0, 1, 1, 2)
462
464
        table.attach(Gtk.Label(self.tree.get_file_sha1(self.file_id, self.path)), 1, 1, 1, 2)
463
465
 
464
466
        basis_tree = self.tree.revision_tree(self.tree.last_revision())
465
467
        last_revision = basis_tree.get_file_revision(self.file_id)
466
468
 
467
 
        table.attach(Gtk.Label('Last Change Revision:'), 0, 1, 2, 3)
 
469
        table.attach(Gtk.Label(_i18n('Last Change Revision:')), 0, 1, 2, 3)
468
470
        revno = ".".join([str(x) for x in
469
471
            self.tree.branch.revision_id_to_dotted_revno(last_revision)])
470
472
        table.attach(Gtk.Label(revno), 1, 1, 2, 3)
471
473
 
472
 
        table.attach(Gtk.Label('Last Change Author:'), 0, 1, 3, 4)
 
474
        table.attach(Gtk.Label(_i18n('Last Change Author:')), 0, 1, 3, 4)
473
475
        rev = self.tree.branch.repository.get_revision(last_revision)
474
476
        table.attach(Gtk.Label("\n".join(rev.get_apparent_authors())), 1, 1, 3, 4)
475
477
 
510
512
        self._submit_location_entry = self._create_location_entry(
511
513
            self.branch.get_submit_branch, self.branch.set_submit_branch)
512
514
 
513
 
        table.attach(Gtk.Label('Push location:'), 0, 1, 0, 1)
 
515
        table.attach(Gtk.Label(_i18n('Push location:')), 0, 1, 0, 1)
514
516
        table.attach(self._push_location_entry, 1, 2, 0, 1)
515
517
 
516
 
        table.attach(Gtk.Label('Parent location:'), 0, 1, 1, 2)
 
518
        table.attach(Gtk.Label(_i18n('Parent location:')), 0, 1, 1, 2)
517
519
        table.attach(self._parent_location_entry, 1, 1, 1, 2)
518
520
 
519
 
        table.attach(Gtk.Label('Bound location:'), 0, 1, 2, 3)
 
521
        table.attach(Gtk.Label(_i18n('Bound location:')), 0, 1, 2, 3)
520
522
        table.attach(self._bound_location_entry, 1, 1, 2, 3)
521
523
 
522
 
        table.attach(Gtk.Label('Public location:'), 0, 1, 3, 4)
 
524
        table.attach(Gtk.Label(_i18n('Public location:')), 0, 1, 3, 4)
523
525
        table.attach(self._public_location_entry, 1, 1, 3, 4)
524
526
 
525
 
        table.attach(Gtk.Label('Submit location:'), 0, 1, 4, 5)
 
527
        table.attach(Gtk.Label(_i18n('Submit location:')), 0, 1, 4, 5)
526
528
        table.attach(self._submit_location_entry, 1, 1, 4, 5)
527
529
 
528
 
        self._append_revisions_only = Gtk.CheckButton('Append revisions only')
 
530
        self._append_revisions_only = Gtk.CheckButton(_i18n('Append revisions only'))
529
531
        value = self.branch.get_append_revisions_only()
530
532
        if value is None:
531
533
            value = False