Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0] Impossible translate/override python code strings. #164736

Open
esakarya opened this issue May 7, 2024 · 7 comments
Open

[17.0] Impossible translate/override python code strings. #164736

esakarya opened this issue May 7, 2024 · 7 comments

Comments

@esakarya
Copy link

esakarya commented May 7, 2024

Impacted versions: 17

Steps to reproduce: try translate already translated phyton code string.

For eg:
https://github.com/odoo/odoo/blob/17.0/addons/website_sale/models/website.py#L603

website_sale has some wrong/missing translations on Turkish language.

i am try override or change this code translations like follow;

#. module: website_sale
#. odoo-python
#: code:addons/website_sale/models/website.py:0
#: code:addons/website_sale/models/website.py:0
#, python-format
msgid "Back to cart"
msgstr "Sepete Git"

But never help. anohter string xml qweb or temples working but pyhton code translates doesnt change.
Anyone can help ?

@Ngquang
Copy link
Contributor

Ngquang commented May 8, 2024

@esakarya You need to change value in website_sale/i18n/tr.po not in .pot file. After that, run your server and active language to load new translation.
image

@esakarya
Copy link
Author

esakarya commented May 8, 2024

lol i cant change in website_sale/i18n/tr.po, each week this translations overriding. i have to change with my addon.
only phyton formats wont change. all naother strings replacing with my addon translations.

@Ngquang
Copy link
Contributor

Ngquang commented May 8, 2024

@esakarya Yea it's a list of tuples. Might be tricky if you try to overrides this value on python. But the better way is create your own folk and do the translation on it. Transifex might be slow for update translation for field

@nguyenductamlhp
Copy link
Contributor

@esakarya This actually a bug that I met in Odoo 16. You can see this issue #124124

@ossimantylahti
Copy link
Contributor

ossimantylahti commented May 12, 2024

@esakarya Odoo gets its translations automatically (weekly) from Transiflex where official translations are maintained. The easiest workaround would be to add and / or fix the translations directly at the source. So, join the translations team, translate the module and contribute your work for everybody's benefit.

Turkish translations are here:
https://app.transifex.com/odoo/odoo-17/language/tr/

A quick check shows that Turkish translation has not been done for website_sale module.

image

In fact the translation for Turkish language for any Odoo 17 website modules is by large not done.

image

@esakarya
Copy link
Author

Dear @ossimantylahti i know that, before i submit a lot of translation there, all one of rejected. For eg: another addon translated "Send" to Send money (In Turkish), i fix this with Send rejected like joke.

@mart-e
Copy link
Contributor

mart-e commented May 17, 2024

@esakarya what to do you mean your translations are rejected? There is no terms on transifex
https://app.transifex.com/odoo/odoo-17/translate/#tr/website_sale/475607754?q=text%3A'back+to+cart'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants