kopia lustrzana https://github.com/backface/turtlestitch
Add localization to number of arguments error and temporary watchers
rodzic
dc805a9012
commit
8e992dcaa8
10
threads.js
10
threads.js
|
@ -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,
|
||||||
|
|
Ładowanie…
Reference in New Issue