diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-29 18:48:39 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-05-29 18:48:39 -0400 |
commit | f0d5545df35f9974fb8c4ae572cfea831e79a358 (patch) | |
tree | 7876991786aac9479faa894c4d0f7dcb2a9cdcea /cobbler/collection_distros.py | |
parent | 201e727a1fc571f3a56763dc044a58504cc89af6 (diff) | |
download | third_party-cobbler-f0d5545df35f9974fb8c4ae572cfea831e79a358.tar.gz third_party-cobbler-f0d5545df35f9974fb8c4ae572cfea831e79a358.tar.xz third_party-cobbler-f0d5545df35f9974fb8c4ae572cfea831e79a358.zip |
Begining of i18n of cobbler. Tests pass, works with English. Need to test
translation function and run manual testing to ensure no functional errors in other
places (such as import).
cobbler_msg (strings file) has been removed.
Diffstat (limited to 'cobbler/collection_distros.py')
-rw-r--r-- | cobbler/collection_distros.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/collection_distros.py b/cobbler/collection_distros.py index dfcf8d4..3fe45ed 100644 --- a/cobbler/collection_distros.py +++ b/cobbler/collection_distros.py @@ -16,7 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. import utils import collection import item_distro as distro -import cexceptions +from cexceptions import * import action_litesync from rhpl.translate import _, N_, textdomain, utf8 @@ -49,7 +49,7 @@ class Distros(collection.Collection): # first see if any Groups use this distro for v in self.config.profiles(): if v.distro == name: - raise cexceptions.CobblerException("orphan_profile",v.name) + raise CX(_("removal would orphan profile: %s") % v.name) if self.find(name): if with_delete: lite_sync = action_litesync.BootLiteSync(self.config) @@ -57,5 +57,5 @@ class Distros(collection.Collection): self._run_triggers(self.listing[name], "/var/lib/cobbler/triggers/delete/distro/*") del self.listing[name] return True - raise cexceptions.CobblerException("delete_nothing") + raise CX(_("cannot delete object that does not exist")) |