diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 12:52:13 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 12:52:13 +0000 |
commit | c949e085c33b6eaf2e1dda4add566d47ab1876cd (patch) | |
tree | 648f4d1fd9e1565aeae53c40ae883570fe16963f /engine/lib/extender.php | |
parent | 152405d1b34b8ba1a27b288eba53bb29ed2bf228 (diff) | |
download | elgg-c949e085c33b6eaf2e1dda4add566d47ab1876cd.tar.gz elgg-c949e085c33b6eaf2e1dda4add566d47ab1876cd.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Partial internationalisation of exceptions
git-svn-id: https://code.elgg.org/elgg/trunk@801 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/extender.php')
-rw-r--r-- | engine/lib/extender.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |