Translation ERROR when they being loaded

Want to load a language, between the process it shows this error.

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, in dispatch_request
    return endpoint(request, **request.view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/dispatcher.py", line 46, in rpc
    return methods.get(request.rpc_method, _dispatch)(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/wsgi.py", line 84, in auth_required
    return wrapped(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/wrappers.py", line 181, in wrapper
    return func(request, pool, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/model/modelview.py", line 775, in wrapper
    return func(cls, records, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/ir/lang.py", line 214, in load_translations
    load_translations(pool, node, codes)
  File "/trytond/modules/__init__.py", line 184, in load_translations
    Translation.translation_import(language, module, files)
  File "/trytond/ir/translation.py", line 798, in translation_import
    translation, res_id = cls.from_poentry(entry)
                          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/trytond/ir/translation.py", line 704, in from_poentry
    ttype, name, res_id = entry.msgctxt.split(':')
    ^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 2)

There is probably an error in the .po file loaded because on of its entry is not correctly formatted. It should be something like

msgctxt "field:res.role,groups:"
msgid "Groups"
msgstr "Groupes"

Note that there are two : in the msgctxt line.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.