Some rtl and translate issues

rtl to indent - you need to reverse the direction of the arrow in the buttons
image

The message that indentation is given only in the list is not translatable
image

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?

1 Like

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.

1 Like

Sorry. In English itā€™s ā€œdiscardā€.
But I didnā€™t find where it can be translated.

image

The translation comes from Qt.

1 Like

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:
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.