Skip to content

Commit

Permalink
i18n, add more translation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Sep 20, 2017
1 parent 4ab2f96 commit 80c96a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions js/basicblocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2675,13 +2675,15 @@ function initBasicProtoBlocks(palettes, blocks) {
var defaultBlock = new ProtoBlock('defaultcase');
defaultBlock.palette = palettes.dict['flow'];
blocks.protoBlockDict['defaultcase'] = defaultBlock;
//.TRANS: the default case used in a switch statement in programming
defaultBlock.staticLabels.push(_('default'));
defaultBlock.adjustWidthToLabel();
defaultBlock.flowClampBlock();

var caseBlock = new ProtoBlock('case');
caseBlock.palette = palettes.dict['flow'];
blocks.protoBlockDict['case'] = caseBlock;
//.TRANS: the case statement used in a switch statement in programming
caseBlock.staticLabels.push(_('case'));
caseBlock.adjustWidthToLabel();
caseBlock.flowClampOneArgBlock();
Expand All @@ -2690,6 +2692,7 @@ function initBasicProtoBlocks(palettes, blocks) {
var switchBlock = new ProtoBlock('switch');
switchBlock.palette = palettes.dict['flow'];
blocks.protoBlockDict['switch'] = switchBlock;
//.TRANS: the switch statement used in programming
switchBlock.staticLabels.push(_('switch'));
switchBlock.adjustWidthToLabel();
switchBlock.flowClampOneArgBlock();
Expand Down
6 changes: 3 additions & 3 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ msgstr "impar"

#: js/logo.js:3254
msgid "The Case Block must be used inside of a Switch Block."
msgstr "El bloque de Case debe utilizarse dentro de un bloque de Switch."
msgstr "El bloque de Caso debe utilizarse dentro de un bloque de Switch."

#: js/logo.js:3327
msgid "The Step Pitch Block must be used inside of a Note Block."
Expand Down Expand Up @@ -2516,11 +2516,11 @@ msgstr "objeto"

#: js/basicblocks.js:2678
msgid "default"
msgstr ""
msgstr "el caso por defecto"

#: js/basicblocks.js:2685
msgid "case"
msgstr ""
msgstr "caso"

#: js/basicblocks.js:2693
msgid "switch"
Expand Down

0 comments on commit 80c96a0

Please sign in to comment.