summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2014-11-20 15:45:20 +0100
committerJens Mönig <jens@moenig.org>2014-11-20 15:45:20 +0100
commit10ade6421be72d1385a03e0bcdf8aaed54360130 (patch)
tree69bb4e351ba9673504da28a906969c1a8564deb5 /threads.js
parent3cc28b1f1ce44f053399686e58be860f9c4a7018 (diff)
parent522dfba12fd609e708cb568c6d0cc918169affb1 (diff)
downloadsnap-yow-10ade6421be72d1385a03e0bcdf8aaed54360130.tar.gz
snap-yow-10ade6421be72d1385a03e0bcdf8aaed54360130.zip
Merge pull request #614 from MMSequeira/master
Add missing localizations and add Portuguese translations
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/threads.js b/threads.js
index 11b72dc..ea563f1 100644
--- a/threads.js
+++ b/threads.js
@@ -858,8 +858,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
);
}
}
@@ -937,8 +937,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
);
}
}
@@ -1156,7 +1156,7 @@ Process.prototype.doShowVar = function (varName) {
if (isGlobal || target.owner) {
label = name;
} else {
- label = name + ' (temporary)';
+ label = name + ' ' + localize('(temporary)');
}
watcher = new WatcherMorph(
label,
@@ -2984,9 +2984,9 @@ VariableFrame.prototype.find = function (name) {
var frame = this.silentFind(name);
if (frame) {return frame; }
throw new Error(
- 'a variable of name \''
+ localize('a variable of name \'')
+ name
- + '\'\ndoes not exist in this context'
+ + localize('\'\ndoes not exist in this context')
);
};
@@ -3051,9 +3051,9 @@ VariableFrame.prototype.getVar = function (name) {
return '';
}
throw new Error(
- 'a variable of name \''
+ localize('a variable of name \'')
+ name
- + '\'\ndoes not exist in this context'
+ + localize('\'\ndoes not exist in this context')
);
};