From c949e085c33b6eaf2e1dda4add566d47ab1876cd Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 5 Jun 2008 12:52:13 +0000 Subject: Marcus Povey * Partial internationalisation of exceptions git-svn-id: https://code.elgg.org/elgg/trunk@801 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/extender.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/extender.php') diff --git a/engine/lib/extender.php b/engine/lib/extender.php index 2f35d4aea..8221124af 100644 --- a/engine/lib/extender.php +++ b/engine/lib/extender.php @@ -49,7 +49,7 @@ //case 'file' : case 'text' : return ($this->attributes['value']); - default : throw new InstallationException("Type {$this->attributes['value_type']} is not supported. This indicates an error in your installation, most likely caused by an incomplete upgrade."); + default : throw new InstallationException(sprintf(elgg_echo('InstallationException:TypeNotSupported'), $this->attributes['value_type'])); } } @@ -250,7 +250,7 @@ $entity_uuid = $element->getAttribute('entity_uuid'); $entity = get_entity_from_uuid($entity_uuid); if (!$entity) - throw new ImportException("Entity '$entity_uuid' could not be found."); + throw new ImportException(sprintf(elgg_echo('ImportException:GUIDNotFound'), $entity_uuid)); // Get the type of extender (metadata, type, attribute etc) $type = $element->getAttribute('type'); @@ -276,7 +276,7 @@ // Save if (!$entity->save()) - throw new ImportException("There was a problem updating '$attr_name' on entity '$entity_uuid'"); + throw new ImportException(sprintf(elgg_echo('ImportException:ProblemUpdatingMeta'), $attr_name, $entity_uuid)); return true; } -- cgit v1.2.3