[jhbuild] Make strings easier for translators



commit f9b5f1576b1c466db35044cb26e0cc4a233c45a7
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Wed Aug 3 09:55:51 2011 +0200

    Make strings easier for translators
    
    GNOME bug #655484

 jhbuild/modtypes/__init__.py |    8 ++++----
 jhbuild/modtypes/linux.py    |    6 ++++--
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/jhbuild/modtypes/__init__.py b/jhbuild/modtypes/__init__.py
index 824d152..6c9fc71 100644
--- a/jhbuild/modtypes/__init__.py
+++ b/jhbuild/modtypes/__init__.py
@@ -120,15 +120,15 @@ def get_branch(node, repositories, default_repo, config):
             repo = repositories[childnode.getAttribute('repo')]
         except KeyError:
             raise UndefinedRepositoryError(
-                _('Repository=%s not found for module id=%s. Possible repositories are %s')
-                  % (childnode.getAttribute('repo'), name, repositories))
+                _('Repository=%(missing)s not found for module id=%(module)s. Possible repositories are %(possible)s'
+                  % {'missing': childnode.getAttribute('repo'), 'module': name, 'possible': repositories}))
     else:
         try:
             repo = repositories[default_repo]
         except KeyError:
             raise UndefinedRepositoryError(
-                _('Default Repository=%s not found for module id=%s. Possible repositories are %s')
-                % (default_repo, name, repositories))
+                _('Default repository=%(missing)s not found for module id=%(module)s. Possible repositories are %(possible)s'
+                  % {'missing': default_repo, 'module': name, 'possible': repositories}))
 
     if repo.mirrors:
         mirror_type = config.mirror_policy
diff --git a/jhbuild/modtypes/linux.py b/jhbuild/modtypes/linux.py
index a186582..f3c2da4 100644
--- a/jhbuild/modtypes/linux.py
+++ b/jhbuild/modtypes/linux.py
@@ -240,12 +240,14 @@ def get_kconfigs(node, repositories, default_repo):
             try:
                 repo = repositories[repo_name]
             except KeyError:
-                raise FatalError(_('Repository=%s not found for kconfig in linux id=%s. Possible repositories are %s') % (repo_name, id, repositories))
+                raise FatalError(_('Repository=%(missing)s not found for kconfig in linux id=%(linux_id)s. Possible repositories are %(possible)s'
+                                    % {'missing': repo_name, 'linux_id': id, 'possible': repositories}))
         else:
             try:
                 repo = repositories[default_repo]
             except KeyError:
-                raise FatalError(_('Default Repository=%s not found for kconfig in module id=%s. Possible repositories are %s') % (default_repo, id, repositories))
+                raise FatalError(_('Default repository=%(missing)s not found for kconfig in linux id=%(linux_id)s. Possible repositories are %(possible)s'
+                                   % {'missing': default_repo, 'linux_id': id, 'possible': repositories}))
 
         branch = repo.branch_from_xml(id, childnode, repositories, default_repo)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]