Skip to content

Commit 364462e

Browse files
committed
Type Cleanup: add ability to rename types
1 parent a2938fe commit 364462e

File tree

3 files changed

+223
-63
lines changed

3 files changed

+223
-63
lines changed

TypeCleanup/po/template.pot

Lines changed: 57 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2019-12-24 11:34-0600\n"
11+
"POT-Creation-Date: 2019-12-26 10:52-0600\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -25,121 +25,145 @@ msgstr ""
2525
msgid "Clean up (remove) custom types"
2626
msgstr ""
2727

28-
#: TypeCleanup/type_cleanup.py:90
28+
#: TypeCleanup/type_cleanup.py:94
2929
msgid "Event Attributes"
3030
msgstr ""
3131

32-
#: TypeCleanup/type_cleanup.py:91
32+
#: TypeCleanup/type_cleanup.py:95
3333
msgid "Family Attributes"
3434
msgstr ""
3535

36-
#: TypeCleanup/type_cleanup.py:92
36+
#: TypeCleanup/type_cleanup.py:96
3737
msgid "Media Attributes"
3838
msgstr ""
3939

40-
#: TypeCleanup/type_cleanup.py:93
40+
#: TypeCleanup/type_cleanup.py:97
4141
msgid "Person Attributes"
4242
msgstr ""
4343

44-
#: TypeCleanup/type_cleanup.py:95
44+
#: TypeCleanup/type_cleanup.py:99
4545
msgid "Event Roles"
4646
msgstr ""
4747

48-
#: TypeCleanup/type_cleanup.py:96
48+
#: TypeCleanup/type_cleanup.py:100
4949
msgid "Event Types"
5050
msgstr ""
5151

52-
#: TypeCleanup/type_cleanup.py:97
52+
#: TypeCleanup/type_cleanup.py:101
5353
msgid "Family Relation Types"
5454
msgstr ""
5555

56-
#: TypeCleanup/type_cleanup.py:98
56+
#: TypeCleanup/type_cleanup.py:102
5757
msgid "Child reference Types"
5858
msgstr ""
5959

60-
#: TypeCleanup/type_cleanup.py:99
60+
#: TypeCleanup/type_cleanup.py:103
6161
msgid "Name Origin Types"
6262
msgstr ""
6363

64-
#: TypeCleanup/type_cleanup.py:100
64+
#: TypeCleanup/type_cleanup.py:104
6565
msgid "Name Types"
6666
msgstr ""
6767

68-
#: TypeCleanup/type_cleanup.py:101
68+
#: TypeCleanup/type_cleanup.py:105
6969
msgid "Note Types"
7070
msgstr ""
7171

72-
#: TypeCleanup/type_cleanup.py:102
72+
#: TypeCleanup/type_cleanup.py:106
7373
msgid "Place Types"
7474
msgstr ""
7575

76-
#: TypeCleanup/type_cleanup.py:103
76+
#: TypeCleanup/type_cleanup.py:107
7777
msgid "Repository Types"
7878
msgstr ""
7979

80-
#: TypeCleanup/type_cleanup.py:104
80+
#: TypeCleanup/type_cleanup.py:108
8181
msgid "Source Attributes"
8282
msgstr ""
8383

84-
#: TypeCleanup/type_cleanup.py:105
84+
#: TypeCleanup/type_cleanup.py:109
8585
msgid "Source Media Types"
8686
msgstr ""
8787

88-
#: TypeCleanup/type_cleanup.py:106
88+
#: TypeCleanup/type_cleanup.py:110
8989
msgid "URL Types"
9090
msgstr ""
9191

92-
#: TypeCleanup/type_cleanup.py:118
92+
#: TypeCleanup/type_cleanup.py:122
9393
msgid "Types Cleanup Tool"
9494
msgstr ""
9595

96-
#: TypeCleanup/type_cleanup.py:145
96+
#: TypeCleanup/type_cleanup.py:158
9797
msgid "Remove"
9898
msgstr ""
9999

100-
#: TypeCleanup/type_cleanup.py:146
101-
msgid "Remove the selected type"
100+
#: TypeCleanup/type_cleanup.py:160
101+
msgid ""
102+
"Remove the selected type from the db.\n"
103+
"This does not change any referenced objects."
104+
msgstr ""
105+
106+
#: TypeCleanup/type_cleanup.py:168
107+
msgid ""
108+
"Select a new name for the current type, prior to renaming the type in the "
109+
"referenced objects."
102110
msgstr ""
103111

104-
#: TypeCleanup/type_cleanup.py:150
112+
#: TypeCleanup/type_cleanup.py:176
113+
msgid "Rename"
114+
msgstr ""
115+
116+
#: TypeCleanup/type_cleanup.py:179
117+
msgid "Rename the selected type in all referenced objects."
118+
msgstr ""
119+
120+
#: TypeCleanup/type_cleanup.py:182
105121
msgid "Close"
106122
msgstr ""
107123

108-
#: TypeCleanup/type_cleanup.py:151
124+
#: TypeCleanup/type_cleanup.py:183
109125
msgid "Close the Type Cleanup Tool"
110126
msgstr ""
111127

112-
#: TypeCleanup/type_cleanup.py:155
128+
#: TypeCleanup/type_cleanup.py:189
113129
msgid "Types"
114130
msgstr ""
115131

116-
#: TypeCleanup/type_cleanup.py:172
132+
#: TypeCleanup/type_cleanup.py:208
117133
msgid "Type"
118134
msgstr ""
119135

120-
#: TypeCleanup/type_cleanup.py:179
136+
#: TypeCleanup/type_cleanup.py:215
121137
msgid "References"
122138
msgstr ""
123139

124-
#: TypeCleanup/type_cleanup.py:196
140+
#: TypeCleanup/type_cleanup.py:236
125141
msgid "Type Cleanup Tool"
126142
msgstr ""
127143

128-
#: TypeCleanup/type_cleanup.py:218
144+
#: TypeCleanup/type_cleanup.py:265
129145
msgid "Reading database..."
130146
msgstr ""
131147

132-
#: TypeCleanup/type_cleanup.py:288
148+
#: TypeCleanup/type_cleanup.py:377
149+
#, python-format
150+
msgid "Changing type from %(old_type)s to %(new_type)s."
151+
msgstr ""
152+
153+
#: TypeCleanup/type_cleanup.py:422
133154
msgid ""
134155
"Removing this custom type will eliminate it from the type selection drop "
135-
"down lists. However, it will not remove it from the referenced items in the "
136-
"database."
156+
"down lists\n"
157+
"and further runs of this tool.\n"
158+
"\n"
159+
"However, it will not remove it from the referenced items in the database.\n"
160+
"If you want to change it in referenced items, use 'Rename'."
137161
msgstr ""
138162

139-
#: TypeCleanup/type_cleanup.py:291
163+
#: TypeCleanup/type_cleanup.py:427
140164
msgid "_Remove"
141165
msgstr ""
142166

143-
#: TypeCleanup/type_cleanup.py:291
167+
#: TypeCleanup/type_cleanup.py:427
144168
msgid "_Stop"
145169
msgstr ""

TypeCleanup/type_cleanup.gpr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
id = 'typecleanup',
2929
name = _("Type Cleanup"),
3030
description = _("Clean up (remove) custom types"),
31-
version = '1.0.1',
31+
version = '1.0.2',
3232
gramps_target_version = '5.1',
3333
status = STABLE,
3434
fname = 'type_cleanup.py',

0 commit comments

Comments
 (0)