diff --git a/src/mcedit2/panels/map.py b/src/mcedit2/panels/map.py index fd8d296..804cf69 100644 --- a/src/mcedit2/panels/map.py +++ b/src/mcedit2/panels/map.py @@ -77,7 +77,7 @@ class MapPanel(QtGui.QWidget, Ui_mapWidget): self.setupUi(self) icon = QtGui.QIcon(resourcePath("mcedit2/assets/mcedit2/icons/edit_map.png")) - action = QtGui.QAction(icon, "Edit Maps", self) + action = QtGui.QAction(icon, self.tr("Edit Maps"), self) action.setCheckable(True) action.triggered.connect(self.toggleView) self._toggleViewAction = action diff --git a/src/mcedit2/panels/player.py b/src/mcedit2/panels/player.py index f107f57..b9f9dd3 100644 --- a/src/mcedit2/panels/player.py +++ b/src/mcedit2/panels/player.py @@ -110,7 +110,7 @@ class PlayerPanel(QtGui.QWidget, Ui_playerWidget): self.setSelectedPlayerIndex(0) icon = QtGui.QIcon(resourcePath("mcedit2/assets/mcedit2/icons/edit_player.png")) - action = QtGui.QAction(icon, "Edit Player", self) + action = QtGui.QAction(icon, self.tr("Edit Player"), self) action.setCheckable(True) action.triggered.connect(self.toggleView) self._toggleViewAction = action