mirror of https://gitlab.com/pamhyr/pamhyr2
Debug, Doc: Add windows title translate.
parent
8895d0d565
commit
87fcf1c610
|
|
@ -54,8 +54,10 @@ class ReplWindow(PamhyrWindow):
|
||||||
|
|
||||||
def __init__(self, study=None, config=None,
|
def __init__(self, study=None, config=None,
|
||||||
solver=None, parent=None):
|
solver=None, parent=None):
|
||||||
|
title = _translate("Debug", "Debug REPL")
|
||||||
|
|
||||||
super(ReplWindow, self).__init__(
|
super(ReplWindow, self).__init__(
|
||||||
title=self._pamhyr_name,
|
title=title,
|
||||||
study=study,
|
study=study,
|
||||||
config=config,
|
config=config,
|
||||||
options=[],
|
options=[],
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ import sys
|
||||||
import logging
|
import logging
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from PyQt5.QtCore import QUrl
|
from PyQt5.QtCore import QUrl, QCoreApplication
|
||||||
from PyQt5.QtGui import QDesktopServices
|
from PyQt5.QtGui import QDesktopServices
|
||||||
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QAction
|
from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QAction
|
||||||
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings
|
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings
|
||||||
|
|
@ -30,10 +30,11 @@ from View.Tools.PamhyrWindow import PamhyrWindow
|
||||||
|
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
|
|
||||||
|
_translate = QCoreApplication.translate
|
||||||
|
|
||||||
class DocWindow(PamhyrWindow):
|
class DocWindow(PamhyrWindow):
|
||||||
_pamhyr_ui = "WebView"
|
_pamhyr_ui = "WebView"
|
||||||
_pamhyr_name = "Doc"
|
_pamhyr_name = "Documentation"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _path_file(cls, filename):
|
def _path_file(cls, filename):
|
||||||
|
|
@ -55,8 +56,11 @@ class DocWindow(PamhyrWindow):
|
||||||
def __init__(self, filename=None,
|
def __init__(self, filename=None,
|
||||||
study=None, config=None,
|
study=None, config=None,
|
||||||
parent=None):
|
parent=None):
|
||||||
|
title = _translate("Documentation", "Documentation")
|
||||||
|
title += f" - {filename}"
|
||||||
|
|
||||||
super(DocWindow, self).__init__(
|
super(DocWindow, self).__init__(
|
||||||
title=self._pamhyr_name,
|
title=title,
|
||||||
study=study,
|
study=study,
|
||||||
config=config,
|
config=config,
|
||||||
options=[],
|
options=[],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue