added the hooks for internationalisation
[spider.git] / cmd / load / messages.pl
diff --git a/cmd/load/messages.pl b/cmd/load/messages.pl
new file mode 100644 (file)
index 0000000..b8f0dd3
--- /dev/null
@@ -0,0 +1,8 @@
+#
+# load the the Messages file after changing it
+#
+my $self = shift;
+return (0, $self->msg('e5')) if $self->priv < 9;
+my @out = DXM::load($self);
+@out = ($self->msg('ok')) if !@out;
+return (1, @out);