[Yum-devel] Re: [yum-git] po/da.po yum/rpmtrans.py

Jeremy Katz katzj at redhat.com
Tue Mar 25 11:41:51 UTC 2008


On Tue, 2008-03-25 at 07:11 -0400, Tim Lauridsen wrote:
> @@ -67,14 +68,15 @@ class RPMBaseCallback:
>      Base class for a RPMTransaction display callback class
>      '''
>      def __init__(self):
> -        self.action = { TS_UPDATE : 'Updating', 
> -                        TS_ERASE: 'Erasing',
> -                        TS_INSTALL: 'Installing', 
> -                        TS_TRUEINSTALL : 'Installing',
> -                        TS_OBSOLETED: 'Obsoleted',
> -                        TS_OBSOLETING: 'Installing',
> -                        TS_UPDATED: 'Cleanup',
> -                        'repackaging': 'Repackaging'}
> +        self.action = { TS_UPDATE : _('Updating'), 
> +                        TS_ERASE: _('Erasing'),
> +                        TS_INSTALL: _('Installing'), 
> +                        TS_TRUEINSTALL : _('Installing'),
> +                        TS_OBSOLETED: _('Obsoleted'),
> +                        TS_OBSOLETING: _('Installing'),
> +                        TS_UPDATED: _('Cleanup'),
> +                        'repackaging': _('Repackaging')}
> +        # The fileaction are not translated, most sane IMHO / Tim
>          self.fileaction = { TS_UPDATE: 'Updated', 
>                              TS_ERASE: 'Erased',
>                              TS_INSTALL: 'Installed', 

Generally, it's frowned upon to do the sort of string munging that we do
with these once you're starting to use translations.  Different locales
have needs for different subject-verb ordering and so we should probably
change things so that we have the entire string to be translated, rather
than just single words

Jeremy




More information about the Yum-devel mailing list