summaryrefslogtreecommitdiff
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
parent3cc28b1f1ce44f053399686e58be860f9c4a7018 (diff)
parent522dfba12fd609e708cb568c6d0cc918169affb1 (diff)
downloadsnap-10ade6421be72d1385a03e0bcdf8aaed54360130.tar.gz
snap-10ade6421be72d1385a03e0bcdf8aaed54360130.zip
Merge pull request #614 from MMSequeira/master
Add missing localizations and add Portuguese translations
-rwxr-xr-xlang-pt.js23
-rw-r--r--threads.js18
2 files changed, 27 insertions, 14 deletions
diff --git a/lang-pt.js b/lang-pt.js
index cd3b5fe..2d3804a 100755
--- a/lang-pt.js
+++ b/lang-pt.js
@@ -650,11 +650,12 @@ SnapTranslator.dict.pt = {
'Save As...':
'Guardar este projecto como…',
'Import...':
- 'Importar para este projecto…',
+ 'Importar…',
'file menu import hint':
- 'Importar para este projecto\num projecto exportado,\n'
- + 'uma biblioteca de blocos,\n'
- + 'um traje ou um som.',
+ 'Abrir um projecto exportado,\n'
+ + 'substitundo o projecto corrente, ou\n'
+ + 'importar uma biblioteca de blocos, um\n'
+ + 'traje ou um som para o projecto corrente.',
'Export project as plain text...':
'Exportar este projecto como texto simples…',
'Export project...':
@@ -1616,7 +1617,7 @@ SnapTranslator.dict.pt = {
'unshared.':
'deixado de partilhar.',
'Unshare':
- 'Deixar de Partilhar',
+ 'Não Partilhar',
'password has been changed.':
'a sua palavra-passe foi alterada.',
'SVG costumes are\nnot yet fully supported\nin every browser':
@@ -1641,6 +1642,18 @@ SnapTranslator.dict.pt = {
'Seleccionar um traje da biblioteca de média.',
'edit rotation point only...':
'editar apenas ponto de rotação…',
+ 'Export Project As...':
+ 'Exportar Projecto Como…',
+ 'a variable of name \'':
+ 'não existe uma variável «',
+ '\'\ndoes not exist in this context':
+ '»\nneste contexto',
+ '(temporary)':
+ '(temporária)',
+ 'expecting':
+ 'esperavam-se',
+ 'input(s), but getting':
+ 'argumento(s), mas foram passados',
// produção de código
'map %cmdRing to %codeKind %code':
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')
);
};