Closed luisg123v closed 1 year ago
@moylop260 @edy1192 @deivislaya @antonag32
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
We already detect duplicated source terms (msgid), thanks to
duplicate-po-message-definition
on OCA/pylint-odoo#374 , e.g.:However, when msgid's are different but comments are the same, we are not catching such cases:
Even though the latter is syntactically correct regarding PO format, it raises the same error (see OCA/pylint-odoo#289 for the full error message), because it means two terms are trying to translate the same record and field.
Note that this only applies for comments starting with:
# : model:
Other terms like the following ones don't need to be considered, because they don't refer to a specific record:
#: code:
: refers to translatable terms inside code, and code could have the same term several times. Besides, starting from v14, lines are ignored within translations, so all terms are included as if they were on line zero.#: model_terms:
: usually refers to terms inside views. Same case, the same view could have the same term in several places (e.g. page and group).