Commit 87fcf1c6 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Debug, Doc: Add windows title translate.

Showing with 10 additions and 4 deletions
+10 -4
......@@ -54,8 +54,10 @@ class ReplWindow(PamhyrWindow):
def __init__(self, study=None, config=None,
solver=None, parent=None):
title = _translate("Debug", "Debug REPL")
super(ReplWindow, self).__init__(
title=self._pamhyr_name,
title=title,
study=study,
config=config,
options=[],
......
......@@ -21,7 +21,7 @@ import sys
import logging
import subprocess
from PyQt5.QtCore import QUrl
from PyQt5.QtCore import QUrl, QCoreApplication
from PyQt5.QtGui import QDesktopServices
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QAction
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings
......@@ -30,10 +30,11 @@ from View.Tools.PamhyrWindow import PamhyrWindow
logger = logging.getLogger()
_translate = QCoreApplication.translate
class DocWindow(PamhyrWindow):
_pamhyr_ui = "WebView"
_pamhyr_name = "Doc"
_pamhyr_name = "Documentation"
@classmethod
def _path_file(cls, filename):
......@@ -55,8 +56,11 @@ class DocWindow(PamhyrWindow):
def __init__(self, filename=None,
study=None, config=None,
parent=None):
title = _translate("Documentation", "Documentation")
title += f" - {filename}"
super(DocWindow, self).__init__(
title=self._pamhyr_name,
title=title,
study=study,
config=config,
options=[],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment