Files
odoo_source/addons/transifex/data/ir_translation_view.xml
T
Goffin Simonandmart-e d2b711c1e6 [FIX] transifex: Wrong link on translations to go to transifex
Steps to reproduce the bug:

- Let's consider a user U with fr_BE as lang
- Log as U and active developper tool
- Go on any record, click on debug button
- Select Technical translation
- Choose a translation and click on the transifex url button

Bug:

The URL contained the iso code fr_BE but this iso code didn't match
any code in Transifex.

From: https://www.transifex.com/odoo/odoo-14/languages/

We can see that the only iso codes with a '_' are: 'zh_CN', 'zh_TW', 'pt_BR'

opw:2448533

closes odoo/odoo#65308

X-original-commit: d609a75ccbfaa62b6070de4769880a94d896ff73
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Co-authored-by: mart-e <mat@odoo.com>
2021-01-30 16:24:39 +00:00

31 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ir_translation_view_tree_transifex" model="ir.ui.view">
<field name="name">ir.translation.transifex</field>
<field name="model">ir.translation</field>
<field name="inherit_id" ref="base.view_translation_tree"/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="transifex_url"
widget="url"
text="Contribute"
string="Transifex" />
</field>
</field>
</record>
<record id="ir_translation_dialog_view_tree_transifex" model="ir.ui.view">
<field name="name">ir.translation.transifex</field>
<field name="model">ir.translation</field>
<field name="inherit_id" ref="base.view_translation_dialog_tree"/>
<field name="arch" type="xml">
<field name="state" position="after">
<field name="transifex_url"
widget="url"
text="Contribute"
string="Transifex" />
</field>
</field>
</record>
</odoo>