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/export.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/lib/export.php') diff --git a/engine/lib/export.php b/engine/lib/export.php index b0d7ae3a5..14a3ff76b 100644 --- a/engine/lib/export.php +++ b/engine/lib/export.php @@ -175,7 +175,7 @@ $to_be_serialised = trigger_plugin_hook("export", "all", array("guid" => $guid), $to_be_serialised); // Sanity check - if ((!is_array($to_be_serialised)) || (count($to_be_serialised)==0)) throw new ExportException("No such entity GUID:$guid"); + if ((!is_array($to_be_serialised)) || (count($to_be_serialised)==0)) throw new ExportException(sprintf(elgg_echo('ExportException:NoSuchEntity'), $guid)); $odd = new ODDDocument($to_be_serialised); @@ -199,13 +199,13 @@ $document = ODD_Import($xml); if (!$document) - throw new ImportException("No OpenDD elements found in import data, import failed."); + throw new ImportException(elgg_echo('ImportException:NoODDElements')); foreach ($document as $element) __process_element($element); if ($IMPORTED_OBJECT_COUNTER!= count($IMPORTED_DATA)) - throw new ImportException("Not all elements were imported."); + throw new ImportException(elgg_echo('ImportException:NotAllImported')); return true; } -- cgit v1.2.3