I order to make a correct translation, can you please :
* split this sentence in 9 different sentences ?
* add a translator comment like the one you have in your code so we do not have to go search for it ;) "Print information about a package being added to the transaction set."
https://github.com/rpm-software-management/dnf/blob/master/dnf/cli/output.py#L1940
Valid current values for *mode* are::
i = the package will be installed
u = the package will be an update
e = the package will be erased
r = the package will be reinstalled
d = the package will be a downgrade
o = the package will be obsoleting another package
ud = the package will be updated
od = the package will be obsoleted
"""
modedict = {'i': _('installed'),
'u': _('an upgrade'),
'e': _('erased'),
'r': _('reinstalled'),
'd': _('a downgrade'),
'o': _('obsoleting'),
'ud': _('upgraded'),
'od': _('obsoleted'),
'dd': _('downgraded')}
(n, a, evr) = (pkg.name, pkg.arch, pkg.evr)
modeterm = modedict[mode]
logger.debug(_('---> Package %s.%s %s will be %s'), n, a, evr,
modeterm)