Add localization to number of arguments error and temporary watchers

pull/3/merge
Manuel Menezes de Sequeira 2014-11-18 18:11:14 +00:00
rodzic dc805a9012
commit 8e992dcaa8
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -849,8 +849,8 @@ Process.prototype.evaluate = function (
} else if (context.emptySlots !== 1) { } else if (context.emptySlots !== 1) {
throw new Error( throw new Error(
'expecting ' + context.emptySlots + ' input(s), ' localize('expecting') + ' ' + context.emptySlots + ' '
+ 'but getting ' + parms.length + localize('input(s), but getting') + ' ' + parms.length
); );
} }
} }
@ -915,8 +915,8 @@ Process.prototype.fork = function (context, args) {
} else if (context.emptySlots !== 1) { } else if (context.emptySlots !== 1) {
throw new Error( throw new Error(
'expecting ' + context.emptySlots + ' input(s), ' localize('expecting') + ' ' + context.emptySlots + ' '
+ 'but getting ' + parms.length + localize('input(s), but getting') + ' ' + parms.length
); );
} }
} }
@ -1148,7 +1148,7 @@ Process.prototype.doShowVar = function (varName) {
if (isGlobal || target.owner) { if (isGlobal || target.owner) {
label = name; label = name;
} else { } else {
label = name + ' (temporary)'; label = name + ' ' + localize('(temporary)');
} }
watcher = new WatcherMorph( watcher = new WatcherMorph(
label, label,