Skip to content

Commit 617c7ef

Browse files
Fix: Translate dashboard titles in toolbar and panel instead of displaying the “key” (#875)
1 parent c5e798b commit 617c7ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/js/pimcore/layout/portal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ pimcore.layout.portal = Class.create({
124124
this.panel = Ext.create('Portal.view.PortalPanel', {
125125
id: "pimcore_portal_" + this.key,
126126
layout: 'column',
127-
title: this.key == "welcome" ? t("welcome") : this.key,
127+
title: t(this.key),
128128
border: true,
129129
bodyCls: 'x-portal-body',
130130
iconCls: "pimcore_icon_welcome",

public/js/pimcore/layout/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pimcore.layout.toolbar = Class.create({
9292
var data = Ext.decode(response.responseText);
9393
for (var i = 0; i < data.length; i++) {
9494
this.dashboardMenu.menu.add({
95-
text: data[i],
95+
text: t(data[i]),
9696
iconCls: "pimcore_nav_icon_dashboards",
9797
itemId: 'pimcore_menu_file_dashboards_custom_' + data[i],
9898
handler: function (key) {

0 commit comments

Comments
 (0)