summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Menezes de Sequeira <MMSequeira@gmail.com>2014-11-18 18:11:14 +0000
committerManuel Menezes de Sequeira <MMSequeira@gmail.com>2014-11-18 18:11:14 +0000
commit8e992dcaa877044a2b2f15edf86c003f4df7253c (patch)
treeca5ea88e1e54a65e055680e5307795d6c36e575a
parentdc805a9012d66cc906301ae5c63fc96b15e6dd12 (diff)
downloadsnap-byow-8e992dcaa877044a2b2f15edf86c003f4df7253c.tar.gz
snap-byow-8e992dcaa877044a2b2f15edf86c003f4df7253c.zip
Add localization to number of arguments error and temporary watchers
-rw-r--r--threads.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/threads.js b/threads.js
index 086ffcb..d194220 100644
--- a/threads.js
+++ b/threads.js
@@ -849,8 +849,8 @@ Process.prototype.evaluate = function (
} else if (context.emptySlots !== 1) {
throw new Error(
- 'expecting ' + context.emptySlots + ' input(s), '
- + 'but getting ' + parms.length
+ localize('expecting') + ' ' + context.emptySlots + ' '
+ + localize('input(s), but getting') + ' ' + parms.length
);
}
}
@@ -915,8 +915,8 @@ Process.prototype.fork = function (context, args) {
} else if (context.emptySlots !== 1) {
throw new Error(
- 'expecting ' + context.emptySlots + ' input(s), '
- + 'but getting ' + parms.length
+ localize('expecting') + ' ' + context.emptySlots + ' '
+ + localize('input(s), but getting') + ' ' + parms.length
);
}
}
@@ -1148,7 +1148,7 @@ Process.prototype.doShowVar = function (varName) {
if (isGlobal || target.owner) {
label = name;
} else {
- label = name + ' (temporary)';
+ label = name + ' ' + localize('(temporary)');
}
watcher = new WatcherMorph(
label,