Skip to content

Commit 6fb2dc6

Browse files
committed
Improve the styling a bit
1 parent 333bc8b commit 6fb2dc6

File tree

19 files changed

+496
-412
lines changed

19 files changed

+496
-412
lines changed

content_editor/admin.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _content_editor_context(self, request, context):
219219
"selectMultiple": gettext(
220220
"Use Ctrl-Click to select and move multiple items."
221221
),
222-
"clone": gettext("Clone plugins from another region"),
222+
"clone": gettext("Clone from region"),
223223
"selectAll": gettext("Select all"),
224224
},
225225
}
@@ -256,7 +256,10 @@ def save_related(self, request, form, formsets, change):
256256

257257
clone_form = CloneForm(request.POST)
258258
if clone_form.is_valid():
259-
clone_form.process()
259+
count = clone_form.process()
260+
self.message_user(
261+
request, gettext("Cloning {} plugins succeeded.").format(count)
262+
)
260263
else:
261264
self.message_user(
262265
request, gettext("Cloning plugins failed: {}").format(form.errors)
@@ -295,13 +298,19 @@ def process(self):
295298
ordering = self.cleaned_data.get("_clone_ordering") or 10
296299
region = self.cleaned_data["_clone_region"]
297300

301+
count = 0
302+
298303
for instance in self.cleaned_data["_clone_instances"]:
299304
instance.pk = None
300305
instance.ordering = ordering
301306
instance.region = region
302307
instance.save(force_insert=True)
303308
ordering += 10
304309

310+
count += 1
311+
312+
return count
313+
305314

306315
def allow_regions(regions):
307316
return set(regions)

content_editor/locale/ca/LC_MESSAGES/django.po

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: FeinCMS\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-06-09 16:07+0200\n"
11+
"POT-Creation-Date: 2025-08-22 10:14+0200\n"
1212
"PO-Revision-Date: 2013-10-25 09:15+0000\n"
1313
"Last-Translator: Matthias Kestenholz <[email protected]>\n"
1414
"Language-Team: Catalan (http://www.transifex.com/projects/p/feincms/language/"
@@ -19,64 +19,68 @@ msgstr ""
1919
"Content-Transfer-Encoding: 8bit\n"
2020
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
2121

22-
#: admin.py:151
22+
#: admin.py:209
2323
msgid "Add new item"
2424
msgstr "Afegir un nou element"
2525

26-
#: admin.py:152
26+
#: admin.py:210
2727
#, fuzzy
2828
#| msgid "max. items"
2929
msgid "No items."
3030
msgstr "nombre màxim"
3131

32-
#: admin.py:153
32+
#: admin.py:211
3333
msgid "No items. Region may inherit content."
3434
msgstr ""
3535

36-
#: admin.py:154
36+
#: admin.py:212
3737
msgid "No regions available."
3838
msgstr ""
3939

40-
#: admin.py:155
40+
#: admin.py:213
4141
msgid "No plugins allowed in this region."
4242
msgstr ""
4343

44-
#: admin.py:156
44+
#: admin.py:214
4545
#, fuzzy
4646
#| msgid "max. items"
4747
msgid "New item"
4848
msgstr "nombre màxim"
4949

50-
#: admin.py:157
50+
#: admin.py:215
5151
msgid "Unknown region"
5252
msgstr ""
5353

54-
#: admin.py:158
54+
#: admin.py:216
5555
#, fuzzy
5656
#| msgid "Collapse tree"
5757
msgid "Collapse all items"
5858
msgstr "Tancar l'arbre"
5959

60-
#: admin.py:159
60+
#: admin.py:217
6161
#, fuzzy
6262
#| msgid "Collapse tree"
6363
msgid "Uncollapse all items"
6464
msgstr "Tancar l'arbre"
6565

66-
#: admin.py:160
67-
msgid "Toggle sidebar"
68-
msgstr ""
69-
70-
#: admin.py:161
66+
#: admin.py:218
7167
msgid "marked for deletion"
7268
msgstr ""
7369

74-
#: admin.py:163
70+
#: admin.py:220
7571
msgid "Use Ctrl-Click to select and move multiple items."
7672
msgstr ""
7773

78-
#: admin.py:166
79-
msgid "Doubleclicking inserts an item at the end."
74+
#: admin.py:222
75+
msgid "Clone from region"
76+
msgstr ""
77+
78+
#: admin.py:223
79+
msgid "Select all"
80+
msgstr ""
81+
82+
#: admin.py:262
83+
msgid "Cloning plugins failed: {}"
8084
msgstr ""
8185

8286
#, fuzzy
@@ -244,8 +248,8 @@ msgstr ""
244248
#~ msgstr "enllaç de vídeo"
245249

246250
#~ msgid ""
247-
#~ "This should be a link to a youtube or vimeo video, i.e.: http://www."
248-
#~ "youtube.com/watch?v=zmj1rpzDRZ0"
251+
#~ "This should be a link to a youtube or vimeo video, i.e.: http://"
252+
#~ "www.youtube.com/watch?v=zmj1rpzDRZ0"
249253
#~ msgstr ""
250254
#~ "Això ha de ser un enllaç a un vídeo de Youtube o Vimeo. Per exemple: "
251255
#~ "http://www.youtube.com/watch?v=zmj1rpzDRZ0"
@@ -629,8 +633,8 @@ msgstr ""
629633

630634
#~ msgid ""
631635
#~ "\n"
632-
#~ " %(comment_username)s said on "
633-
#~ "%(comment_submit_date)s<br />\n"
636+
#~ " %(comment_username)s said on %"
637+
#~ "(comment_submit_date)s<br />\n"
634638
#~ " "
635639
#~ msgstr ""
636640
#~ "\n"

content_editor/locale/cs/LC_MESSAGES/django.po

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-06-09 16:07+0200\n"
10+
"POT-Creation-Date: 2025-08-22 10:14+0200\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -17,64 +17,68 @@ msgstr ""
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n"
1919

20-
#: admin.py:151
20+
#: admin.py:209
2121
msgid "Add new item"
2222
msgstr "Přidej novou položku"
2323

24-
#: admin.py:152
24+
#: admin.py:210
2525
#, fuzzy
2626
#| msgid "max. items"
2727
msgid "No items."
2828
msgstr "max. položek"
2929

30-
#: admin.py:153
30+
#: admin.py:211
3131
msgid "No items. Region may inherit content."
3232
msgstr ""
3333

34-
#: admin.py:154
34+
#: admin.py:212
3535
msgid "No regions available."
3636
msgstr ""
3737

38-
#: admin.py:155
38+
#: admin.py:213
3939
msgid "No plugins allowed in this region."
4040
msgstr ""
4141

42-
#: admin.py:156
42+
#: admin.py:214
4343
#, fuzzy
4444
#| msgid "max. items"
4545
msgid "New item"
4646
msgstr "max. položek"
4747

48-
#: admin.py:157
48+
#: admin.py:215
4949
msgid "Unknown region"
5050
msgstr ""
5151

52-
#: admin.py:158
52+
#: admin.py:216
5353
#, fuzzy
5454
#| msgid "Collapse tree"
5555
msgid "Collapse all items"
5656
msgstr "Rozbal strom"
5757

58-
#: admin.py:159
58+
#: admin.py:217
5959
#, fuzzy
6060
#| msgid "Collapse tree"
6161
msgid "Uncollapse all items"
6262
msgstr "Rozbal strom"
6363

64-
#: admin.py:160
65-
msgid "Toggle sidebar"
66-
msgstr ""
67-
68-
#: admin.py:161
64+
#: admin.py:218
6965
msgid "marked for deletion"
7066
msgstr ""
7167

72-
#: admin.py:163
68+
#: admin.py:220
7369
msgid "Use Ctrl-Click to select and move multiple items."
7470
msgstr ""
7571

76-
#: admin.py:166
77-
msgid "Doubleclicking inserts an item at the end."
72+
#: admin.py:222
73+
msgid "Clone from region"
74+
msgstr ""
75+
76+
#: admin.py:223
77+
msgid "Select all"
78+
msgstr ""
79+
80+
#: admin.py:262
81+
msgid "Cloning plugins failed: {}"
7882
msgstr ""
7983

8084
#, fuzzy
@@ -258,11 +262,11 @@ msgstr ""
258262
#~ msgstr "odkaz na video"
259263

260264
#~ msgid ""
261-
#~ "This should be a link to a youtube or vimeo video, i.e.: http://www."
262-
#~ "youtube.com/watch?v=zmj1rpzDRZ0"
265+
#~ "This should be a link to a youtube or vimeo video, i.e.: http://"
266+
#~ "www.youtube.com/watch?v=zmj1rpzDRZ0"
263267
#~ msgstr ""
264-
#~ "Toto má být odkaz na youtube nebo vimeo video, např. http://www.youtube."
265-
#~ "com/watch?v=zmj1rpzDRZ0"
268+
#~ "Toto má být odkaz na youtube nebo vimeo video, např. http://"
269+
#~ "www.youtube.com/watch?v=zmj1rpzDRZ0"
266270

267271
#~ msgid "video"
268272
#~ msgstr "video"
@@ -358,11 +362,11 @@ msgstr ""
358362
#~ msgstr "překlady"
359363

360364
#~ msgid ""
361-
#~ "Cannot overwrite with different file type (attempt to overwrite a "
362-
#~ "%(old_ext)s with a %(new_ext)s)"
365+
#~ "Cannot overwrite with different file type (attempt to overwrite a %"
366+
#~ "(old_ext)s with a %(new_ext)s)"
363367
#~ msgstr ""
364-
#~ "Nemůže být přepsán jiným typem (pokoušíš se přepsat %(old_ext)s s "
365-
#~ "%(new_ext)s)"
368+
#~ "Nemůže být přepsán jiným typem (pokoušíš se přepsat %(old_ext)s s %"
369+
#~ "(new_ext)s)"
366370

367371
#~ msgid "Successfully added %(count)d media file to %(category)s."
368372
#~ msgid_plural "Successfully added %(count)d media files to %(category)s."
@@ -563,11 +567,11 @@ msgstr ""
563567
#, fuzzy
564568
#~ msgid ""
565569
#~ "Really change template? <br />All changes are saved and content from "
566-
#~ "<strong>%%(source_regions)s</strong> is moved to <strong>%"
567-
#~ "%(target_region)s</strong>."
570+
#~ "<strong>%%(source_regions)s</strong> is moved to <strong>%%"
571+
#~ "(target_region)s</strong>."
568572
#~ msgstr ""
569-
#~ "Opravdu změnit šablonu? <br />Všechny změny uloženy a obsah <strong>"
570-
#~ "%(source_regions)s</strong> je přesunut do <strong>%(target_region)s</"
573+
#~ "Opravdu změnit šablonu? <br />Všechny změny uloženy a obsah <strong>%"
574+
#~ "(source_regions)s</strong> je přesunut do <strong>%(target_region)s</"
571575
#~ "strong>."
572576

573577
#~ msgid "Hide"
@@ -682,8 +686,8 @@ msgstr ""
682686
#, fuzzy
683687
#~ msgid ""
684688
#~ "\n"
685-
#~ " %(comment_username)s said on "
686-
#~ "%(comment_submit_date)s<br />\n"
689+
#~ " %(comment_username)s said on %"
690+
#~ "(comment_submit_date)s<br />\n"
687691
#~ " "
688692
#~ msgstr "%(comment_username)s řekl v %(comment_submit_date)s <br />"
689693

14 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)