aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-06 12:21:50 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-06 12:21:50 +0000
commit66a312099d0c075535d2443ed6c99585eecfe105 (patch)
tree9c7e86e261ff29e07ecf5e33d32144b7e3bf1ca8 /services
parent76fa718b15d832d4635bbcd4328a4d38cc8105a1 (diff)
downloadelgg-66a312099d0c075535d2443ed6c99585eecfe105.tar.gz
elgg-66a312099d0c075535d2443ed6c99585eecfe105.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* More internationalisation git-svn-id: https://code.elgg.org/elgg/trunk@822 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'services')
-rw-r--r--services/export/handler.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/services/export/handler.php b/services/export/handler.php
index 1c8267a6c..9e7c5fe26 100644
--- a/services/export/handler.php
+++ b/services/export/handler.php
@@ -48,7 +48,7 @@
{
case 'attr' : // TODO: Do this better? - This is a bit of a hack...
$v = $entity->get($id_or_name);
- if (!$v) throw new InvalidParameterException("Sorry, '$id_or_name' does not exist for guid:$guid");
+ if (!$v) throw new InvalidParameterException(sprintf(elgg_echo('InvalidParameterException:IdNotExistForGUID'), $id_or_name, $guid));
$m = new ElggMetadata();
@@ -72,18 +72,18 @@
break;
default :
- throw new InvalidParameterException("Sorry, I don't know how to export '$type'");
+ throw new InvalidParameterException(sprintf(elgg_echo('InvalidParameterException:CanNotExportType'), $type));
}
// Render metadata or relationship
if ((!$m) && (!$r))
- throw new InvalidParameterException("Could not find any data.");
+ throw new InvalidParameterException(elgg_echo('InvalidParameterException:NoDataFound'));
// Exporting metadata?
if ($m)
{
if ($m->entity_guid!=$entity->guid)
- throw new InvalidParameterException("Does not belong to entity.");
+ throw new InvalidParameterException(elgg_echo('InvalidParameterException:DoesNotBelong'));
page_draw("$type:$id_or_name", elgg_view("export/metadata", array("metadata" => $m, "uuid" => $uuid)));
}
@@ -95,7 +95,7 @@
($r->guid_one!=$entity->guid) ||
($r->guid_two!=$entity->guid)
)
- throw new InvalidParameterException("Does not belong to entity or refer to entity.");
+ throw new InvalidParameterException(elgg_echo('InvalidParameterException:DoesNotBelongOrRefer'));
page_draw("$type:$id_or_name", elgg_view("export/relationship", array("relationship" => $r, "uuid" => $uuid)));
}
@@ -103,6 +103,6 @@
// Something went wrong
else
- throw new InvalidParameterException("Missing parmeter, you need to provide a GUID ");
+ throw new InvalidParameterException(elgg_echo('InvalidParameterException:MissingParameter'));
?> \ No newline at end of file