- compile
authorJan Kupec <jkupec@suse.cz>
Sat, 2 Aug 2008 18:32:08 +0000 (18:32 +0000)
committerJan Kupec <jkupec@suse.cz>
Sat, 2 Aug 2008 18:32:08 +0000 (18:32 +0000)
zypp/parser/RepoindexFileReader.cc

index 3ec50e3..a32a58c 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "zypp/base/String.h"
 #include "zypp/base/Logger.h"
+#include "zypp/base/Gettext.h"
 
 #include "zypp/RepoInfo.h"
 
@@ -110,7 +111,7 @@ namespace zypp
           path_s = s.asString();
 
         if (url_s.empty() && path_s.empty())
-          throw ParseException(_("One or both of 'url' or 'path' attributes is required."));
+          throw ParseException(str::form(_("One or both of '%s' or '%s' attributes is required."), "url", "path"));
         //! \todo FIXME this hardcodes the "/repo/" fragment - should not be if we want it to be usable by others!
         else if (url_s.empty())
           info.setPath(Pathname(string("/repo/") + path_s));