[Sugar-devel] [PATCH Browse] Use named parameters to enable translation in msg with multiple strings

manuel quiñones manuq at laptop.org
Fri Sep 30 12:56:26 EDT 2011


Good!

Reviewed-By: Manuel Quiñones <manuq at laptop.org>


2011/9/30  <godiard at sugarlabs.org>:
> From: Gonzalo Odiard <godiard at gmail.com>
>
> Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
> ---
>  downloadmanager.py |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/downloadmanager.py b/downloadmanager.py
> index 0fd6537..98d4f1a 100644
> --- a/downloadmanager.py
> +++ b/downloadmanager.py
> @@ -341,8 +341,9 @@ class Download:
>
>     def _create_journal_object(self):
>         self.dl_jobject = datastore.create()
> -        self.dl_jobject.metadata['title'] = _('Downloading %s from \n%s.') % \
> -                (self._get_file_name(), self._source.spec)
> +        self.dl_jobject.metadata['title'] = \
> +                _('Downloading %(file)s from \n%(source)s.') % \
> +                {'file': self._get_file_name(), 'source': self._source.spec}
>
>         self.dl_jobject.metadata['progress'] = '0'
>         self.dl_jobject.metadata['keep'] = '0'
> --
> 1.7.4.4
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
.. manuq ..


More information about the Sugar-devel mailing list