diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2011-10-05 03:09:53 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2011-10-05 03:09:53 +0200 |
commit | 165d248d44308f9b7620d7eb2e3d3a265ef2b812 (patch) | |
tree | 21631c59201feee5796b7903dc13d7604e65b79b | |
parent | 3a37b7c5b5d7b70777c67180279f557fd70b52f4 (diff) | |
download | portage-165d248d44308f9b7620d7eb2e3d3a265ef2b812.tar.gz portage-165d248d44308f9b7620d7eb2e3d3a265ef2b812.tar.bz2 portage-165d248d44308f9b7620d7eb2e3d3a265ef2b812.zip |
Mark some messages for translation.
-rw-r--r-- | pym/portage/repository/config.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index e3027a798..9f4ac2b65 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -390,25 +390,29 @@ class RepoConfigLoader(object): if manifest_hashes is not None: manifest_hashes = frozenset(manifest_hashes.upper().split()) if MANIFEST2_REQUIRED_HASH not in manifest_hashes: - warnings.warn(("Repository named '%s' has a " + warnings.warn((_("Repository named '%(repo_name)s' has a " "'manifest-hashes' setting that does not contain " - "the '%s' hash which is required by this " + "the '%(hash)s' hash which is required by this " "portage version. You will have to upgrade portage " "if you want to generate valid manifests for this " - "repository: %s" % (repo.name, - MANIFEST2_REQUIRED_HASH, - layout_filename)), DeprecationWarning) + "repository: %(layout_filename)s") % + {"repo_name":repo.name, + "hash":MANIFEST2_REQUIRED_HASH, + "layout_filename":layout_filename}), + DeprecationWarning) unsupported_hashes = manifest_hashes.difference( MANIFEST2_HASH_FUNCTIONS) if unsupported_hashes: - warnings.warn(("Repository named '%s' has a " + warnings.warn((_("Repository named '%(repo_name)s' has a " "'manifest-hashes' setting that contains one " - "or more hash types '%s' which are not supported by " + "or more hash types '%(hashes)s' which are not supported by " "this portage version. You will have to upgrade " "portage if you want to generate valid manifests for " - "this repository: %s" % (repo.name, - " ".join(sorted(unsupported_hashes)), - layout_filename)), DeprecationWarning) + "this repository: %(layout_filename)s") % + {"repo_name":repo.name, + "hashes":" ".join(sorted(unsupported_hashes)), + "layout_filename":layout_filename}), + DeprecationWarning) repo.manifest_hashes = manifest_hashes repo.cache_is_authoritative = layout_data.get('authoritative-cache', 'false').lower() == 'true' |