Skip to content

Commit d632b27

Browse files
committed
commit
1 parent d784183 commit d632b27

File tree

27 files changed

+115
-7
lines changed

27 files changed

+115
-7
lines changed

app/base/controllers/Admin/Json/Versions.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function getJsonData(): array
9797
<div class="row">
9898
<div class="col-3 p-0 border vh-100 overflow-auto" style="border-right: 0 !important;">
9999
<div class="version-instructions p-2 text-center small text-muted border-bottom">
100-
<i class="fa fa-info-circle"></i> Ctrl+Click on two versions to compare them
100+
<i class="fa fa-info-circle"></i> '.$this->getUtils()->translate('Ctrl+Click on two versions to compare them').'
101101
</div>
102102
'.$this->getHtmlRenderer()->renderAdminTable($versionsTable, ['id' => [], 'Date' => [], 'User' => []], table_id: 'versions-table').'
103103
</div>
@@ -189,7 +189,6 @@ protected function getJsonData(): array
189189
let \$contextMenu = null;
190190
191191
function hideContextMenu() {
192-
console.log('Hide context menu');
193192
if (\$contextMenu) {
194193
\$contextMenu.remove();
195194
\$contextMenu = null;

app/site/controllers/Admin/Cms/Media.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function (&$el, $key) {
280280
$this->addActionLink(
281281
'minipaint',
282282
'minipaint',
283-
$this->getHtmlRenderer()->getIcon('edit') . ' ' . 'Image Editor',
283+
$this->getHtmlRenderer()->getIcon('edit') . ' ' . $this->getUtils()->translate('Image Editor', locale: $this->getCurrentLocale()),
284284
$linkTo,
285285
'btn btn-sm btn-light'
286286
);
@@ -290,7 +290,7 @@ function (&$el, $key) {
290290
$this->addActionLink(
291291
'pages-btn',
292292
'pages-btn',
293-
'&#9776; Pages',
293+
'&#9776; ' . $this->getUtils()->translate('Pages', locale: $this->getCurrentLocale()),
294294
$this->getUrl('crud.app.site.controllers.admin.json.mediapages', ['id' => $this->getRequest()->query->get('media_id')]) . '?media_id=' . $this->getRequest()->query->get('media_id') . '&action=page_assoc',
295295
'btn btn-sm btn-light inToolSidePanel'
296296
);

app/site/controllers/Admin/Cms/Taxonomy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function getFormDefinition(FAPI\Form $form, array &$form_state): FAPI\For
114114
$this->addActionLink(
115115
'pages-btn',
116116
'pages-btn',
117-
'&#9776; Pages',
117+
'&#9776; ' . $this->getUtils()->translate('Pages', locale: $this->getCurrentLocale()),
118118
$this->getUrl('crud.app.site.controllers.admin.json.termpages', ['id' => $this->getRequest()->query->get('term_id')]) . '?term_id=' . $this->getRequest()->query->get('term_id') . '&action=page_assoc',
119119
'btn btn-sm btn-light inToolSidePanel'
120120
);

app/site/controllers/Admin/Commerce/DownloadableProducts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getFormDefinition(FAPI\Form $form, array &$form_state): FAPI\For
9292
$this->addActionLink(
9393
'media-btn',
9494
'media-btn',
95-
'&#9776; Media',
95+
'&#9776; ' . $this->getUtils()->translate('Media', locale: $this->getCurrentLocale()),
9696
$this->getUrl('crud.app.site.controllers.admin.json.downloadablemedia', ['id' => $this->getRequest()->query->get('product_id')]) . '?product_id=' . $this->getRequest()->query->get('product_id') . '&action=new',
9797
'btn btn-sm btn-light inToolSidePanel'
9898
);

app/site/controllers/Admin/Minipaint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function process(?RouteInfo $route_info = null, array $route_data = []):
9090
$media = MediaElement::load($this->getRequest()->query->get('media_id'));
9191
$mediaMimeType = $media->getMimetype();
9292
$minipaintSaveUrl = $this->getUrl('crud.app.site.controllers.admin.minipaintsave', ['media_id' => $media->getId()]);
93-
$backUrl = $this->getUrl('admin.media'). '?' . http_build_query(['action' => 'edit', 'media_id' => $media->getId()]);
93+
$backUrl = $this->getUrl('admin.cms.media'). '?' . http_build_query(['action' => 'edit', 'media_id' => $media->getId()]);
9494

9595
$saveMessage = $this->getUtils()->translate("Save on server");
9696
$backMessage = $this->getHtmlRenderer()->getIcon('rewind', ['height' => 16]) . '&nbsp;' . $this->getUtils()->translate("Back");

scss/partials/dark-mode.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,8 @@ body.dark-mode {
237237
}
238238
}
239239
}
240+
241+
.modal-body {
242+
color: $color-darkgrey;
243+
}
240244
}

translations/ar.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,9 @@
293293
'Success' => 'نجاح',
294294
'Warning' => 'تحذير',
295295
'Notice' => 'إشعار',
296+
'Ctrl+Click on two versions to compare them' => 'اضغط Ctrl وانقر على إصدارين لمقارنتهما',
297+
'Restore' => 'استعادة',
298+
'Remove' => 'إزالة',
299+
'Pages' => 'الصفحات',
300+
'Image Editor' => 'محرر الصور',
296301
];

translations/bn.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,4 +320,9 @@
320320
'Success' => 'সফল',
321321
'Warning' => 'সতর্কতা',
322322
'Notice' => 'বিজ্ঞপ্তি',
323+
'Ctrl+Click on two versions to compare them' => 'দুটি সংস্করণ তুলনা করতে Ctrl+ক্লিক করুন',
324+
'Restore' => 'পুনরুদ্ধার',
325+
'Remove' => 'অপসারণ',
326+
'Pages' => 'পৃষ্ঠা',
327+
'Image Editor' => 'ছবি সম্পাদক',
323328
];

translations/de.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,9 @@
318318
'Success' => 'Erfolg',
319319
'Warning' => 'Warnung',
320320
'Notice' => 'Hinweis',
321+
'Ctrl+Click on two versions to compare them' => 'Strg+Klick auf zwei Versionen, um sie zu vergleichen',
322+
'Restore' => 'Wiederherstellen',
323+
'Remove' => 'Entfernen',
324+
'Pages' => 'Seiten',
325+
'Image Editor' => 'Bildeditor',
321326
];

translations/el.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,9 @@
318318
'Success' => 'Επιτυχία',
319319
'Warning' => 'Προειδοποίηση',
320320
'Notice' => 'Ειδοποίηση',
321+
'Ctrl+Click on two versions to compare them' => 'Ctrl+Κλικ σε δύο εκδόσεις για να τις συγκρίνετε',
322+
'Restore' => 'Επαναφορά',
323+
'Remove' => 'Κατάργηση',
324+
'Pages' => 'Σελίδες',
325+
'Image Editor' => 'Επεξεργαστής εικόνων',
321326
];

0 commit comments

Comments
 (0)