14
14
15
15
from collections import OrderedDict
16
16
from django .urls import reverse
17
- from django .utils .translation import ugettext_lazy as _
18
- from django .utils .translation import ungettext_lazy
17
+ from django .utils .translation import gettext_lazy as _
18
+ from django .utils .translation import ngettext_lazy
19
19
20
20
from horizon import tables
21
21
from horizon import tabs
@@ -40,15 +40,15 @@ class DeleteService(tables.DeleteAction):
40
40
41
41
@staticmethod
42
42
def action_present (count ):
43
- return ungettext_lazy (
43
+ return ngettext_lazy (
44
44
u"Delete Service" ,
45
45
u"Delete Services" ,
46
46
count
47
47
)
48
48
49
49
@staticmethod
50
50
def action_past (count ):
51
- return ungettext_lazy (
51
+ return ngettext_lazy (
52
52
u"Deleted Service" ,
53
53
u"Deleted Services" ,
54
54
count
@@ -102,15 +102,15 @@ class DeleteGroup(tables.DeleteAction):
102
102
103
103
@staticmethod
104
104
def action_present (count ):
105
- return ungettext_lazy (
105
+ return ngettext_lazy (
106
106
u"Delete Group" ,
107
107
u"Delete Groups" ,
108
108
count
109
109
)
110
110
111
111
@staticmethod
112
112
def action_past (count ):
113
- return ungettext_lazy (
113
+ return ngettext_lazy (
114
114
u"Deleted Group" ,
115
115
u"Deleted Groups" ,
116
116
count
@@ -189,15 +189,15 @@ class DeleteServiceThreshold(tables.DeleteAction):
189
189
190
190
@staticmethod
191
191
def action_present (count ):
192
- return ungettext_lazy (
192
+ return ngettext_lazy (
193
193
u"Delete Service Threshold" ,
194
194
u"Delete Service Thresholds" ,
195
195
count
196
196
)
197
197
198
198
@staticmethod
199
199
def action_past (count ):
200
- return ungettext_lazy (
200
+ return ngettext_lazy (
201
201
u"Deleted Service Threshold" ,
202
202
u"Deleted Service Thresholds" ,
203
203
count
@@ -216,15 +216,15 @@ class DeleteFieldThreshold(tables.DeleteAction):
216
216
217
217
@staticmethod
218
218
def action_present (count ):
219
- return ungettext_lazy (
219
+ return ngettext_lazy (
220
220
u"Delete Field Threshold" ,
221
221
u"Delete Field Thresholds" ,
222
222
count
223
223
)
224
224
225
225
@staticmethod
226
226
def action_past (count ):
227
- return ungettext_lazy (
227
+ return ngettext_lazy (
228
228
u"Deleted Field Threshold" ,
229
229
u"Deleted Field Thresholds" ,
230
230
count
@@ -356,15 +356,15 @@ class DeleteField(tables.DeleteAction):
356
356
357
357
@staticmethod
358
358
def action_present (count ):
359
- return ungettext_lazy (
359
+ return ngettext_lazy (
360
360
u"Delete Field" ,
361
361
u"Delete Fields" ,
362
362
count
363
363
)
364
364
365
365
@staticmethod
366
366
def action_past (count ):
367
- return ungettext_lazy (
367
+ return ngettext_lazy (
368
368
u"Deleted Field" ,
369
369
u"Deleted Fields" ,
370
370
count
@@ -428,15 +428,15 @@ class DeleteMapping(tables.DeleteAction):
428
428
429
429
@staticmethod
430
430
def action_present (count ):
431
- return ungettext_lazy (
431
+ return ngettext_lazy (
432
432
u"Delete Mapping" ,
433
433
u"Delete Mappings" ,
434
434
count
435
435
)
436
436
437
437
@staticmethod
438
438
def action_past (count ):
439
- return ungettext_lazy (
439
+ return ngettext_lazy (
440
440
u"Deleted Mapping" ,
441
441
u"Deleted Mappings" ,
442
442
count
0 commit comments