Skip to content
Snippets Groups Projects
Commit 8fff5b81 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix transfer view translation

parent add30b3d
No related branches found
No related tags found
1 merge request!7750.50.0
from PyQt5.QtWidgets import QWidget, QDialogButtonBox
from PyQt5.QtGui import QRegExpValidator
from PyQt5.QtCore import QT_TRANSLATE_NOOP, QRegExp
from PyQt5.QtCore import QT_TRANSLATE_NOOP, QRegExp, QCoreApplication
from .transfer_uic import Ui_TransferMoneyWidget
from enum import Enum
from sakia.gui.widgets import toast
......@@ -189,7 +189,7 @@ class TransferView(QWidget, Ui_TransferMoneyWidget):
button_box_state = TransferView._button_box_values[state]
self.button_box.button(QDialogButtonBox.Ok).setEnabled(button_box_state[0])
self.button_box.button(QDialogButtonBox.Ok).setText(
button_box_state[1].format(**kwargs)
QCoreApplication.translate("TransferView", button_box_state[1]).format(**kwargs)
)
async def show_success(self, notification, recipient):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment