Skip to content

Commit

Permalink
Localization support.
Browse files Browse the repository at this point in the history
  • Loading branch information
N0tACyb0rg committed May 11, 2024
1 parent 8ad6795 commit a5cccfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/window/tray.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from PyQt6.QtGui import QIcon, QAction
from PyQt6.QtWidgets import QApplication, QSystemTrayIcon, QMenu

from gettext import gettext as _


class SystemTray:
def __init__(self, window):
Expand All @@ -16,7 +18,7 @@ def __init__(self, window):
tray.setVisible(True)

menu = QMenu()
self.quit_action = QAction("Quit Varia")
self.quit_action = QAction(_("Quit Varia"))
self.quit_action.triggered.connect(lambda: self.window.trayExit())
menu.addAction(self.quit_action)

Expand Down

0 comments on commit a5cccfb

Please sign in to comment.