# Some rtl and translate issues

**URL:** <https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892>\
**Category:** Help\
**Created:** [December 27, 2023, 8:50pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892 "2023-12-27T20:50:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 27, 2023, 8:50pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/1 "2023-12-27T20:50:23Z")

</div>

rtl to indent - you need to reverse the direction of the arrow in the buttons  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/5/7/575a664f13e4463e4c54b8e046e9c9180d6b36f1.png)

The message that indentation is given only in the list is not translatable  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/4/04c768ad7e96be4d0f2904a1e8e26340092644ec.png)

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 28, 2023, 1:20am UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/2 "2023-12-28T01:20:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 28, 2023, 6:49am UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/3 "2023-12-28T06:49:15Z")

</div>

Thanks, logged on [Some minor RTL issues · Issue #2917 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/2917)

What do you mean by the ‘forget’ button?

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 28, 2023, 12:05pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/4 "2023-12-28T12:05:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sprvlcn](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sprvlcn](https://forums.ankiweb.net/u/sprvlcn)\
**Post date:** [December 28, 2023, 12:10pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/5 "2023-12-28T12:10:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 28, 2023, 5:28pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/6 "2023-12-28T17:28:33Z")

</div>

Sorry. In English it’s “discard”.  
But I didn’t find where it can be translated.

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/b/0b36d04ab82a9724e4b421ac351e1496c1ebf9ed.png)

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [December 28, 2023, 7:34pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/7 "2023-12-28T19:34:22Z")

</div>

The translation comes from Qt.

---

<div class="post-metadata">

**Author:** ![MIZMU](https://avatars.discourse-cdn.com/v4/letter/m/7993a0/32.png) [@MIZMU](https://forums.ankiweb.net/u/MIZMU)\
**Post date:** [December 28, 2023, 7:53pm UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/8 "2023-12-28T19:53:59Z")

</div>

It needs to be changed.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [December 30, 2023, 12:49am UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/9 "2023-12-30T00:49:51Z")

</div>

@abdo it looks like we can override the Qt label, so we could replace it with an ftl string. PoC:

```diff
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:

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [January 29, 2024, 12:50am UTC](https://forums.ankiweb.net/t/some-rtl-and-translate-issues/38892/10 "2024-01-29T00:50:37Z")

</div>

Closed on January 29, 2024, 12:50am UTC

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