diff --git a/src/Mod/Tux/NavigationIndicatorGui.py b/src/Mod/Tux/NavigationIndicatorGui.py index 6435e94544..500cca0d61 100644 --- a/src/Mod/Tux/NavigationIndicatorGui.py +++ b/src/Mod/Tux/NavigationIndicatorGui.py @@ -30,16 +30,37 @@ statusBar = mw.statusBar() p = App.ParamGet("User parameter:Tux/NavigationIndicator") pView = App.ParamGet("User parameter:BaseApp/Preferences/View") -t0 = "Navigation style not recognized." +try: + _encoding = QtGui.QApplication.UnicodeUTF8 -t1 = str("""
OpenInventor navigation style
+ def translate(context, text): + "convenience function for Qt 4 translator" + return QtGui.QApplication.translate(context, text, None, _encoding) +except AttributeError: + def translate(context, text): + "convenience function for Qt 5 translator" + return QtGui.QApplication.translate(context, text, None) + +text01 = translate("NavigationIndicator", "Select") +text02 = translate("NavigationIndicator", "Zoom") +text03 = translate("NavigationIndicator", "Rotate") +text04 = translate("NavigationIndicator", "Pan") +text05 = translate("NavigationIndicator", "Tilt") +text06 = translate("NavigationIndicator", "navigation style") +text07 = translate("NavigationIndicator", "Page Up or Page Down key.") +text08 = translate("NavigationIndicator", "Rotation focus") +text09 = translate("NavigationIndicator", "Middle mouse button or key H.") + +t0 = translate("NavigationIndicator", "Navigation style not recognized.") + +t1 = "OpenInventor " + text06 + """
| Select | -Zoom | -Zoom | -Rotate | -Pan | +""" + text01 + """ | +""" + text02 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text04 + """ |
|---|---|---|---|---|---|---|---|---|---|
CAD navigation style
+t2 = "CAD " + text06 + """
| Select | -Zoom | -Rotate | -Rotate | -Pan | +""" + text01 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text03 + """ | +""" + text04 + """ |
|---|---|---|---|---|---|---|---|---|---|
Blender navigation style
+t3 = "Blender " + text06 + """
| Select | -Zoom | -Rotate | -Pan | -Pan | +""" + text01 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text04 + """ | +""" + text04 + """ |
|---|---|---|---|---|---|---|---|---|---|
MayaGesture navigation style
+t4 = "MayaGesture " + text06 + """
| Select | -Zoom | -Zoom | -Rotate | -Pan | -Tilt | +""" + text01 + """ | +""" + text02 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text04 + """ | +""" + text05 + """ |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Select | -Zoom | -Rotate | -Pan | -Pan | -Tilt | +""" + text01 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text04 + """ | +""" + text04 + """ | +""" + text05 + """ |
Zoom: Page Up or Page Down key.
-Rotation focus: Middle mouse button or key H.
""" + text02 + ": " + text07 + """
+""" + text08 + ": " + text09 + "
Touchpad navigation style
+t5 = "Touchpad " + text06 + """
| Select | -Zoom | -Zoom | -Rotate | -Rotate | -Pan | +""" + text01 + """ | +""" + text02 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text03 + """ | +""" + text04 + """ |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Select | -Zoom | -Rotate | -Rotate | -Pan | +""" + text01 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text03 + """ | +""" + text04 + """ | ||
Zoom: Page Up or Page Down key.
""") +""" + text02 + ": " + text07 + "
" -t6 = str("""Gesture navigation style
+t6 = "Gesture " + text06 + """
| Select | -Zoom | -Rotate | -Rotate | -Pan | -Tilt | +""" + text01 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text03 + """ | +""" + text04 + """ | +""" + text05 + """ |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Select | -Zoom | -Rotate | -Pan | -Pan | -Tilt | +""" + text01 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text04 + """ | +""" + text04 + """ | +""" + text05 + """ |
Zoom: Page Up or Page Down key.
-Rotation focus: Middle mouse button or key H.
""" + text02 + ": " + text07 + """
+""" + text08 + ": " + text09 + "
OpenCascade navigation style
+t7 = "OpenCascade " + text06 + """
| Select | -Zoom | -Zoom | -Rotate | -Pan | -Pan | +""" + text01 + """ | +""" + text02 + """ | +""" + text02 + """ | +""" + text03 + """ | +""" + text04 + """ | +""" + text04 + """ |
|---|---|---|---|---|---|---|---|---|---|---|---|