i18n with gettext
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
from raven.i18n import _
|
||||
|
||||
|
||||
class RavenUI():
|
||||
# no type hint because of circular dependencies
|
||||
window = None
|
||||
@@ -11,9 +14,9 @@ class RavenUI():
|
||||
if not RavenUI.window:
|
||||
return
|
||||
if len(title) > 0:
|
||||
RavenUI.window.setWindowTitle("%s - RavenLog" % title)
|
||||
RavenUI.window.setWindowTitle(_("{0} - RavenLog").format(title))
|
||||
else:
|
||||
RavenUI.window.setWindowTitle("RavenLog")
|
||||
RavenUI.window.setWindowTitle(_("RavenLog"))
|
||||
|
||||
@staticmethod
|
||||
def update_status_bar(text: str):
|
||||
|
||||
Reference in New Issue
Block a user