details:   https://code.tryton.org/tryton/commit/95573f6cfdb7
branch:    7.6
user:      Nicolas Évrard <[email protected]>
date:      Fri Oct 17 10:33:06 2025 +0000
description:
        Set default value of src_plural to NULL when setting translations

        Adding the new translations to the internal language should set the 
value of
        src_plural to NULL as this is the default value we use when importing 
from the
        PO files. Moreover it might happen that an empty string could be a 
valid value
        for src_plural.

        Closes #14289
        (grafted from d3380ee74626e57f1e265034ce6689e8e3971ccd)
diffstat:

 trytond/trytond/ir/translation.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 98b76b87e219 -r 95573f6cfdb7 trytond/trytond/ir/translation.py
--- a/trytond/trytond/ir/translation.py Thu Oct 09 18:50:07 2025 +0200
+++ b/trytond/trytond/ir/translation.py Fri Oct 17 10:33:06 2025 +0000
@@ -1255,7 +1255,7 @@
                         [
                             [view.model, INTERNAL_LANG,
                                 'view', string,
-                                '', '',
+                                None, '',
                                 '', '',
                                 '', view.module,
                                 False, -1]]))

Reply via email to