aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/export.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 12:52:13 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-05 12:52:13 +0000
commitc949e085c33b6eaf2e1dda4add566d47ab1876cd (patch)
tree648f4d1fd9e1565aeae53c40ae883570fe16963f /engine/lib/export.php
parent152405d1b34b8ba1a27b288eba53bb29ed2bf228 (diff)
downloadelgg-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/export.php')
-rw-r--r--engine/lib/export.php6
1 files changed, 3 insertions, 3 deletions
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;
}