# How to translate python expressions?

**URL:** https://discuss.tryton.org/t/how-to-translate-python-expressions/9195
**Category:** Organisation
**Created:** [April 10, 2026, 7:58am UTC](https://discuss.tryton.org/t/how-to-translate-python-expressions/9195 "2026-04-10T07:58:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [April 10, 2026, 7:58am UTC](https://discuss.tryton.org/t/how-to-translate-python-expressions/9195/1 "2026-04-10T07:58:42Z")

</div>

While translating the new `account_payment_check` module I found it includes some [python expresions to translate](https://translate.tryton.org/translate/tryton/account_payment_check/es/?checksum=1d1b364b0d0cf043)

Should we translate them or we should leave them as is?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 10, 2026, 8:59am UTC](https://discuss.tryton.org/t/how-to-translate-python-expressions/9195/2 "2026-04-10T08:59:34Z")

</div>

Indeed it is unexpected translations.  
I had to use relatorio links because it is in a `<draw/>` (which does not allow placeholder). Relatorio checks that the text of a relatorio link has the same content as the `href`. But it makes no sense to translate such text as it will be replaced when rendered.  
The best would be to exclude them when extracting the translations.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 10, 2026, 9:07am UTC](https://discuss.tryton.org/t/how-to-translate-python-expressions/9195/3 "2026-04-10T09:07:23Z")

</div>

But for now I would just put the same content as translation.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [April 10, 2026, 11:56am UTC](https://discuss.tryton.org/t/how-to-translate-python-expressions/9195/4 "2026-04-10T11:56:01Z")

</div>

I filled [Do not extract relatorio link's text as translation source (!3250) · Merge requests · Tryton / Tryton · GitLab](https://foss.heptapod.net/tryton/tryton/-/merge_requests/3250) which fixes for me.  
It will be great if you can review/merge and sync translations so we can avoid having the translations for the next release.
