Plugins/VcsPlugins/vcsPySvn/SvnConst.py

changeset 3034
7ce719013078
parent 2302
f29e9405c851
child 3037
a417a0670a36
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
10 from PyQt4.QtCore import QT_TRANSLATE_NOOP 10 from PyQt4.QtCore import QT_TRANSLATE_NOOP
11 11
12 import pysvn 12 import pysvn
13 13
14 svnNotifyActionMap = { 14 svnNotifyActionMap = {
15 pysvn.wc_notify_action.add: \ 15 pysvn.wc_notify_action.add:
16 QT_TRANSLATE_NOOP('Subversion', 'Add'), 16 QT_TRANSLATE_NOOP('Subversion', 'Add'),
17 pysvn.wc_notify_action.commit_added: \ 17 pysvn.wc_notify_action.commit_added:
18 QT_TRANSLATE_NOOP('Subversion', 'Add'), 18 QT_TRANSLATE_NOOP('Subversion', 'Add'),
19 pysvn.wc_notify_action.commit_deleted: \ 19 pysvn.wc_notify_action.commit_deleted:
20 QT_TRANSLATE_NOOP('Subversion', 'Delete'), 20 QT_TRANSLATE_NOOP('Subversion', 'Delete'),
21 pysvn.wc_notify_action.commit_modified: \ 21 pysvn.wc_notify_action.commit_modified:
22 QT_TRANSLATE_NOOP('Subversion', 'Modify'), 22 QT_TRANSLATE_NOOP('Subversion', 'Modify'),
23 pysvn.wc_notify_action.commit_postfix_txdelta: None, 23 pysvn.wc_notify_action.commit_postfix_txdelta: None,
24 pysvn.wc_notify_action.commit_replaced: \ 24 pysvn.wc_notify_action.commit_replaced:
25 QT_TRANSLATE_NOOP('Subversion', 'Replace'), 25 QT_TRANSLATE_NOOP('Subversion', 'Replace'),
26 pysvn.wc_notify_action.copy: \ 26 pysvn.wc_notify_action.copy:
27 QT_TRANSLATE_NOOP('Subversion', 'Copy'), 27 QT_TRANSLATE_NOOP('Subversion', 'Copy'),
28 pysvn.wc_notify_action.delete: \ 28 pysvn.wc_notify_action.delete:
29 QT_TRANSLATE_NOOP('Subversion', 'Delete'), 29 QT_TRANSLATE_NOOP('Subversion', 'Delete'),
30 pysvn.wc_notify_action.failed_revert: \ 30 pysvn.wc_notify_action.failed_revert:
31 QT_TRANSLATE_NOOP('Subversion', 'Failed revert'), 31 QT_TRANSLATE_NOOP('Subversion', 'Failed revert'),
32 pysvn.wc_notify_action.resolved: \ 32 pysvn.wc_notify_action.resolved:
33 QT_TRANSLATE_NOOP('Subversion', 'Resolve'), 33 QT_TRANSLATE_NOOP('Subversion', 'Resolve'),
34 pysvn.wc_notify_action.restore: \ 34 pysvn.wc_notify_action.restore:
35 QT_TRANSLATE_NOOP('Subversion', 'Restore'), 35 QT_TRANSLATE_NOOP('Subversion', 'Restore'),
36 pysvn.wc_notify_action.revert: \ 36 pysvn.wc_notify_action.revert:
37 QT_TRANSLATE_NOOP('Subversion', 'Revert'), 37 QT_TRANSLATE_NOOP('Subversion', 'Revert'),
38 pysvn.wc_notify_action.skip: \ 38 pysvn.wc_notify_action.skip:
39 QT_TRANSLATE_NOOP('Subversion', 'Skip'), 39 QT_TRANSLATE_NOOP('Subversion', 'Skip'),
40 pysvn.wc_notify_action.status_completed: None, 40 pysvn.wc_notify_action.status_completed: None,
41 pysvn.wc_notify_action.status_external: \ 41 pysvn.wc_notify_action.status_external:
42 QT_TRANSLATE_NOOP('Subversion', 'External'), 42 QT_TRANSLATE_NOOP('Subversion', 'External'),
43 pysvn.wc_notify_action.update_add: \ 43 pysvn.wc_notify_action.update_add:
44 QT_TRANSLATE_NOOP('Subversion', 'Add'), 44 QT_TRANSLATE_NOOP('Subversion', 'Add'),
45 pysvn.wc_notify_action.update_completed: None, 45 pysvn.wc_notify_action.update_completed: None,
46 pysvn.wc_notify_action.update_delete: \ 46 pysvn.wc_notify_action.update_delete:
47 QT_TRANSLATE_NOOP('Subversion', 'Delete'), 47 QT_TRANSLATE_NOOP('Subversion', 'Delete'),
48 pysvn.wc_notify_action.update_external: \ 48 pysvn.wc_notify_action.update_external:
49 QT_TRANSLATE_NOOP('Subversion', 'External'), 49 QT_TRANSLATE_NOOP('Subversion', 'External'),
50 pysvn.wc_notify_action.update_update: \ 50 pysvn.wc_notify_action.update_update:
51 QT_TRANSLATE_NOOP('Subversion', 'Update'), 51 QT_TRANSLATE_NOOP('Subversion', 'Update'),
52 pysvn.wc_notify_action.annotate_revision: \ 52 pysvn.wc_notify_action.annotate_revision:
53 QT_TRANSLATE_NOOP('Subversion', 'Annotate'), 53 QT_TRANSLATE_NOOP('Subversion', 'Annotate'),
54 } 54 }
55 if hasattr(pysvn.wc_notify_action, 'locked'): 55 if hasattr(pysvn.wc_notify_action, 'locked'):
56 svnNotifyActionMap[pysvn.wc_notify_action.locked] = \ 56 svnNotifyActionMap[pysvn.wc_notify_action.locked] = \
57 QT_TRANSLATE_NOOP('Subversion', 'Locking') 57 QT_TRANSLATE_NOOP('Subversion', 'Locking')
68 QT_TRANSLATE_NOOP('Subversion', 'Changelist set') 68 QT_TRANSLATE_NOOP('Subversion', 'Changelist set')
69 svnNotifyActionMap[pysvn.wc_notify_action.changelist_moved] = \ 69 svnNotifyActionMap[pysvn.wc_notify_action.changelist_moved] = \
70 QT_TRANSLATE_NOOP('Subversion', 'Changelist moved') 70 QT_TRANSLATE_NOOP('Subversion', 'Changelist moved')
71 71
72 svnStatusMap = { 72 svnStatusMap = {
73 pysvn.wc_status_kind.added: \ 73 pysvn.wc_status_kind.added:
74 QT_TRANSLATE_NOOP('Subversion', 'added'), 74 QT_TRANSLATE_NOOP('Subversion', 'added'),
75 pysvn.wc_status_kind.conflicted: \ 75 pysvn.wc_status_kind.conflicted:
76 QT_TRANSLATE_NOOP('Subversion', 'conflict'), 76 QT_TRANSLATE_NOOP('Subversion', 'conflict'),
77 pysvn.wc_status_kind.deleted: \ 77 pysvn.wc_status_kind.deleted:
78 QT_TRANSLATE_NOOP('Subversion', 'deleted'), 78 QT_TRANSLATE_NOOP('Subversion', 'deleted'),
79 pysvn.wc_status_kind.external: \ 79 pysvn.wc_status_kind.external:
80 QT_TRANSLATE_NOOP('Subversion', 'external'), 80 QT_TRANSLATE_NOOP('Subversion', 'external'),
81 pysvn.wc_status_kind.ignored: \ 81 pysvn.wc_status_kind.ignored:
82 QT_TRANSLATE_NOOP('Subversion', 'ignored'), 82 QT_TRANSLATE_NOOP('Subversion', 'ignored'),
83 pysvn.wc_status_kind.incomplete: \ 83 pysvn.wc_status_kind.incomplete:
84 QT_TRANSLATE_NOOP('Subversion', 'incomplete'), 84 QT_TRANSLATE_NOOP('Subversion', 'incomplete'),
85 pysvn.wc_status_kind.missing: \ 85 pysvn.wc_status_kind.missing:
86 QT_TRANSLATE_NOOP('Subversion', 'missing'), 86 QT_TRANSLATE_NOOP('Subversion', 'missing'),
87 pysvn.wc_status_kind.merged: \ 87 pysvn.wc_status_kind.merged:
88 QT_TRANSLATE_NOOP('Subversion', 'merged'), 88 QT_TRANSLATE_NOOP('Subversion', 'merged'),
89 pysvn.wc_status_kind.modified: \ 89 pysvn.wc_status_kind.modified:
90 QT_TRANSLATE_NOOP('Subversion', 'modified'), 90 QT_TRANSLATE_NOOP('Subversion', 'modified'),
91 pysvn.wc_status_kind.none: \ 91 pysvn.wc_status_kind.none:
92 QT_TRANSLATE_NOOP('Subversion', 'normal'), 92 QT_TRANSLATE_NOOP('Subversion', 'normal'),
93 pysvn.wc_status_kind.normal: \ 93 pysvn.wc_status_kind.normal:
94 QT_TRANSLATE_NOOP('Subversion', 'normal'), 94 QT_TRANSLATE_NOOP('Subversion', 'normal'),
95 pysvn.wc_status_kind.obstructed: \ 95 pysvn.wc_status_kind.obstructed:
96 QT_TRANSLATE_NOOP('Subversion', 'type error'), 96 QT_TRANSLATE_NOOP('Subversion', 'type error'),
97 pysvn.wc_status_kind.replaced: \ 97 pysvn.wc_status_kind.replaced:
98 QT_TRANSLATE_NOOP('Subversion', 'replaced'), 98 QT_TRANSLATE_NOOP('Subversion', 'replaced'),
99 pysvn.wc_status_kind.unversioned: \ 99 pysvn.wc_status_kind.unversioned:
100 QT_TRANSLATE_NOOP('Subversion', 'unversioned'), 100 QT_TRANSLATE_NOOP('Subversion', 'unversioned'),
101 } 101 }

eric ide

mercurial