changed named arguments instead of positonal arguments for string formatting.

The localization system doesn't like positional arguments for string formatting

contributes to #CURA-526
This commit is contained in:
Tamara Hogenhout 2016-01-06 14:33:20 +01:00
parent b2ef5c1afb
commit 0e69447c75

View File

@ -250,7 +250,7 @@ class CuraApplication(QtApplication):
@pyqtProperty(str, notify = sceneBoundingBoxChanged)
def getSceneBoundingBoxString(self):
return self._i18n_catalog.i18nc("@info", "%.1f x %.1f x %.1f mm") % (self._scene_boundingbox.width.item(), self._scene_boundingbox.depth.item(), self._scene_boundingbox.height.item())
return self._i18n_catalog.i18nc("@info", "%(width).1f x %(depth).1f x %(height).1f mm") % {'width' : self._scene_boundingbox.width.item(), 'depth': self._scene_boundingbox.depth.item(), 'height' : self._scene_boundingbox.height.item()}
def updatePlatformActivity(self, node = None):
count = 0