rtl to indent - you need to reverse the direction of the arrow in the buttons
The message that indentation is given only in the list is not translatable
rtl to indent - you need to reverse the direction of the arrow in the buttons
The message that indentation is given only in the list is not translatable
Also the āforgetā button when leaving the add window cannot be translated even though the meaning of forget does not correspond to it in any language.
Thanks, logged on Some minor RTL issues Ā· Issue #2917 Ā· ankitects/anki Ā· GitHub
What do you mean by the āforgetā button?
I havenāt found a place where I can translate this button specifically.
In my language, something like āexit and donāt saveā is more appropriate. āForgetā is inappropriate in this context
But in English the Add window doesnāt have any āForgetā button. Thereās Add, Close, History, Help. Iām also confused about what you mean here.
Sorry. In English itās ādiscardā.
But I didnāt find where it can be translated.
The translation comes from Qt.
It needs to be changed.
@abdo it looks like we can override the Qt label, so we could replace it with an ftl string. PoC:
diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py
index 27713a8e7..e843b1983 100644
--- a/qt/aqt/utils.py
+++ b/qt/aqt/utils.py
@@ -164,6 +164,8 @@ class MessageBox(QMessageBox):
b = self.addButton(button, QMessageBox.ButtonRole.ActionRole)
elif isinstance(button, QMessageBox.StandardButton):
b = self.addButton(button)
+ if button == QMessageBox.StandardButton.Discard:
+ b.setText("Testing")
elif isinstance(button, tuple):
b = self.addButton(button[0], button[1])
else:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.