messages.js 103 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397
  1. /**
  2. * @license
  3. * Visual Blocks Language
  4. *
  5. * Copyright 2012 Google Inc.
  6. * https://developers.google.com/blockly/
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License");
  9. * you may not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. */
  20. /**
  21. * @fileoverview English strings.
  22. * @author fraser@google.com (Neil Fraser)
  23. *
  24. * After modifying this file, either run "build.py" from the parent directory,
  25. * or run (from this directory):
  26. * ../i18n/js_to_json.py
  27. * to regenerate json/{en,qqq,synonyms}.json.
  28. *
  29. * To convert all of the json files to .js files, run:
  30. * ../i18n/create_messages.py json/*.json
  31. */
  32. 'use strict';
  33. goog.provide('Blockly.Msg.en');
  34. goog.require('Blockly.Msg');
  35. /**
  36. * Due to the frequency of long strings, the 80-column wrap rule need not apply
  37. * to message files.
  38. */
  39. /**
  40. * Each message is preceded with a tripple-slash comment that becomes the
  41. * message descriptor. The build process extracts these descriptors, adds
  42. * them to msg/json/qqq.json, and they show up in the translation console.
  43. */
  44. /// default name - A simple, general default name for a variable, preferably short.
  45. /// For more context, see
  46. /// [[Translating:Blockly#infrequent_message_types]].\n{{Identical|Item}}
  47. Blockly.Msg.VARIABLES_DEFAULT_NAME = 'item';
  48. /// button text - Button that sets a calendar to today's date.\n{{Identical|Today}}
  49. Blockly.Msg.TODAY = 'Today';
  50. // Context menus.
  51. /// context menu - Make a copy of the selected block (and any blocks it contains).\n{{Identical|Duplicate}}
  52. Blockly.Msg.DUPLICATE_BLOCK = 'Duplicate';
  53. /// context menu - Add a descriptive comment to the selected block.
  54. Blockly.Msg.ADD_COMMENT = 'Add Comment';
  55. /// context menu - Remove the descriptive comment from the selected block.
  56. Blockly.Msg.REMOVE_COMMENT = 'Remove Comment';
  57. /// context menu - Change from 'external' to 'inline' mode for displaying blocks used as inputs to the selected block. See [[Translating:Blockly#context_menus]].
  58. Blockly.Msg.EXTERNAL_INPUTS = 'External Inputs';
  59. /// context menu - Change from 'internal' to 'external' mode for displaying blocks used as inputs to the selected block. See [[Translating:Blockly#context_menus]].
  60. Blockly.Msg.INLINE_INPUTS = 'Inline Inputs';
  61. /// context menu - Permanently delete the selected block.
  62. Blockly.Msg.DELETE_BLOCK = 'Delete Block';
  63. /// context menu - Permanently delete the %1 selected blocks.\n\nParameters:\n* %1 - an integer greater than 1.
  64. Blockly.Msg.DELETE_X_BLOCKS = 'Delete %1 Blocks';
  65. /// confirmation prompt - Question the user if they really wanted to permanently delete all %1 blocks.\n\nParameters:\n* %1 - an integer greater than 1.
  66. Blockly.Msg.DELETE_ALL_BLOCKS = 'Delete all %1 blocks?';
  67. /// context menu - Reposition all the blocks so that they form a neat line.
  68. Blockly.Msg.CLEAN_UP = 'Clean up Blocks';
  69. /// context menu - Make the appearance of the selected block smaller by hiding some information about it.
  70. Blockly.Msg.COLLAPSE_BLOCK = 'Collapse Block';
  71. /// context menu - Make the appearance of all blocks smaller by hiding some information about it. Use the same terminology as in the previous message.
  72. Blockly.Msg.COLLAPSE_ALL = 'Collapse Blocks';
  73. /// context menu - Restore the appearance of the selected block by showing information about it that was hidden (collapsed) earlier.
  74. Blockly.Msg.EXPAND_BLOCK = 'Expand Block';
  75. /// context menu - Restore the appearance of all blocks by showing information about it that was hidden (collapsed) earlier. Use the same terminology as in the previous message.
  76. Blockly.Msg.EXPAND_ALL = 'Expand Blocks';
  77. /// context menu - Make the selected block have no effect (unless reenabled).
  78. Blockly.Msg.DISABLE_BLOCK = 'Disable Block';
  79. /// context menu - Make the selected block have effect (after having been disabled earlier).
  80. Blockly.Msg.ENABLE_BLOCK = 'Enable Block';
  81. /// context menu - Provide helpful information about the selected block.\n{{Identical|Help}}
  82. Blockly.Msg.HELP = 'Help';
  83. /// context menu - Undo the previous action.\n{{Identical|Undo}}
  84. Blockly.Msg.UNDO = 'Undo';
  85. /// context menu - Undo the previous undo action.\n{{Identical|Redo}}
  86. Blockly.Msg.REDO = 'Redo';
  87. // Realtime collaboration.
  88. /// collaboration instruction - Tell the user that they can talk with other users.
  89. Blockly.Msg.CHAT = 'Chat with your collaborator by typing in this box!';
  90. /// authorization instruction - Ask the user to authorize this app so it can be saved and shared by them.
  91. Blockly.Msg.AUTH = 'Please authorize this app to enable your work to be saved and to allow it to be shared by you.';
  92. /// First person singular - objective case
  93. Blockly.Msg.ME = 'Me';
  94. // Variable renaming.
  95. /// prompt - This message is only seen in the Opera browser. With most browsers, users can edit numeric values in blocks by just clicking and typing. Opera does not allows this, so we have to open a new window and prompt users with this message to chanage a value.
  96. Blockly.Msg.CHANGE_VALUE_TITLE = 'Change value:';
  97. /// dropdown choice - When the user clicks on a variable block, this is one of the dropdown menu choices. It is used to define a new variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].
  98. Blockly.Msg.NEW_VARIABLE = 'New variable...';
  99. /// prompt - Prompts the user to enter the name for a new variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].
  100. Blockly.Msg.NEW_VARIABLE_TITLE = 'New variable name:';
  101. /// dropdown choice - When the user clicks on a variable block, this is one of the dropdown menu choices. It is used to rename the current variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].
  102. Blockly.Msg.RENAME_VARIABLE = 'Rename variable...';
  103. /// prompt - Prompts the user to enter the new name for the selected variable. See [https://github.com/google/blockly/wiki/Variables#dropdown-menu https://github.com/google/blockly/wiki/Variables#dropdown-menu].\n\nParameters:\n* %1 - the name of the variable to be renamed.
  104. Blockly.Msg.RENAME_VARIABLE_TITLE = 'Rename all "%1" variables to:';
  105. // Colour Blocks.
  106. /// url - Information about colour.
  107. Blockly.Msg.COLOUR_PICKER_HELPURL = 'https://en.wikipedia.org/wiki/Color';
  108. /// tooltip - See [https://github.com/google/blockly/wiki/Colour#picking-a-colour-from-a-palette https://github.com/google/blockly/wiki/Colour#picking-a-colour-from-a-palette].
  109. Blockly.Msg.COLOUR_PICKER_TOOLTIP = 'Choose a colour from the palette.';
  110. /// url - A link that displays a random colour each time you visit it.
  111. Blockly.Msg.COLOUR_RANDOM_HELPURL = 'http://randomcolour.com';
  112. /// block text - Title of block that generates a colour at random.
  113. Blockly.Msg.COLOUR_RANDOM_TITLE = 'random colour';
  114. /// tooltip - See [https://github.com/google/blockly/wiki/Colour#generating-a-random-colour https://github.com/google/blockly/wiki/Colour#generating-a-random-colour].
  115. Blockly.Msg.COLOUR_RANDOM_TOOLTIP = 'Choose a colour at random.';
  116. /// url - A link for color codes with percentages (0-100%) for each component, instead of the more common 0-255, which may be more difficult for beginners.
  117. Blockly.Msg.COLOUR_RGB_HELPURL = 'http://www.december.com/html/spec/colorper.html';
  118. /// block text - Title of block for [https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components].
  119. Blockly.Msg.COLOUR_RGB_TITLE = 'colour with';
  120. /// block input text - The amount of red (from 0 to 100) to use when [https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components].\n{{Identical|Red}}
  121. Blockly.Msg.COLOUR_RGB_RED = 'red';
  122. /// block input text - The amount of green (from 0 to 100) to use when [https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components].
  123. Blockly.Msg.COLOUR_RGB_GREEN = 'green';
  124. /// block input text - The amount of blue (from 0 to 100) to use when [https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components].\n{{Identical|Blue}}
  125. Blockly.Msg.COLOUR_RGB_BLUE = 'blue';
  126. /// tooltip - See [https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components https://github.com/google/blockly/wiki/Colour#creating-a-colour-from-red-green-and-blue-components].
  127. Blockly.Msg.COLOUR_RGB_TOOLTIP = 'Create a colour with the specified amount of red, green, and blue. All values must be between 0 and 100.';
  128. /// url - A useful link that displays blending of two colors.
  129. Blockly.Msg.COLOUR_BLEND_HELPURL = 'http://meyerweb.com/eric/tools/color-blend/';
  130. /// block text - A verb for blending two shades of paint.
  131. Blockly.Msg.COLOUR_BLEND_TITLE = 'blend';
  132. /// block input text - The first of two colours to [https://github.com/google/blockly/wiki/Colour#blending-colours blend].
  133. Blockly.Msg.COLOUR_BLEND_COLOUR1 = 'colour 1';
  134. /// block input text - The second of two colours to [https://github.com/google/blockly/wiki/Colour#blending-colours blend].
  135. Blockly.Msg.COLOUR_BLEND_COLOUR2 = 'colour 2';
  136. /// block input text - The proportion of the [https://github.com/google/blockly/wiki/Colour#blending-colours blend] containing the first color; the remaining proportion is of the second colour. For example, if the first colour is red and the second color blue, a ratio of 1 would yield pure red, a ratio of .5 would yield purple (equal amounts of red and blue), and a ratio of 0 would yield pure blue.\n{{Identical|Ratio}}
  137. Blockly.Msg.COLOUR_BLEND_RATIO = 'ratio';
  138. /// tooltip - See [https://github.com/google/blockly/wiki/Colour#blending-colours https://github.com/google/blockly/wiki/Colour#blending-colours].
  139. Blockly.Msg.COLOUR_BLEND_TOOLTIP = 'Blends two colours together with a given ratio (0.0 - 1.0).';
  140. // Loop Blocks.
  141. /// url - Describes 'repeat loops' in computer programs; consider using the translation of the page [https://en.wikipedia.org/wiki/Control_flow http://en.wikipedia.org/wiki/Control_flow].
  142. Blockly.Msg.CONTROLS_REPEAT_HELPURL = 'https://en.wikipedia.org/wiki/For_loop';
  143. /// block input text - Title of [https://github.com/google/blockly/wiki/Loops#repeat repeat block].\n\nParameters:\n* %1 - the number of times the body of the loop should be repeated.
  144. Blockly.Msg.CONTROLS_REPEAT_TITLE = 'repeat %1 times';
  145. /// block text - Preceding the blocks in the body of the loop. See [https://github.com/google/blockly/wiki/Loops https://github.com/google/blockly/wiki/Loops].\n{{Identical|Do}}
  146. Blockly.Msg.CONTROLS_REPEAT_INPUT_DO = 'do';
  147. /// tooltip - See [https://github.com/google/blockly/wiki/Loops#repeat https://github.com/google/blockly/wiki/Loops#repeat].
  148. Blockly.Msg.CONTROLS_REPEAT_TOOLTIP = 'Do some statements several times.';
  149. /// url - Describes 'while loops' in computer programs; consider using the translation of [https://en.wikipedia.org/wiki/While_loop https://en.wikipedia.org/wiki/While_loop], if present, or [https://en.wikipedia.org/wiki/Control_flow https://en.wikipedia.org/wiki/Control_flow].
  150. Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL = 'https://github.com/google/blockly/wiki/Loops#repeat';
  151. Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  152. /// dropdown - Specifies that a loop should [https://github.com/google/blockly/wiki/Loops#repeat-while repeat while] the following condition is true.
  153. Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE = 'repeat while';
  154. /// dropdown - Specifies that a loop should [https://github.com/google/blockly/wiki/Loops#repeat-until repeat until] the following condition becomes true.
  155. Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL = 'repeat until';
  156. /// tooltip - See [https://github.com/google/blockly/wiki/Loops#repeat-while Loops#repeat-while https://github.com/google/blockly/wiki/Loops#repeat-while Loops#repeat-while].
  157. Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE = 'While a value is true, then do some statements.';
  158. /// tooltip - See [https://github.com/google/blockly/wiki/Loops#repeat-until https://github.com/google/blockly/wiki/Loops#repeat-until].
  159. Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL = 'While a value is false, then do some statements.';
  160. /// url - Describes 'for loops' in computer programs. Consider using your language's translation of [https://en.wikipedia.org/wiki/For_loop https://en.wikipedia.org/wiki/For_loop], if present.
  161. Blockly.Msg.CONTROLS_FOR_HELPURL = 'https://github.com/google/blockly/wiki/Loops#count-with';
  162. /// tooltip - See [https://github.com/google/blockly/wiki/Loops#count-with https://github.com/google/blockly/wiki/Loops#count-with].\n\nParameters:\n* %1 - the name of the loop variable.
  163. Blockly.Msg.CONTROLS_FOR_TOOLTIP = 'Have the variable "%1" take on the values from the start number to the end number, counting by the specified interval, and do the specified blocks.';
  164. /// block text - Repeatedly counts a variable (%1)
  165. /// starting with a (usually lower) number in a range (%2),
  166. /// ending with a (usually higher) number in a range (%3), and counting the
  167. /// iterations by a number of steps (%4). As in
  168. /// [https://github.com/google/blockly/wiki/Loops#count-with
  169. /// https://github.com/google/blockly/wiki/Loops#count-with].
  170. /// [[File:Blockly-count-with.png]]
  171. Blockly.Msg.CONTROLS_FOR_TITLE = 'count with %1 from %2 to %3 by %4';
  172. Blockly.Msg.CONTROLS_FOR_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  173. /// url - Describes 'for-each loops' in computer programs. Consider using your language's translation of [https://en.wikipedia.org/wiki/Foreach https://en.wikipedia.org/wiki/Foreach] if present.
  174. Blockly.Msg.CONTROLS_FOREACH_HELPURL = 'https://github.com/google/blockly/wiki/Loops#for-each';
  175. /// block text - Title of [https://github.com/google/blockly/wiki/Loops#for-each for each block].
  176. /// Sequentially assigns every item in array %2 to the valiable %1.
  177. Blockly.Msg.CONTROLS_FOREACH_TITLE = 'for each item %1 in list %2';
  178. Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  179. /// block text - Description of [https://github.com/google/blockly/wiki/Loops#for-each for each blocks].\n\nParameters:\n* %1 - the name of the loop variable.
  180. Blockly.Msg.CONTROLS_FOREACH_TOOLTIP = 'For each item in a list, set the variable "%1" to the item, and then do some statements.';
  181. /// url - Describes control flow in computer programs. Consider using your language's translation of [https://en.wikipedia.org/wiki/Control_flow https://en.wikipedia.org/wiki/Control_flow], if it exists.
  182. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL = 'https://github.com/google/blockly/wiki/Loops#loop-termination-blocks';
  183. /// dropdown - The current loop should be exited. See [https://github.com/google/blockly/wiki/Loops#break https://github.com/google/blockly/wiki/Loops#break].
  184. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK = 'break out of loop';
  185. /// dropdown - The current iteration of the loop should be ended and the next should begin. See [https://github.com/google/blockly/wiki/Loops#continue-with-next-iteration https://github.com/google/blockly/wiki/Loops#continue-with-next-iteration].
  186. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE = 'continue with next iteration of loop';
  187. /// tooltip - See [https://github.com/google/blockly/wiki/Loops#break-out-of-loop https://github.com/google/blockly/wiki/Loops#break-out-of-loop].
  188. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK = 'Break out of the containing loop.';
  189. /// tooltip - See [https://github.com/google/blockly/wiki/Loops#continue-with-next-iteration https://github.com/google/blockly/wiki/Loops#continue-with-next-iteration].
  190. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE = 'Skip the rest of this loop, and continue with the next iteration.';
  191. /// warning - The user has tried placing a block outside of a loop (for each, while, repeat, etc.), but this type of block may only be used within a loop. See [https://github.com/google/blockly/wiki/Loops#loop-termination-blocks https://github.com/google/blockly/wiki/Loops#loop-termination-blocks].
  192. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING = 'Warning: This block may only be used within a loop.';
  193. // Logic Blocks.
  194. /// url - Describes conditional statements (if-then-else) in computer programs. Consider using your language's translation of [https://en.wikipedia.org/wiki/If_else https://en.wikipedia.org/wiki/If_else], if present.
  195. Blockly.Msg.CONTROLS_IF_HELPURL = 'https://github.com/google/blockly/wiki/IfElse';
  196. /// tooltip - Describes [https://github.com/google/blockly/wiki/IfElse#if-blocks 'if' blocks]. Consider using your language's translation of [https://en.wikipedia.org/wiki/If_statement https://en.wikipedia.org/wiki/If_statement], if present.
  197. Blockly.Msg.CONTROLS_IF_TOOLTIP_1 = 'If a value is true, then do some statements.';
  198. /// tooltip - Describes [https://github.com/google/blockly/wiki/IfElse#if-else-blocks if-else blocks]. Consider using your language's translation of [https://en.wikipedia.org/wiki/If_statement https://en.wikipedia.org/wiki/If_statement], if present.
  199. Blockly.Msg.CONTROLS_IF_TOOLTIP_2 = 'If a value is true, then do the first block of statements. Otherwise, do the second block of statements.';
  200. /// tooltip - Describes [https://github.com/google/blockly/wiki/IfElse#if-else-if-blocks if-else-if blocks]. Consider using your language's translation of [https://en.wikipedia.org/wiki/If_statement https://en.wikipedia.org/wiki/If_statement], if present.
  201. Blockly.Msg.CONTROLS_IF_TOOLTIP_3 = 'If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements.';
  202. /// tooltip - Describes [https://github.com/google/blockly/wiki/IfElse#if-else-if-else-blocks if-else-if-else blocks]. Consider using your language's translation of [https://en.wikipedia.org/wiki/If_statement https://en.wikipedia.org/wiki/If_statement], if present.
  203. Blockly.Msg.CONTROLS_IF_TOOLTIP_4 = 'If the first value is true, then do the first block of statements. Otherwise, if the second value is true, do the second block of statements. If none of the values are true, do the last block of statements.';
  204. /// block text - See [https://github.com/google/blockly/wiki/IfElse https://github.com/google/blockly/wiki/IfElse].
  205. /// It is recommended, but not essential, that this have text in common with the translation of 'else if'
  206. Blockly.Msg.CONTROLS_IF_MSG_IF = 'if';
  207. /// block text - See [https://github.com/google/blockly/wiki/IfElse https://github.com/google/blockly/wiki/IfElse]. The English words "otherwise if" would probably be clearer than "else if", but the latter is used because it is traditional and shorter.
  208. Blockly.Msg.CONTROLS_IF_MSG_ELSEIF = 'else if';
  209. /// block text - See [https://github.com/google/blockly/wiki/IfElse https://github.com/google/blockly/wiki/IfElse]. The English word "otherwise" would probably be superior to "else", but the latter is used because it is traditional and shorter.
  210. Blockly.Msg.CONTROLS_IF_MSG_ELSE = 'else';
  211. Blockly.Msg.CONTROLS_IF_MSG_THEN = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  212. Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = Blockly.Msg.CONTROLS_IF_MSG_IF;
  213. /// tooltip - Describes [https://github.com/google/blockly/wiki/IfElse#block-modification if block modification].
  214. Blockly.Msg.CONTROLS_IF_IF_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this if block.';
  215. Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = Blockly.Msg.CONTROLS_IF_MSG_ELSEIF;
  216. /// tooltip - Describes the 'else if' subblock during [https://github.com/google/blockly/wiki/IfElse#block-modification if block modification].
  217. Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP = 'Add a condition to the if block.';
  218. Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = Blockly.Msg.CONTROLS_IF_MSG_ELSE;
  219. /// tooltip - Describes the 'else' subblock during [https://github.com/google/blockly/wiki/IfElse#block-modification if block modification].
  220. Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP = 'Add a final, catch-all condition to the if block.';
  221. /// url - Information about comparisons.
  222. Blockly.Msg.LOGIC_COMPARE_HELPURL = 'https://en.wikipedia.org/wiki/Inequality_(mathematics)';
  223. /// tooltip - Describes the equals (=) block.
  224. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ = 'Return true if both inputs equal each other.';
  225. /// tooltip - Describes the not equals (≠) block.
  226. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ = 'Return true if both inputs are not equal to each other.';
  227. /// tooltip - Describes the less than (<) block.
  228. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT = 'Return true if the first input is smaller than the second input.';
  229. /// tooltip - Describes the less than or equals (≤) block.
  230. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE = 'Return true if the first input is smaller than or equal to the second input.';
  231. /// tooltip - Describes the greater than (>) block.
  232. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT = 'Return true if the first input is greater than the second input.';
  233. /// tooltip - Describes the greater than or equals (≥) block.
  234. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE = 'Return true if the first input is greater than or equal to the second input.';
  235. /// url - Information about the Boolean conjunction ("and") and disjunction ("or") operators. Consider using the translation of [https://en.wikipedia.org/wiki/Boolean_logic https://en.wikipedia.org/wiki/Boolean_logic], if it exists in your language.
  236. Blockly.Msg.LOGIC_OPERATION_HELPURL = 'https://github.com/google/blockly/wiki/Logic#logical-operations';
  237. /// tooltip - See [https://en.wikipedia.org/wiki/Logical_conjunction https://en.wikipedia.org/wiki/Logical_conjunction].
  238. Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND = 'Return true if both inputs are true.';
  239. /// block text - See [https://en.wikipedia.org/wiki/Logical_conjunction https://en.wikipedia.org/wiki/Logical_conjunction].\n{{Identical|And}}
  240. Blockly.Msg.LOGIC_OPERATION_AND = 'and';
  241. /// block text - See [https://en.wikipedia.org/wiki/Disjunction https://en.wikipedia.org/wiki/Disjunction].
  242. Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR = 'Return true if at least one of the inputs is true.';
  243. /// block text - See [https://en.wikipedia.org/wiki/Disjunction https://en.wikipedia.org/wiki/Disjunction].\n{{Identical|Or}}
  244. Blockly.Msg.LOGIC_OPERATION_OR = 'or';
  245. /// url - Information about logical negation. The translation of [https://en.wikipedia.org/wiki/Logical_negation https://en.wikipedia.org/wiki/Logical_negation] is recommended if it exists in the target language.
  246. Blockly.Msg.LOGIC_NEGATE_HELPURL = 'https://github.com/google/blockly/wiki/Logic#not';
  247. /// block text - This is a unary operator that returns ''false'' when the input is ''true'', and ''true'' when the input is ''false''.
  248. /// \n\nParameters:\n* %1 - the input (which should be either the value "true" or "false")
  249. Blockly.Msg.LOGIC_NEGATE_TITLE = 'not %1';
  250. /// tooltip - See [https://en.wikipedia.org/wiki/Logical_negation https://en.wikipedia.org/wiki/Logical_negation].
  251. Blockly.Msg.LOGIC_NEGATE_TOOLTIP = 'Returns true if the input is false. Returns false if the input is true.';
  252. /// url - Information about the logic values ''true'' and ''false''. Consider using the translation of [https://en.wikipedia.org/wiki/Truth_value https://en.wikipedia.org/wiki/Truth_value] if it exists in your language.
  253. Blockly.Msg.LOGIC_BOOLEAN_HELPURL = 'https://github.com/google/blockly/wiki/Logic#values';
  254. /// block text - The word for the [https://en.wikipedia.org/wiki/Truth_value logical value] ''true''.\n{{Identical|True}}
  255. Blockly.Msg.LOGIC_BOOLEAN_TRUE = 'true';
  256. /// block text - The word for the [https://en.wikipedia.org/wiki/Truth_value logical value] ''false''.\n{{Identical|False}}
  257. Blockly.Msg.LOGIC_BOOLEAN_FALSE = 'false';
  258. /// tooltip - Indicates that the block returns either of the two possible [https://en.wikipedia.org/wiki/Truth_value logical values].
  259. Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP = 'Returns either true or false.';
  260. /// url - Provide a link to the translation of [https://en.wikipedia.org/wiki/Nullable_type https://en.wikipedia.org/wiki/Nullable_type], if it exists in your language; otherwise, do not worry about translating this advanced concept.
  261. Blockly.Msg.LOGIC_NULL_HELPURL = 'https://en.wikipedia.org/wiki/Nullable_type';
  262. /// block text - In computer languages, ''null'' is a special value that indicates that no value has been set. You may use your language's word for "nothing" or "invalid".\n{{Identical|Null}}
  263. Blockly.Msg.LOGIC_NULL = 'null';
  264. /// tooltip - This should use the word from the previous message.
  265. Blockly.Msg.LOGIC_NULL_TOOLTIP = 'Returns null.';
  266. /// url - Describes the programming language operator known as the ''ternary'' or ''conditional'' operator. It is recommended that you use the translation of [https://en.wikipedia.org/wiki/%3F: https://en.wikipedia.org/wiki/%3F:] if it exists.
  267. Blockly.Msg.LOGIC_TERNARY_HELPURL = 'https://en.wikipedia.org/wiki/%3F:';
  268. /// block input text - Label for the input whose value determines which of the other two inputs is returned. In some programming languages, this is called a ''''predicate''''.
  269. Blockly.Msg.LOGIC_TERNARY_CONDITION = 'test';
  270. /// block input text - Indicates that the following input should be returned (used as output) if the test input is true. Remember to try to keep block text terse (short).
  271. Blockly.Msg.LOGIC_TERNARY_IF_TRUE = 'if true';
  272. /// block input text - Indicates that the following input should be returned (used as output) if the test input is false.
  273. Blockly.Msg.LOGIC_TERNARY_IF_FALSE = 'if false';
  274. /// tooltip - See [https://en.wikipedia.org/wiki/%3F: https://en.wikipedia.org/wiki/%3F:].
  275. Blockly.Msg.LOGIC_TERNARY_TOOLTIP = 'Check the condition in "test". If the condition is true, returns the "if true" value; otherwise returns the "if false" value.';
  276. // Math Blocks.
  277. /// url - Information about (real) numbers.
  278. Blockly.Msg.MATH_NUMBER_HELPURL = 'https://en.wikipedia.org/wiki/Number';
  279. /// tooltip - Any positive or negative number, not necessarily an integer.
  280. Blockly.Msg.MATH_NUMBER_TOOLTIP = 'A number.';
  281. /// {{optional}}\nmath - The symbol for the binary operation addition.
  282. Blockly.Msg.MATH_ADDITION_SYMBOL = '+';
  283. /// {{optional}}\nmath - The symbol for the binary operation indicating that the right operand should be
  284. /// subtracted from the left operand.
  285. Blockly.Msg.MATH_SUBTRACTION_SYMBOL = '-';
  286. /// {{optional}}\nmath - The binary operation indicating that the left operand should be divided by
  287. /// the right operand.
  288. Blockly.Msg.MATH_DIVISION_SYMBOL = '÷';
  289. /// {{optional}}\nmath - The symbol for the binary operation multiplication.
  290. Blockly.Msg.MATH_MULTIPLICATION_SYMBOL = '×';
  291. /// {{optional}}\nmath - The symbol for the binary operation exponentiation. Specifically, if the
  292. /// value of the left operand is L and the value of the right operand (the exponent) is
  293. /// R, multiply L by itself R times. (Fractional and negative exponents are also legal.)
  294. Blockly.Msg.MATH_POWER_SYMBOL = '^';
  295. /// math - The short name of the trigonometric function
  296. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent sine].
  297. Blockly.Msg.MATH_TRIG_SIN = 'sin';
  298. /// math - The short name of the trigonometric function
  299. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent cosine].
  300. Blockly.Msg.MATH_TRIG_COS = 'cos';
  301. /// math - The short name of the trigonometric function
  302. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent tangent].
  303. Blockly.Msg.MATH_TRIG_TAN = 'tan';
  304. /// math - The short name of the ''inverse of'' the trigonometric function
  305. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent sine].
  306. Blockly.Msg.MATH_TRIG_ASIN = 'asin';
  307. /// math - The short name of the ''inverse of'' the trigonometric function
  308. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent cosine].
  309. Blockly.Msg.MATH_TRIG_ACOS = 'acos';
  310. /// math - The short name of the ''inverse of'' the trigonometric function
  311. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent tangent].
  312. Blockly.Msg.MATH_TRIG_ATAN = 'atan';
  313. /// url - Information about addition, subtraction, multiplication, division, and exponentiation.
  314. Blockly.Msg.MATH_ARITHMETIC_HELPURL = 'https://en.wikipedia.org/wiki/Arithmetic';
  315. /// tooltip - See [https://en.wikipedia.org/wiki/Addition https://en.wikipedia.org/wiki/Addition].
  316. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD = 'Return the sum of the two numbers.';
  317. /// tooltip - See [https://en.wikipedia.org/wiki/Subtraction https://en.wikipedia.org/wiki/Subtraction].
  318. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS = 'Return the difference of the two numbers.';
  319. /// tooltip - See [https://en.wikipedia.org/wiki/Multiplication https://en.wikipedia.org/wiki/Multiplication].
  320. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY = 'Return the product of the two numbers.';
  321. /// tooltip - See [https://en.wikipedia.org/wiki/Division_(mathematics) https://en.wikipedia.org/wiki/Division_(mathematics)].
  322. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE = 'Return the quotient of the two numbers.';
  323. /// tooltip - See [https://en.wikipedia.org/wiki/Exponentiation https://en.wikipedia.org/wiki/Exponentiation].
  324. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER = 'Return the first number raised to the power of the second number.';
  325. /// url - Information about the square root operation.
  326. Blockly.Msg.MATH_SINGLE_HELPURL = 'https://en.wikipedia.org/wiki/Square_root';
  327. /// dropdown - This computes the positive [https://en.wikipedia.org/wiki/Square_root square root] of its input. For example, the square root of 16 is 4.
  328. Blockly.Msg.MATH_SINGLE_OP_ROOT = 'square root';
  329. /// tooltip - Please use the same term as in the previous message.
  330. Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT = 'Return the square root of a number.';
  331. /// dropdown - This leaves positive numeric inputs changed and inverts negative inputs. For example, the absolute value of 5 is 5; the absolute value of -5 is also 5. For more information, see [https://en.wikipedia.org/wiki/Absolute_value https://en.wikipedia.org/wiki/Absolute_value].
  332. Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE = 'absolute';
  333. /// tooltip - Please use the same term as in the previous message.
  334. Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS = 'Return the absolute value of a number.';
  335. /// tooltip - Calculates '''0-n''', where '''n''' is the single numeric input.
  336. Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG = 'Return the negation of a number.';
  337. /// tooltip - Calculates the [https://en.wikipedia.org/wiki/Natural_logarithm|natural logarithm] of its single numeric input.
  338. Blockly.Msg.MATH_SINGLE_TOOLTIP_LN = 'Return the natural logarithm of a number.';
  339. /// tooltip - Calculates the [https://en.wikipedia.org/wiki/Common_logarithm common logarithm] of its single numeric input.
  340. Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10 = 'Return the base 10 logarithm of a number.';
  341. /// tooltip - Multiplies [https://en.wikipedia.org/wiki/E_%28mathematical_constant%29 e] by itself n times, where n is the single numeric input.
  342. Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP = 'Return e to the power of a number.';
  343. /// tooltip - Multiplies 10 by itself n times, where n is the single numeric input.
  344. Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10 = 'Return 10 to the power of a number.';
  345. /// url - Information about the trigonometric functions sine, cosine, tangent, and their inverses (ideally using degrees, not radians).
  346. Blockly.Msg.MATH_TRIG_HELPURL = 'https://en.wikipedia.org/wiki/Trigonometric_functions';
  347. /// tooltip - Return the [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent sine] of an [https://en.wikipedia.org/wiki/Degree_(angle) angle in degrees], not radians.
  348. Blockly.Msg.MATH_TRIG_TOOLTIP_SIN = 'Return the sine of a degree (not radian).';
  349. /// tooltip - Return the [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent cosine] of an [https://en.wikipedia.org/wiki/Degree_(angle) angle in degrees], not radians.
  350. Blockly.Msg.MATH_TRIG_TOOLTIP_COS = 'Return the cosine of a degree (not radian).';
  351. /// tooltip - Return the [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent tangent] of an [https://en.wikipedia.org/wiki/Degree_(angle) angle in degrees], not radians.
  352. Blockly.Msg.MATH_TRIG_TOOLTIP_TAN = 'Return the tangent of a degree (not radian).';
  353. /// tooltip - The [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions inverse] of the [https://en.wikipedia.org/wiki/Cosine#Sine.2C_cosine_and_tangent sine function], using [https://en.wikipedia.org/wiki/Degree_(angle) degrees], not radians.
  354. Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN = 'Return the arcsine of a number.';
  355. /// tooltip - The [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions inverse] of the [https://en.wikipedia.org/wiki/Cosine#Sine.2C_cosine_and_tangent cosine] function, using [https://en.wikipedia.org/wiki/Degree_(angle) degrees], not radians.
  356. Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS = 'Return the arccosine of a number.';
  357. /// tooltip - The [https://en.wikipedia.org/wiki/Inverse_trigonometric_functions inverse] of the [https://en.wikipedia.org/wiki/Cosine#Sine.2C_cosine_and_tangent tangent] function, using [https://en.wikipedia.org/wiki/Degree_(angle) degrees], not radians.
  358. Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN = 'Return the arctangent of a number.';
  359. /// url - Information about the mathematical constants Pi (π), e, the golden ratio (φ), √ 2, √ 1/2, and infinity (∞).
  360. Blockly.Msg.MATH_CONSTANT_HELPURL = 'https://en.wikipedia.org/wiki/Mathematical_constant';
  361. /// tooltip - Provides the specified [https://en.wikipedia.org/wiki/Mathematical_constant mathematical constant].
  362. Blockly.Msg.MATH_CONSTANT_TOOLTIP = 'Return one of the common constants: π (3.141…), e (2.718…), φ (1.618…), sqrt(2) (1.414…), sqrt(½) (0.707…), or ∞ (infinity).';
  363. /// dropdown - A number is '''even''' if it is a multiple of 2. For example, 4 is even (yielding true), but 3 is not (false).
  364. Blockly.Msg.MATH_IS_EVEN = 'is even';
  365. /// dropdown - A number is '''odd''' if it is not a multiple of 2. For example, 3 is odd (yielding true), but 4 is not (false). The opposite of "odd" is "even".
  366. Blockly.Msg.MATH_IS_ODD = 'is odd';
  367. /// dropdown - A number is [https://en.wikipedia.org/wiki/Prime prime] if it cannot be evenly divided by any positive integers except for 1 and itself. For example, 5 is prime, but 6 is not because 2 × 3 = 6.
  368. Blockly.Msg.MATH_IS_PRIME = 'is prime';
  369. /// dropdown - A number is '''whole''' if it is an [https://en.wikipedia.org/wiki/Integer integer]. For example, 5 is whole, but 5.1 is not.
  370. Blockly.Msg.MATH_IS_WHOLE = 'is whole';
  371. /// dropdown - A number is '''positive''' if it is greater than 0. (0 is neither negative nor positive.)
  372. Blockly.Msg.MATH_IS_POSITIVE = 'is positive';
  373. /// dropdown - A number is '''negative''' if it is less than 0. (0 is neither negative nor positive.)
  374. Blockly.Msg.MATH_IS_NEGATIVE = 'is negative';
  375. /// dropdown - A number x is divisible by y if y goes into x evenly. For example, 10 is divisible by 5, but 10 is not divisible by 3.
  376. Blockly.Msg.MATH_IS_DIVISIBLE_BY = 'is divisible by';
  377. /// tooltip - This block lets the user specify via a dropdown menu whether to check if the numeric input is even, odd, prime, whole, positive, negative, or divisible by a given value.
  378. Blockly.Msg.MATH_IS_TOOLTIP = 'Check if a number is an even, odd, prime, whole, positive, negative, or if it is divisible by certain number. Returns true or false.';
  379. /// url - Information about incrementing (increasing the value of) a variable.
  380. /// For other languages, just use the translation of the Wikipedia page about
  381. /// addition ([https://en.wikipedia.org/wiki/Addition https://en.wikipedia.org/wiki/Addition]).
  382. Blockly.Msg.MATH_CHANGE_HELPURL = 'https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter';
  383. /// - As in: ''change'' [the value of variable] ''item'' ''by'' 1 (e.g., if the variable named 'item' had the value 5, change it to 6).
  384. /// %1 is a variable name.
  385. /// %2 is the amount of change.
  386. Blockly.Msg.MATH_CHANGE_TITLE = 'change %1 by %2';
  387. Blockly.Msg.MATH_CHANGE_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  388. /// tooltip - This updates the value of the variable by adding to it the following numeric input.\n\nParameters:\n* %1 - the name of the variable whose value should be increased.
  389. Blockly.Msg.MATH_CHANGE_TOOLTIP = 'Add a number to variable "%1".';
  390. /// url - Information about how numbers are rounded to the nearest integer
  391. Blockly.Msg.MATH_ROUND_HELPURL = 'https://en.wikipedia.org/wiki/Rounding';
  392. /// tooltip - See [https://en.wikipedia.org/wiki/Rounding https://en.wikipedia.org/wiki/Rounding].
  393. Blockly.Msg.MATH_ROUND_TOOLTIP = 'Round a number up or down.';
  394. /// dropdown - This rounds its input to the nearest whole number. For example, 3.4 is rounded to 3.
  395. Blockly.Msg.MATH_ROUND_OPERATOR_ROUND = 'round';
  396. /// dropdown - This rounds its input up to the nearest whole number. For example, if the input was 2.2, the result would be 3.
  397. Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP = 'round up';
  398. /// dropdown - This rounds its input down to the nearest whole number. For example, if the input was 3.8, the result would be 3.
  399. Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN = 'round down';
  400. /// url - Information about applying a function to a list of numbers. (We were unable to find such information in English. Feel free to skip this and any other URLs that are difficult.)
  401. Blockly.Msg.MATH_ONLIST_HELPURL = '';
  402. /// dropdown - This computes the sum of the numeric elements in the list. For example, the sum of the list {1, 4} is 5.
  403. Blockly.Msg.MATH_ONLIST_OPERATOR_SUM = 'sum of list';
  404. /// tooltip - Please use the same term for "sum" as in the previous message.
  405. Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM = 'Return the sum of all the numbers in the list.';
  406. /// dropdown - This finds the smallest (minimum) number in a list. For example, the smallest number in the list [-5, 0, 3] is -5.
  407. Blockly.Msg.MATH_ONLIST_OPERATOR_MIN = 'min of list';
  408. /// tooltip - Please use the same term for "min" or "minimum" as in the previous message.
  409. Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN = 'Return the smallest number in the list.';
  410. /// dropdown - This finds the largest (maximum) number in a list. For example, the largest number in the list [-5, 0, 3] is 3.
  411. Blockly.Msg.MATH_ONLIST_OPERATOR_MAX = 'max of list';
  412. /// tooltip
  413. Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX = 'Return the largest number in the list.';
  414. /// dropdown - This adds up all of the numbers in a list and divides the sum by the number of elements in the list. For example, the [https://en.wikipedia.org/wiki/Arithmetic_mean average] of the list [1, 2, 3, 4] is 2.5 (10/4).
  415. Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE = 'average of list';
  416. /// tooltip - See [https://en.wikipedia.org/wiki/Arithmetic_mean https://en.wikipedia.org/wiki/Arithmetic_mean] for more informatin.
  417. Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE = 'Return the average (arithmetic mean) of the numeric values in the list.';
  418. /// dropdown - This finds the [https://en.wikipedia.org/wiki/Median median] of the numeric values in a list. For example, the median of the list {1, 2, 7, 12, 13} is 7.
  419. Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN = 'median of list';
  420. /// tooltip - See [https://en.wikipedia.org/wiki/Median median https://en.wikipedia.org/wiki/Median median] for more information.
  421. Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN = 'Return the median number in the list.';
  422. /// dropdown - This finds the most common numbers ([https://en.wikipedia.org/wiki/Mode_(statistics) modes]) in a list. For example, the modes of the list {1, 3, 9, 3, 9} are {3, 9}.
  423. Blockly.Msg.MATH_ONLIST_OPERATOR_MODE = 'modes of list';
  424. /// tooltip - See [https://en.wikipedia.org/wiki/Mode_(statistics) https://en.wikipedia.org/wiki/Mode_(statistics)] for more information.
  425. Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE = 'Return a list of the most common item(s) in the list.';
  426. /// dropdown - This finds the [https://en.wikipedia.org/wiki/Standard_deviation standard deviation] of the numeric values in a list.
  427. Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV = 'standard deviation of list';
  428. /// tooltip - See [https://en.wikipedia.org/wiki/Standard_deviation https://en.wikipedia.org/wiki/Standard_deviation] for more information.
  429. Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV = 'Return the standard deviation of the list.';
  430. /// dropdown - This choose an element at random from a list. Each element is chosen with equal probability.
  431. Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM = 'random item of list';
  432. /// tooltip - Please use same term for 'random' as in previous entry.
  433. Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM = 'Return a random element from the list.';
  434. /// url - information about the modulo (remainder) operation.
  435. Blockly.Msg.MATH_MODULO_HELPURL = 'https://en.wikipedia.org/wiki/Modulo_operation';
  436. /// block text - Title of block providing the remainder when dividing the first numerical input by the second. For example, the remainder of 10 divided by 3 is 1.\n\nParameters:\n* %1 - the dividend (10, in our example)\n* %2 - the divisor (3 in our example).
  437. Blockly.Msg.MATH_MODULO_TITLE = 'remainder of %1 ÷ %2';
  438. /// tooltip - For example, the remainder of 10 divided by 3 is 1.
  439. Blockly.Msg.MATH_MODULO_TOOLTIP = 'Return the remainder from dividing the two numbers.';
  440. /// url - Information about constraining a numeric value to be in a specific range. (The English URL is not ideal. Recall that translating URLs is the lowest priority.)
  441. Blockly.Msg.MATH_CONSTRAIN_HELPURL = 'https://en.wikipedia.org/wiki/Clamping_%28graphics%29';
  442. /// block text - The title of the block that '''constrain'''s (forces) a number to be in a given range.
  443. ///For example, if the number 150 is constrained to be between 5 and 100, the result will be 100.
  444. ///\n\nParameters:\n* %1 - the value to constrain (e.g., 150)\n* %2 - the minimum value (e.g., 5)\n* %3 - the maximum value (e.g., 100).
  445. Blockly.Msg.MATH_CONSTRAIN_TITLE = 'constrain %1 low %2 high %3';
  446. /// tooltip - This compares a number ''x'' to a low value ''L'' and a high value ''H''. If ''x'' is less then ''L'', the result is ''L''. If ''x'' is greater than ''H'', the result is ''H''. Otherwise, the result is ''x''.
  447. Blockly.Msg.MATH_CONSTRAIN_TOOLTIP = 'Constrain a number to be between the specified limits (inclusive).';
  448. /// url - Information about how computers generate random numbers.
  449. Blockly.Msg.MATH_RANDOM_INT_HELPURL = 'https://en.wikipedia.org/wiki/Random_number_generation';
  450. /// block text - The title of the block that generates a random integer (whole number) in the specified range. For example, if the range is from 5 to 7, this returns 5, 6, or 7 with equal likelihood. %1 is a placeholder for the lower number, %2 is the placeholder for the larger number.
  451. Blockly.Msg.MATH_RANDOM_INT_TITLE = 'random integer from %1 to %2';
  452. /// tooltip - Return a random integer between two values specified as inputs. For example, if one input was 7 and another 9, any of the numbers 7, 8, or 9 could be produced.
  453. Blockly.Msg.MATH_RANDOM_INT_TOOLTIP = 'Return a random integer between the two specified limits, inclusive.';
  454. /// url - Information about how computers generate random numbers (specifically, numbers in the range from 0 to just below 1).
  455. Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL = 'https://en.wikipedia.org/wiki/Random_number_generation';
  456. /// block text - The title of the block that generates a random number greater than or equal to 0 and less than 1.
  457. Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM = 'random fraction';
  458. /// tooltip - Return a random fraction between 0 and 1. The value may be equal to 0 but must be less than 1.
  459. Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP = 'Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive).';
  460. // Text Blocks.
  461. /// url - Information about how computers represent text (sometimes referred to as ''string''s).
  462. Blockly.Msg.TEXT_TEXT_HELPURL = 'https://en.wikipedia.org/wiki/String_(computer_science)';
  463. /// tooltip - See [https://github.com/google/blockly/wiki/Text https://github.com/google/blockly/wiki/Text].
  464. Blockly.Msg.TEXT_TEXT_TOOLTIP = 'A letter, word, or line of text.';
  465. /// url - Information on concatenating/appending pieces of text.
  466. Blockly.Msg.TEXT_JOIN_HELPURL = 'https://github.com/google/blockly/wiki/Text#text-creation';
  467. /// block text - See [https://github.com/google/blockly/wiki/Text#text-creation https://github.com/google/blockly/wiki/Text#text-creation].
  468. Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH = 'create text with';
  469. /// tooltip - See [https://github.com/google/blockly/wiki/Text#text-creation create text with] for more information.
  470. Blockly.Msg.TEXT_JOIN_TOOLTIP = 'Create a piece of text by joining together any number of items.';
  471. /// block text - This is shown when the programmer wants to change the number of pieces of text being joined together. See [https://github.com/google/blockly/wiki/Text#text-creation https://github.com/google/blockly/wiki/Text#text-creation], specifically the last picture in the 'Text creation' section.\n{{Identical|Join}}
  472. Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN = 'join';
  473. /// tooltip - See [https://github.com/google/blockly/wiki/Text#text-creation https://github.com/google/blockly/wiki/Text#text-creation], specifically the last picture in the 'Text creation' section.
  474. Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this text block.';
  475. Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  476. /// block text - See [https://github.com/google/blockly/wiki/Text#text-creation https://github.com/google/blockly/wiki/Text#text-creation], specifically the last picture in the 'Text creation' section.
  477. Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP = 'Add an item to the text.';
  478. /// url - This and the other text-related URLs are going to be hard to translate. As always, it is okay to leave untranslated or paste in the English-language URL. For these URLs, you might also consider a general URL about how computers represent text (such as the translation of [https://en.wikipedia.org/wiki/String_(computer_science) this Wikipedia page]).
  479. Blockly.Msg.TEXT_APPEND_HELPURL = 'https://github.com/google/blockly/wiki/Text#text-modification';
  480. /// block input text - Message preceding the name of a variable to which text should be appended.
  481. /// [[File:blockly-append-text.png]]
  482. Blockly.Msg.TEXT_APPEND_TO = 'to';
  483. /// block input text - Message following the variable and preceding the piece of text that should
  484. /// be appended, as shown below.
  485. /// [[File:blockly-append-text.png]]
  486. Blockly.Msg.TEXT_APPEND_APPENDTEXT = 'append text';
  487. Blockly.Msg.TEXT_APPEND_VARIABLE = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  488. /// tooltip - See [https://github.com/google/blockly/wiki/Text#text-modification https://github.com/google/blockly/wiki/Text#text-modification] for more information.\n\nParameters:\n* %1 - the name of the variable to which text should be appended
  489. Blockly.Msg.TEXT_APPEND_TOOLTIP = 'Append some text to variable "%1".';
  490. /// url - Information about text on computers (usually referred to as 'strings').
  491. Blockly.Msg.TEXT_LENGTH_HELPURL = 'https://github.com/google/blockly/wiki/Text#text-modification';
  492. /// block text - See [https://github.com/google/blockly/wiki/Text#text-length https://github.com/google/blockly/wiki/Text#text-length].
  493. /// \n\nParameters:\n* %1 - the piece of text to take the length of
  494. Blockly.Msg.TEXT_LENGTH_TITLE = 'length of %1';
  495. /// tooltip - See [https://github.com/google/blockly/wiki/Text#text-length https://github.com/google/blockly/wiki/Text#text-length].
  496. Blockly.Msg.TEXT_LENGTH_TOOLTIP = 'Returns the number of letters (including spaces) in the provided text.';
  497. /// url - Information about empty pieces of text on computers (usually referred to as 'empty strings').
  498. Blockly.Msg.TEXT_ISEMPTY_HELPURL = 'https://github.com/google/blockly/wiki/Text#checking-for-empty-text';
  499. /// block text - See [https://github.com/google/blockly/wiki/Text#checking-for-empty-text https://github.com/google/blockly/wiki/Text#checking-for-empty-text].
  500. /// \n\nParameters:\n* %1 - the piece of text to test for emptiness
  501. Blockly.Msg.TEXT_ISEMPTY_TITLE = '%1 is empty';
  502. /// tooltip - See [https://github.com/google/blockly/wiki/Text#checking-for-empty-text https://github.com/google/blockly/wiki/Text#checking-for-empty-text].
  503. Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = 'Returns true if the provided text is empty.';
  504. /// url - Information about finding a character in a piece of text.
  505. Blockly.Msg.TEXT_INDEXOF_HELPURL = 'https://github.com/google/blockly/wiki/Text#finding-text';
  506. /// tooltip - See [https://github.com/google/blockly/wiki/Text#finding-text https://github.com/google/blockly/wiki/Text#finding-text].
  507. Blockly.Msg.TEXT_INDEXOF_TOOLTIP = 'Returns the index of the first/last occurrence of the first text in the second text. Returns 0 if text is not found.';
  508. /// block text - Title of blocks allowing users to find text. See
  509. /// [https://github.com/google/blockly/wiki/Text#finding-text
  510. /// https://github.com/google/blockly/wiki/Text#finding-text].
  511. /// [[File:Blockly-find-text.png]].
  512. Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT = 'in text';
  513. /// dropdown - See [https://github.com/google/blockly/wiki/Text#finding-text
  514. /// https://github.com/google/blockly/wiki/Text#finding-text].
  515. /// [[File:Blockly-find-text.png]].
  516. Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST = 'find first occurrence of text';
  517. /// dropdown - See [https://github.com/google/blockly/wiki/Text#finding-text
  518. /// https://github.com/google/blockly/wiki/Text#finding-text]. This would
  519. /// replace "find first occurrence of text" below. (For more information on
  520. /// how common text is factored out of dropdown menus, see
  521. /// [https://translatewiki.net/wiki/Translating:Blockly#Drop-Down_Menus
  522. /// https://translatewiki.net/wiki/Translating:Blockly#Drop-Down_Menus)].)
  523. /// [[File:Blockly-find-text.png]].
  524. Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST = 'find last occurrence of text';
  525. /// block text - Optional text to follow the rightmost block in a
  526. /// [https://github.com/google/blockly/wiki/Text#finding-text
  527. /// https://github.com/google/blockly/wiki/Text#finding-text in text ... find block]
  528. /// (after the "a" in the below picture). This will be the empty string in most languages.
  529. /// [[File:Blockly-find-text.png]].
  530. Blockly.Msg.TEXT_INDEXOF_TAIL = '';
  531. /// url - Information about extracting characters (letters, number, symbols, etc.) from text.
  532. Blockly.Msg.TEXT_CHARAT_HELPURL = 'https://github.com/google/blockly/wiki/Text#extracting-text';
  533. /// block text - Appears before the piece of text from which a letter (or number,
  534. /// punctuation character, etc.) should be extracted, as shown below. See
  535. /// [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  536. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  537. /// [[File:Blockly-text-get.png]]
  538. Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT = 'in text';
  539. /// dropdown - Indicates that the letter (or number, punctuation character, etc.) with the
  540. /// specified index should be obtained from the preceding piece of text. See
  541. /// [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  542. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  543. /// [[File:Blockly-text-get.png]]
  544. Blockly.Msg.TEXT_CHARAT_FROM_START = 'get letter #';
  545. /// block text - Indicates that the letter (or number, punctuation character, etc.) with the
  546. /// specified index from the end of a given piece of text should be obtained. See
  547. /// [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  548. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  549. /// [[File:Blockly-text-get.png]]
  550. Blockly.Msg.TEXT_CHARAT_FROM_END = 'get letter # from end';
  551. /// block text - Indicates that the first letter of the following piece of text should be
  552. /// retrieved. See [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  553. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  554. /// [[File:Blockly-text-get.png]]
  555. Blockly.Msg.TEXT_CHARAT_FIRST = 'get first letter';
  556. /// block text - Indicates that the last letter (or number, punctuation mark, etc.) of the
  557. /// following piece of text should be retrieved. See
  558. /// [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  559. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  560. /// [[File:Blockly-text-get.png]]
  561. Blockly.Msg.TEXT_CHARAT_LAST = 'get last letter';
  562. /// block text - Indicates that any letter (or number, punctuation mark, etc.) in the
  563. /// following piece of text should be randomly selected. See
  564. /// [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  565. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  566. /// [[File:Blockly-text-get.png]]
  567. Blockly.Msg.TEXT_CHARAT_RANDOM = 'get random letter';
  568. /// block text - Text that goes after the rightmost block/dropdown when getting a single letter from
  569. /// a piece of text, as in [https://blockly-demo.appspot.com/static/apps/code/index.html#3m23km these
  570. /// blocks] or shown below. For most languages, this will be blank.
  571. /// [[File:Blockly-text-get.png]]
  572. Blockly.Msg.TEXT_CHARAT_TAIL = '';
  573. /// tooltip - See [https://github.com/google/blockly/wiki/Text#extracting-a-single-character
  574. /// https://github.com/google/blockly/wiki/Text#extracting-a-single-character].
  575. /// [[File:Blockly-text-get.png]]
  576. Blockly.Msg.TEXT_CHARAT_TOOLTIP = 'Returns the letter at the specified position.';
  577. /// See [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  578. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  579. Blockly.Msg.TEXT_GET_SUBSTRING_TOOLTIP = 'Returns a specified portion of the text.';
  580. /// url - Information about extracting characters from text. Reminder: urls are the
  581. /// lowest priority translations. Feel free to skip.
  582. Blockly.Msg.TEXT_GET_SUBSTRING_HELPURL = 'https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text';
  583. /// block text - Precedes a piece of text from which a portion should be extracted.
  584. /// [[File:Blockly-get-substring.png]]
  585. Blockly.Msg.TEXT_GET_SUBSTRING_INPUT_IN_TEXT = 'in text';
  586. /// dropdown - Indicates that the following number specifies the position (relative to the start
  587. /// position) of the beginning of the region of text that should be obtained from the preceding
  588. /// piece of text. See [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  589. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  590. /// [[File:Blockly-get-substring.png]]
  591. Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START = 'get substring from letter #';
  592. /// dropdown - Indicates that the following number specifies the position (relative to the end
  593. /// position) of the beginning of the region of text that should be obtained from the preceding
  594. /// piece of text. See [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  595. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  596. /// Note: If {{msg-Blockly|ORDINAL_NUMBER_SUFFIX}} is defined, it will
  597. /// automatically appear ''after'' this and any other
  598. /// [https://translatewiki.net/wiki/Translating:Blockly#Ordinal_numbers ordinal numbers]
  599. /// on this block.
  600. /// [[File:Blockly-get-substring.png]]
  601. Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_END = 'get substring from letter # from end';
  602. /// block text - Indicates that a region starting with the first letter of the preceding piece
  603. /// of text should be extracted. See
  604. /// [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  605. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  606. /// [[File:Blockly-get-substring.png]]
  607. Blockly.Msg.TEXT_GET_SUBSTRING_START_FIRST = 'get substring from first letter';
  608. /// dropdown - Indicates that the following number specifies the position (relative to
  609. /// the start position) of the end of the region of text that should be obtained from the
  610. /// preceding piece of text. See
  611. /// [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  612. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  613. /// [[File:Blockly-get-substring.png]]
  614. Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_START = 'to letter #';
  615. /// dropdown - Indicates that the following number specifies the position (relative to the
  616. /// end position) of the end of the region of text that should be obtained from the preceding
  617. /// piece of text. See
  618. /// [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  619. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  620. /// [[File:Blockly-get-substring.png]]
  621. Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_END = 'to letter # from end';
  622. /// block text - Indicates that a region ending with the last letter of the preceding piece
  623. /// of text should be extracted. See
  624. /// [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  625. /// https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text].
  626. /// [[File:Blockly-get-substring.png]]
  627. Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST = 'to last letter';
  628. /// block text - Text that should go after the rightmost block/dropdown when
  629. /// [https://github.com/google/blockly/wiki/Text#extracting-a-region-of-text
  630. /// extracting a region of text]. In most languages, this will be the empty string.
  631. /// [[File:Blockly-get-substring.png]]
  632. Blockly.Msg.TEXT_GET_SUBSTRING_TAIL = '';
  633. /// url - Information about the case of letters (upper-case and lower-case).
  634. Blockly.Msg.TEXT_CHANGECASE_HELPURL = 'https://github.com/google/blockly/wiki/Text#adjusting-text-case';
  635. /// tooltip - Describes a block to adjust the case of letters. For more information on this block,
  636. /// see [https://github.com/google/blockly/wiki/Text#adjusting-text-case
  637. /// https://github.com/google/blockly/wiki/Text#adjusting-text-case].
  638. Blockly.Msg.TEXT_CHANGECASE_TOOLTIP = 'Return a copy of the text in a different case.';
  639. /// block text - Indicates that all of the letters in the following piece of text should be
  640. /// capitalized. If your language does not use case, you may indicate that this is not
  641. /// applicable to your language. For more information on this block, see
  642. /// [https://github.com/google/blockly/wiki/Text#adjusting-text-case
  643. /// https://github.com/google/blockly/wiki/Text#adjusting-text-case].
  644. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE = 'to UPPER CASE';
  645. /// block text - Indicates that all of the letters in the following piece of text should be converted to lower-case. If your language does not use case, you may indicate that this is not applicable to your language. For more information on this block, see [https://github.com/google/blockly/wiki/Text#adjusting-text-case https://github.com/google/blockly/wiki/Text#adjusting-text-case].
  646. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE = 'to lower case';
  647. /// block text - Indicates that the first letter of each of the following words should be capitalized and the rest converted to lower-case. If your language does not use case, you may indicate that this is not applicable to your language. For more information on this block, see [https://github.com/google/blockly/wiki/Text#adjusting-text-case https://github.com/google/blockly/wiki/Text#adjusting-text-case].
  648. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE = 'to Title Case';
  649. /// url - Information about trimming (removing) text off the beginning and ends of pieces of text.
  650. Blockly.Msg.TEXT_TRIM_HELPURL = 'https://github.com/google/blockly/wiki/Text#trimming-removing-spaces';
  651. /// tooltip - See [https://github.com/google/blockly/wiki/Text#trimming-removing-spaces
  652. /// https://github.com/google/blockly/wiki/Text#trimming-removing-spaces].
  653. Blockly.Msg.TEXT_TRIM_TOOLTIP = 'Return a copy of the text with spaces removed from one or both ends.';
  654. /// dropdown - Removes spaces from the beginning and end of a piece of text. See
  655. /// [https://github.com/google/blockly/wiki/Text#trimming-removing-spaces
  656. /// https://github.com/google/blockly/wiki/Text#trimming-removing-spaces]. Note that neither
  657. /// this nor the other options modify the original piece of text (that follows);
  658. /// the block just returns a version of the text without the specified spaces.
  659. Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH = 'trim spaces from both sides of';
  660. /// dropdown - Removes spaces from the beginning of a piece of text. See
  661. /// [https://github.com/google/blockly/wiki/Text#trimming-removing-spaces
  662. /// https://github.com/google/blockly/wiki/Text#trimming-removing-spaces].
  663. /// Note that in right-to-left scripts, this will remove spaces from the right side.
  664. Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT = 'trim spaces from left side of';
  665. /// dropdown - Removes spaces from the end of a piece of text. See
  666. /// [https://github.com/google/blockly/wiki/Text#trimming-removing-spaces
  667. /// https://github.com/google/blockly/wiki/Text#trimming-removing-spaces].
  668. /// Note that in right-to-left scripts, this will remove spaces from the left side.
  669. Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT = 'trim spaces from right side of';
  670. /// url - Information about displaying text on computers.
  671. Blockly.Msg.TEXT_PRINT_HELPURL = 'https://github.com/google/blockly/wiki/Text#printing-text';
  672. /// block text - Display the input on the screen. See
  673. /// [https://github.com/google/blockly/wiki/Text#printing-text
  674. /// https://github.com/google/blockly/wiki/Text#printing-text].
  675. /// \n\nParameters:\n* %1 - the value to print
  676. Blockly.Msg.TEXT_PRINT_TITLE = 'print %1';
  677. /// tooltip - See [https://github.com/google/blockly/wiki/Text#printing-text
  678. /// https://github.com/google/blockly/wiki/Text#printing-text].
  679. Blockly.Msg.TEXT_PRINT_TOOLTIP = 'Print the specified text, number or other value.';
  680. /// url - Information about getting text from users.
  681. Blockly.Msg.TEXT_PROMPT_HELPURL = 'https://github.com/google/blockly/wiki/Text#getting-input-from-the-user';
  682. /// dropdown - Specifies that a piece of text should be requested from the user with
  683. /// the following message. See [https://github.com/google/blockly/wiki/Text#printing-text
  684. /// https://github.com/google/blockly/wiki/Text#printing-text].
  685. Blockly.Msg.TEXT_PROMPT_TYPE_TEXT = 'prompt for text with message';
  686. /// dropdown - Specifies that a number should be requested from the user with the
  687. /// following message. See [https://github.com/google/blockly/wiki/Text#printing-text
  688. /// https://github.com/google/blockly/wiki/Text#printing-text].
  689. Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER = 'prompt for number with message';
  690. /// dropdown - Precedes the message with which the user should be prompted for
  691. /// a number. See [https://github.com/google/blockly/wiki/Text#printing-text
  692. /// https://github.com/google/blockly/wiki/Text#printing-text].
  693. Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = 'Prompt for user for a number.';
  694. /// dropdown - Precedes the message with which the user should be prompted for some text.
  695. /// See [https://github.com/google/blockly/wiki/Text#printing-text
  696. /// https://github.com/google/blockly/wiki/Text#printing-text].
  697. Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = 'Prompt for user for some text.';
  698. // Lists Blocks.
  699. /// url - Information on empty lists.
  700. Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = 'https://github.com/google/blockly/wiki/Lists#create-empty-list';
  701. /// block text - See [https://github.com/google/blockly/wiki/Lists#create-empty-list https://github.com/google/blockly/wiki/Lists#create-empty-list].
  702. Blockly.Msg.LISTS_CREATE_EMPTY_TITLE = 'create empty list';
  703. /// block text - See [https://github.com/google/blockly/wiki/Lists#create-empty-list https://github.com/google/blockly/wiki/Lists#create-empty-list].
  704. Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP = 'Returns a list, of length 0, containing no data records';
  705. /// url - Information on building lists.
  706. Blockly.Msg.LISTS_CREATE_WITH_HELPURL = 'https://github.com/google/blockly/wiki/Lists#create-list-with';
  707. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#create-list-with https://github.com/google/blockly/wiki/Lists#create-list-with].
  708. Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP = 'Create a list with any number of items.';
  709. /// block text - See [https://github.com/google/blockly/wiki/Lists#create-list-with https://github.com/google/blockly/wiki/Lists#create-list-with].
  710. Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH = 'create list with';
  711. /// block text - This appears in a sub-block when [https://github.com/google/blockly/wiki/Lists#changing-number-of-inputs changing the number of inputs in a ''''create list with'''' block].\n{{Identical|List}}
  712. Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD = 'list';
  713. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#changing-number-of-inputs https://github.com/google/blockly/wiki/Lists#changing-number-of-inputs].
  714. Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this list block.';
  715. Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  716. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#changing-number-of-inputs https://github.com/google/blockly/wiki/Lists#changing-number-of-inputs].
  717. Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP = 'Add an item to the list.';
  718. /// url - Information about [https://github.com/google/blockly/wiki/Lists#create-list-with creating a list with multiple copies of a single item].
  719. Blockly.Msg.LISTS_REPEAT_HELPURL = 'https://github.com/google/blockly/wiki/Lists#create-list-with';
  720. /// url - See [https://github.com/google/blockly/wiki/Lists#create-list-with creating a list with multiple copies of a single item].
  721. Blockly.Msg.LISTS_REPEAT_TOOLTIP = 'Creates a list consisting of the given value repeated the specified number of times.';
  722. /// block text - See [https://github.com/google/blockly/wiki/Lists#create-list-with
  723. /// https://github.com/google/blockly/wiki/Lists#create-list-with].
  724. ///\n\nParameters:\n* %1 - the item (text) to be repeated\n* %2 - the number of times to repeat it
  725. Blockly.Msg.LISTS_REPEAT_TITLE = 'Create list with item %1 repeated %2 times';
  726. /// url - Information about how the length of a list is computed (i.e., by the total number of elements, not the number of different elements).
  727. Blockly.Msg.LISTS_LENGTH_HELPURL = 'https://github.com/google/blockly/wiki/Lists#length-of';
  728. /// block text - See [https://github.com/google/blockly/wiki/Lists#length-of https://github.com/google/blockly/wiki/Lists#length-of].
  729. /// \n\nParameters:\n* %1 - the list whose length is desired
  730. Blockly.Msg.LISTS_LENGTH_TITLE = 'length of %1';
  731. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#length-of https://github.com/google/blockly/wiki/Lists#length-of Blockly:Lists:length of].
  732. Blockly.Msg.LISTS_LENGTH_TOOLTIP = 'Returns the length of a list.';
  733. /// url - See [https://github.com/google/blockly/wiki/Lists#is-empty https://github.com/google/blockly/wiki/Lists#is-empty].
  734. Blockly.Msg.LISTS_ISEMPTY_HELPURL = 'https://github.com/google/blockly/wiki/Lists#is-empty';
  735. /// block text - See [https://github.com/google/blockly/wiki/Lists#is-empty
  736. /// https://github.com/google/blockly/wiki/Lists#is-empty].
  737. /// \n\nParameters:\n* %1 - the list to test
  738. Blockly.Msg.LISTS_ISEMPTY_TITLE = '%1 is empty';
  739. /// block tooltip - See [https://github.com/google/blockly/wiki/Lists#is-empty
  740. /// https://github.com/google/blockly/wiki/Lists#is-empty].
  741. Blockly.Msg.LISTS_ISEMPTY_TOOLTIP = 'Returns true if the list is empty.';
  742. /// block text - Title of blocks operating on [https://github.com/google/blockly/wiki/Lists lists].
  743. Blockly.Msg.LISTS_INLIST = 'in list';
  744. /// url - See [https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list
  745. /// https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list].
  746. Blockly.Msg.LISTS_INDEX_OF_HELPURL = 'https://github.com/google/blockly/wiki/Lists#getting-items-from-a-list';
  747. Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  748. /// dropdown - See [https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list
  749. /// Lists#finding-items-in-a-list].
  750. /// [[File:Blockly-list-find.png]]
  751. Blockly.Msg.LISTS_INDEX_OF_FIRST = 'find first occurrence of item';
  752. /// dropdown - See [https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list
  753. /// https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list].
  754. /// [[File:Blockly-list-find.png]]
  755. Blockly.Msg.LISTS_INDEX_OF_LAST = 'find last occurrence of item';
  756. /// dropdown - See [https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list
  757. /// https://github.com/google/blockly/wiki/Lists#finding-items-in-a-list].
  758. /// [[File:Blockly-list-find.png]]
  759. Blockly.Msg.LISTS_INDEX_OF_TOOLTIP = 'Returns the index of the first/last occurrence of the item in the list. Returns 0 if item is not found.';
  760. Blockly.Msg.LISTS_GET_INDEX_HELPURL = Blockly.Msg.LISTS_INDEX_OF_HELPURL;
  761. /// dropdown - Indicates that the user wishes to
  762. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  763. /// get an item from a list] without removing it from the list.
  764. Blockly.Msg.LISTS_GET_INDEX_GET = 'get';
  765. /// dropdown - Indicates that the user wishes to
  766. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  767. /// get and remove an item from a list], as opposed to merely getting
  768. /// it without modifying the list.
  769. Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE = 'get and remove';
  770. /// dropdown - Indicates that the user wishes to
  771. /// [https://github.com/google/blockly/wiki/Lists#removing-an-item
  772. /// remove an item from a list].\n{{Identical|Remove}}
  773. Blockly.Msg.LISTS_GET_INDEX_REMOVE = 'remove';
  774. /// dropdown - Indicates that an index relative to the front of the list should be used to
  775. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item get and/or remove
  776. /// an item from a list]. Note: If {{msg-Blockly|ORDINAL_NUMBER_SUFFIX}} is defined, it will
  777. /// automatically appear ''after'' this number (and any other ordinal numbers on this block).
  778. /// See [[Translating:Blockly#Ordinal_numbers]] for more information on ordinal numbers in Blockly.
  779. /// [[File:Blockly-list-get-item.png]]
  780. Blockly.Msg.LISTS_GET_INDEX_FROM_START = '#';
  781. /// dropdown - Indicates that an index relative to the end of the list should be used
  782. /// to [https://github.com/google/blockly/wiki/Lists#getting-a-single-item access an item in a list].
  783. /// [[File:Blockly-list-get-item.png]]
  784. Blockly.Msg.LISTS_GET_INDEX_FROM_END = '# from end';
  785. /// dropdown - Indicates that the '''first''' item should be
  786. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item accessed in a list].
  787. /// [[File:Blockly-list-get-item.png]]
  788. Blockly.Msg.LISTS_GET_INDEX_FIRST = 'first';
  789. /// dropdown - Indicates that the '''last''' item should be
  790. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item accessed in a list].
  791. /// [[File:Blockly-list-get-item.png]]
  792. Blockly.Msg.LISTS_GET_INDEX_LAST = 'last';
  793. /// dropdown - Indicates that a '''random''' item should be
  794. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item accessed in a list].
  795. /// [[File:Blockly-list-get-item.png]]
  796. Blockly.Msg.LISTS_GET_INDEX_RANDOM = 'random';
  797. /// block text - Text that should go after the rightmost block/dropdown when
  798. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  799. /// accessing an item from a list]. In most languages, this will be the empty string.
  800. /// [[File:Blockly-list-get-item.png]]
  801. Blockly.Msg.LISTS_GET_INDEX_TAIL = '';
  802. Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  803. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  804. /// https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for more information.
  805. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_START = 'Returns the item at the specified position in a list. #1 is the first item.';
  806. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  807. /// https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for more information.
  808. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_END = 'Returns the item at the specified position in a list. #1 is the last item.';
  809. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  810. /// https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for more information.
  811. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST = 'Returns the first item in a list.';
  812. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  813. /// https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for more information.
  814. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST = 'Returns the last item in a list.';
  815. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item
  816. /// https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for more information.
  817. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM = 'Returns a random item in a list.';
  818. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item]
  819. /// (for remove and return) and
  820. /// [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for '# from start'.
  821. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_START = 'Removes and returns the item at the specified position in a list. #1 is the first item.';
  822. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for '# from end'.
  823. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_END = 'Removes and returns the item at the specified position in a list. #1 is the last item.';
  824. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for 'first'.
  825. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST = 'Removes and returns the first item in a list.';
  826. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for 'last'.
  827. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST = 'Removes and returns the last item in a list.';
  828. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for 'random'.
  829. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM = 'Removes and returns a random item in a list.';
  830. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for '# from start'.
  831. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_START = 'Removes the item at the specified position in a list. #1 is the first item.';
  832. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for '# from end'.
  833. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_END = 'Removes the item at the specified position in a list. #1 is the last item.';
  834. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for 'first'.
  835. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST = 'Removes the first item in a list.';
  836. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for 'last'.
  837. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST = 'Removes the last item in a list.';
  838. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-and-removing-an-item] (for remove and return) and [https://github.com/google/blockly/wiki/Lists#getting-a-single-item] for 'random'.
  839. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM = 'Removes a random item in a list.';
  840. /// url - Information about putting items in lists.
  841. Blockly.Msg.LISTS_SET_INDEX_HELPURL = 'https://github.com/google/blockly/wiki/Lists#in-list--set';
  842. Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  843. /// block text - [https://github.com/google/blockly/wiki/Lists#in-list--set
  844. /// Replaces an item in a list].
  845. /// [[File:Blockly-in-list-set-insert.png]]
  846. Blockly.Msg.LISTS_SET_INDEX_SET = 'set';
  847. /// block text - [https://github.com/google/blockly/wiki/Lists#in-list--insert-at
  848. /// Inserts an item into a list].
  849. /// [[File:Blockly-in-list-set-insert.png]]
  850. Blockly.Msg.LISTS_SET_INDEX_INSERT = 'insert at';
  851. /// block text - The word(s) after the position in the list and before the item to be set/inserted.
  852. /// [[File:Blockly-in-list-set-insert.png]]
  853. Blockly.Msg.LISTS_SET_INDEX_INPUT_TO = 'as';
  854. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  855. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_START = 'Sets the item at the specified position in a list. #1 is the first item.';
  856. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  857. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_END = 'Sets the item at the specified position in a list. #1 is the last item.';
  858. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  859. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST = 'Sets the first item in a list.';
  860. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  861. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST = 'Sets the last item in a list.';
  862. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  863. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM = 'Sets a random item in a list.';
  864. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  865. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_START = 'Inserts the item at the specified position in a list. #1 is the first item.';
  866. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  867. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_END = 'Inserts the item at the specified position in a list. #1 is the last item.';
  868. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  869. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST = 'Inserts the item at the start of a list.';
  870. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  871. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST = 'Append the item to the end of a list.';
  872. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-single-item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  873. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM = 'Inserts the item randomly in a list.';
  874. /// url - Information describing extracting a sublist from an existing list.
  875. Blockly.Msg.LISTS_GET_SUBLIST_HELPURL = 'https://github.com/google/blockly/wiki/Lists#getting-a-sublist';
  876. Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  877. /// dropdown - Indicates that an index relative to the front of the list should be used
  878. /// to specify the beginning of the range from which to
  879. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist get a sublist].
  880. /// [[File:Blockly-get-sublist.png]]
  881. /// Note: If {{msg-Blockly|ORDINAL_NUMBER_SUFFIX}} is defined, it will
  882. /// automatically appear ''after'' this number (and any other ordinal numbers on this block).
  883. /// See [[Translating:Blockly#Ordinal_numbers]] for more information on ordinal numbers in Blockly.
  884. Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_START = 'get sub-list from #';
  885. /// dropdown - Indicates that an index relative to the end of the list should be used
  886. /// to specify the beginning of the range from which to
  887. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist get a sublist].
  888. Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_END = 'get sub-list from # from end';
  889. /// dropdown - Indicates that the
  890. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist sublist to extract]
  891. /// should begin with the list's first item.
  892. Blockly.Msg.LISTS_GET_SUBLIST_START_FIRST = 'get sub-list from first';
  893. /// dropdown - Indicates that an index relative to the front of the list should be
  894. /// used to specify the end of the range from which to
  895. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist get a sublist].
  896. /// [[File:Blockly-get-sublist.png]]
  897. Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_START = 'to #';
  898. /// dropdown - Indicates that an index relative to the end of the list should be
  899. /// used to specify the end of the range from which to
  900. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist get a sublist].
  901. /// [[File:Blockly-get-sublist.png]]
  902. Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_END = 'to # from end';
  903. /// dropdown - Indicates that the '''last''' item in the given list should be
  904. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist the end
  905. /// of the selected sublist].
  906. /// [[File:Blockly-get-sublist.png]]
  907. Blockly.Msg.LISTS_GET_SUBLIST_END_LAST = 'to last';
  908. /// block text - This appears in the rightmost position ("tail") of the
  909. /// sublist block, as described at
  910. /// [https://github.com/google/blockly/wiki/Lists#getting-a-sublist
  911. /// https://github.com/google/blockly/wiki/Lists#getting-a-sublist].
  912. /// In English and most other languages, this is the empty string.
  913. /// [[File:Blockly-get-sublist.png]]
  914. Blockly.Msg.LISTS_GET_SUBLIST_TAIL = '';
  915. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#getting-a-sublist
  916. /// https://github.com/google/blockly/wiki/Lists#getting-a-sublist] for more information.
  917. /// [[File:Blockly-get-sublist.png]]
  918. Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = 'Creates a copy of the specified portion of a list.';
  919. /// url - Information describing sorting a list.
  920. Blockly.Msg.LISTS_SORT_HELPURL = 'https://github.com/google/blockly/wiki/Lists#sorting-a-list';
  921. /// Sort as type %1 (numeric or alphabetic) in order %2 (ascending or descending) a list of items %3.
  922. Blockly.Msg.LISTS_SORT_TITLE = 'sort %1 %2 %3';
  923. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#sorting-a-list].
  924. Blockly.Msg.LISTS_SORT_TOOLTIP = 'Sort a copy of a list.';
  925. /// sorting order or direction from low to high value for numeric, or A-Z for alphabetic.\n{{Identical|Ascending}}
  926. Blockly.Msg.LISTS_SORT_ORDER_ASCENDING = 'ascending';
  927. /// sorting order or direction from high to low value for numeric, or Z-A for alphabetic.\n{{Identical|Descending}}
  928. Blockly.Msg.LISTS_SORT_ORDER_DESCENDING = 'descending';
  929. /// sort by treating each item as a number.
  930. Blockly.Msg.LISTS_SORT_TYPE_NUMERIC = 'numeric';
  931. /// sort by treating each item alphabetically, case-sensitive.
  932. Blockly.Msg.LISTS_SORT_TYPE_TEXT = 'alphabetic';
  933. /// sort by treating each item alphabetically, ignoring differences in case.
  934. Blockly.Msg.LISTS_SORT_TYPE_IGNORECASE = 'alphabetic, ignore case';
  935. /// url - Information describing splitting text into a list, or joining a list into text.
  936. Blockly.Msg.LISTS_SPLIT_HELPURL = 'https://github.com/google/blockly/wiki/Lists#splitting-strings-and-joining-lists';
  937. /// dropdown - Indicates that text will be split up into a list (e.g. "a-b-c" -> ["a", "b", "c"]).
  938. Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT = 'make list from text';
  939. /// dropdown - Indicates that a list will be joined together to form text (e.g. ["a", "b", "c"] -> "a-b-c").
  940. Blockly.Msg.LISTS_SPLIT_TEXT_FROM_LIST = 'make text from list';
  941. /// block text - Prompts for a letter to be used as a separator when splitting or joining text.
  942. Blockly.Msg.LISTS_SPLIT_WITH_DELIMITER = 'with delimiter';
  943. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#make-list-from-text
  944. /// https://github.com/google/blockly/wiki/Lists#make-list-from-text] for more information.
  945. Blockly.Msg.LISTS_SPLIT_TOOLTIP_SPLIT = 'Split text into a list of texts, breaking at each delimiter.';
  946. /// tooltip - See [https://github.com/google/blockly/wiki/Lists#make-text-from-list
  947. /// https://github.com/google/blockly/wiki/Lists#make-text-from-list] for more information.
  948. Blockly.Msg.LISTS_SPLIT_TOOLTIP_JOIN = 'Join a list of texts into one text, separated by a delimiter.';
  949. /// grammar - Text that follows an ordinal number (a number that indicates
  950. /// position relative to other numbers). In most languages, such text appears
  951. /// before the number, so this should be blank. An exception is Hungarian.
  952. /// See [[Translating:Blockly#Ordinal_numbers]] for more information.
  953. Blockly.Msg.ORDINAL_NUMBER_SUFFIX = '';
  954. // Variables Blocks.
  955. /// url - Information about ''variables'' in computer programming. Consider using your language's translation of [https://en.wikipedia.org/wiki/Variable_(computer_science) https://en.wikipedia.org/wiki/Variable_(computer_science)], if it exists.
  956. Blockly.Msg.VARIABLES_GET_HELPURL = 'https://github.com/google/blockly/wiki/Variables#get';
  957. /// tooltip - This gets the value of the named variable without modifying it.
  958. Blockly.Msg.VARIABLES_GET_TOOLTIP = 'Returns the value of this variable.';
  959. /// context menu - Selecting this creates a block to set (change) the value of this variable.
  960. /// \n\nParameters:\n* %1 - the name of the variable.
  961. Blockly.Msg.VARIABLES_GET_CREATE_SET = 'Create "set %1"';
  962. /// url - Information about ''variables'' in computer programming. Consider using your language's translation of [https://en.wikipedia.org/wiki/Variable_(computer_science) https://en.wikipedia.org/wiki/Variable_(computer_science)], if it exists.
  963. Blockly.Msg.VARIABLES_SET_HELPURL = 'https://github.com/google/blockly/wiki/Variables#set';
  964. /// block text - Change the value of a mathematical variable: '''set [the value of] x to 7'''.\n\nParameters:\n* %1 - the name of the variable.\n* %2 - the value to be assigned.
  965. Blockly.Msg.VARIABLES_SET = 'set %1 to %2';
  966. /// tooltip - This initializes or changes the value of the named variable.
  967. Blockly.Msg.VARIABLES_SET_TOOLTIP = 'Sets this variable to be equal to the input.';
  968. /// context menu - Selecting this creates a block to get (change) the value of
  969. /// this variable.\n\nParameters:\n* %1 - the name of the variable.
  970. Blockly.Msg.VARIABLES_SET_CREATE_GET = 'Create "get %1"';
  971. // Procedures Blocks.
  972. /// url - Information about defining [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that do not have return values.
  973. Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  974. /// block text - This precedes the name of the function when defining it. See
  975. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#c84aoc this sample
  976. /// function definition].
  977. Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = 'to';
  978. /// default name - This acts as a placeholder for the name of a function on a
  979. /// function definition block, as shown on
  980. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#w7cfju this block].
  981. /// The user will replace it with the function's name.
  982. Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = 'do something';
  983. /// block text - This precedes the list of parameters on a function's defiition block. See
  984. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#voztpd this sample
  985. /// function with parameters].
  986. Blockly.Msg.PROCEDURES_BEFORE_PARAMS = 'with:';
  987. /// block text - This precedes the list of parameters on a function's caller block. See
  988. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#voztpd this sample
  989. /// function with parameters].
  990. Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS = 'with:';
  991. /// block text - This appears next to the function's "body", the blocks that should be
  992. /// run when the function is called, as shown in
  993. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#voztpd this sample
  994. /// function definition].
  995. Blockly.Msg.PROCEDURES_DEFNORETURN_DO = '';
  996. /// tooltip
  997. Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP = 'Creates a function with no output.';
  998. /// Placeholder text that the user is encouraged to replace with a description of what their function does.
  999. Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT = 'Describe this function...';
  1000. /// url - Information about defining [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that have return values.
  1001. Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  1002. Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE;
  1003. Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE;
  1004. Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO;
  1005. Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT = Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT;
  1006. /// block text - This imperative or infinite verb precedes the value that is used as the return value
  1007. /// (output) of this function. See
  1008. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#6ot5y5 this sample
  1009. /// function that returns a value].
  1010. Blockly.Msg.PROCEDURES_DEFRETURN_RETURN = 'return';
  1011. /// tooltip
  1012. Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP = 'Creates a function with an output.';
  1013. /// Label for a checkbox that controls if statements are allowed in a function.
  1014. Blockly.Msg.PROCEDURES_ALLOW_STATEMENTS = 'allow statements';
  1015. /// alert - The user has created a function with two parameters that have the same name. Every parameter must have a different name.
  1016. Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING = 'Warning: This function has duplicate parameters.';
  1017. /// url - Information about calling [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that do not return values.
  1018. Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  1019. /// tooltip - This block causes the body (blocks inside) of the named function definition to be run.
  1020. Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP = 'Run the user-defined function "%1".';
  1021. /// url - Information about calling [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that return values.
  1022. Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  1023. /// tooltip - This block causes the body (blocks inside) of the named function definition to be run.\n\nParameters:\n* %1 - the name of the function.
  1024. Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP = 'Run the user-defined function "%1" and use its output.';
  1025. /// block text - This text appears on a block in a window that appears when the user clicks
  1026. /// on the plus sign or star on a function definition block. It refers to the set of parameters
  1027. /// (referred to by the simpler term "inputs") to the function. See
  1028. /// [[Translating:Blockly#function_definitions]].
  1029. Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE = 'inputs';
  1030. /// tooltip
  1031. Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TOOLTIP = 'Add, remove, or reorder inputs to this function.';
  1032. /// block text - This text appears on a block in a window that appears when the user clicks
  1033. /// on the plus sign or star on a function definition block]. It appears on the block for
  1034. /// adding an individual parameter (referred to by the simpler term "inputs") to the function.
  1035. /// See [[Translating:Blockly#function_definitions]].
  1036. Blockly.Msg.PROCEDURES_MUTATORARG_TITLE = 'input name:';
  1037. /// tooltip
  1038. Blockly.Msg.PROCEDURES_MUTATORARG_TOOLTIP = 'Add an input to the function.';
  1039. /// context menu - This appears on the context menu for function calls. Selecting
  1040. /// it causes the corresponding function definition to be highlighted (as shown at
  1041. /// [[Translating:Blockly#context_menus]].
  1042. Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF = 'Highlight function definition';
  1043. /// context menu - This appears on the context menu for function definitions.
  1044. /// Selecting it creates a block to call the function.\n\nParameters:\n* %1 - the name of the function.\n{{Identical|Create}}
  1045. Blockly.Msg.PROCEDURES_CREATE_DO = 'Create "%1"';
  1046. /// tooltip - If the first value is true, this causes the second value to be returned
  1047. /// immediately from the enclosing function.
  1048. Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP = 'If a value is true, then return a second value.';
  1049. /// url - Information about guard clauses.
  1050. Blockly.Msg.PROCEDURES_IFRETURN_HELPURL = 'http://c2.com/cgi/wiki?GuardClause';
  1051. /// warning - This appears if the user tries to use this block outside of a function definition.
  1052. Blockly.Msg.PROCEDURES_IFRETURN_WARNING = 'Warning: This block may be used only within a function definition.';
  1053. /// Ardublockly Types
  1054. Blockly.Msg.ARD_TYPE_CHAR = 'Character';
  1055. Blockly.Msg.ARD_TYPE_TEXT = 'Text';
  1056. Blockly.Msg.ARD_TYPE_BOOL = 'Boolean';
  1057. Blockly.Msg.ARD_TYPE_SHORT = 'Short Number';
  1058. Blockly.Msg.ARD_TYPE_NUMBER = 'Number';
  1059. Blockly.Msg.ARD_TYPE_LONG = 'Large Number';
  1060. Blockly.Msg.ARD_TYPE_DECIMAL = 'Decimal';
  1061. Blockly.Msg.ARD_TYPE_ARRAY = 'Array';
  1062. Blockly.Msg.ARD_TYPE_NULL = 'Null';
  1063. Blockly.Msg.ARD_TYPE_UNDEF = 'Undefined';
  1064. Blockly.Msg.ARD_TYPE_CHILDBLOCKMISSING = 'ChildBlockMissing';
  1065. /// Arduino Blocks
  1066. Blockly.Msg.ARD_HIGH = 'HIGH';
  1067. Blockly.Msg.ARD_LOW = 'LOW';
  1068. Blockly.Msg.ARD_ANALOGREAD = 'read analog pin#';
  1069. Blockly.Msg.ARD_ANALOGREAD_TIP = 'Return value between 0 and 1024';
  1070. Blockly.Msg.ARD_ANALOGWRITE = 'set analog pin#';
  1071. Blockly.Msg.ARD_VALUE = "value";
  1072. Blockly.Msg.ARD_ANALOGWRITE_TIP = 'Write analog value between 0 and 255 to a specific PWM Port';
  1073. Blockly.Msg.ARD_HIGHLOW_TIP = 'Set a pin state logic High or Low.';
  1074. Blockly.Msg.ARD_DIGITALREAD = 'read digital pin#';
  1075. Blockly.Msg.ARD_DIGITALREAD_TIP = 'Read digital value on a pin: HIGH or LOW';
  1076. Blockly.Msg.ARD_DIGITALWRITE = 'set digital pin#';
  1077. Blockly.Msg.ARD_WRITE_TO = 'to';
  1078. Blockly.Msg.ARD_DIGITALWRITE_TIP = 'Write digital value HIGH or LOW to a specific Port';
  1079. Blockly.Msg.ARD_BUILTIN_LED = 'set built-in LED';
  1080. Blockly.Msg.ARD_BUILTIN_LED_TIP = 'Light on or off for the built-in LED of the Arduino';
  1081. Blockly.Msg.ARD_DEFINE = 'Define';
  1082. Blockly.Msg.ARD_TONE_PIN = 'Tone PIN#';
  1083. Blockly.Msg.ARD_TONE_FREQ = 'frequency';
  1084. Blockly.Msg.ARD_TONE_PIN_TIP = 'Generate audio tones on a pin';
  1085. Blockly.Msg.ARD_NOTONE_PIN = 'No tone PIN#';
  1086. Blockly.Msg.ARD_NOTONE_PIN_TIP = 'Stop generating a tone on a pin';
  1087. Blockly.Msg.ARD_MAP = 'Map';
  1088. Blockly.Msg.ARD_MAP_VAL = 'value to [0-';
  1089. Blockly.Msg.ARD_MAP_TIP = 'Re-maps a number from [0-1024] to another.';
  1090. Blockly.Msg.ARD_FUN_RUN_SETUP = 'Arduino run first:';
  1091. Blockly.Msg.ARD_FUN_RUN_LOOP = 'Arduino loop forever:';
  1092. Blockly.Msg.ARD_FUN_RUN_TIP = 'Defines the Arduino setup() and loop() functions.';
  1093. Blockly.Msg.ARD_PIN_WARN1 = 'Pin %1 is needed for %2 as pin %3. Already used as %4.';
  1094. Blockly.Msg.ARD_SERIAL_SETUP = 'Setup';
  1095. Blockly.Msg.ARD_SERIAL_SPEED = ': speed to';
  1096. Blockly.Msg.ARD_SERIAL_BPS = 'bps';
  1097. Blockly.Msg.ARD_SERIAL_SETUP_TIP = 'Selects the speed for a specific Serial peripheral';
  1098. Blockly.Msg.ARD_SERIAL_PRINT = 'print';
  1099. Blockly.Msg.ARD_SERIAL_PRINT_NEWLINE = 'add new line';
  1100. Blockly.Msg.ARD_SERIAL_PRINT_TIP = 'Prints data to the console/serial port as human-readable ASCII text.';
  1101. Blockly.Msg.ARD_SERIAL_PRINT_WARN = 'A setup block for %1 must be added to the workspace to use this block!'
  1102. Blockly.Msg.ARD_SERVO_WRITE = 'set SERVO from Pin';
  1103. Blockly.Msg.ARD_SERVO_WRITE_TO = 'to';
  1104. Blockly.Msg.ARD_SERVO_WRITE_DEG_180 = 'Degrees (0~180)';
  1105. Blockly.Msg.ARD_SERVO_WRITE_TIP = 'Set a Servo to an specified angle';
  1106. Blockly.Msg.ARD_SERVO_READ = 'read SERVO from PIN#';
  1107. Blockly.Msg.ARD_SERVO_READ_TIP = 'Read a Servo angle';
  1108. Blockly.Msg.ARD_SPI_SETUP = 'Setup';
  1109. Blockly.Msg.ARD_SPI_SETUP_CONF = 'configuration:';
  1110. Blockly.Msg.ARD_SPI_SETUP_SHIFT = 'data shift';
  1111. Blockly.Msg.ARD_SPI_SETUP_MSBFIRST = 'MSBFIRST';
  1112. Blockly.Msg.ARD_SPI_SETUP_LSBFIRST = 'LSBFIRST';
  1113. Blockly.Msg.ARD_SPI_SETUP_DIVIDE = 'clock divide';
  1114. Blockly.Msg.ARD_SPI_SETUP_MODE = 'SPI mode (idle - edge)';
  1115. Blockly.Msg.ARD_SPI_SETUP_MODE0 = '0 (Low - Falling)';
  1116. Blockly.Msg.ARD_SPI_SETUP_MODE1 = '1 (Low - Rising)';
  1117. Blockly.Msg.ARD_SPI_SETUP_MODE2 = '2 (High - Falling)';
  1118. Blockly.Msg.ARD_SPI_SETUP_MODE3 = '3 (High - Rising)';
  1119. Blockly.Msg.ARD_SPI_SETUP_TIP = 'Configures the SPI peripheral.';
  1120. Blockly.Msg.ARD_SPI_TRANS_NONE = 'none';
  1121. Blockly.Msg.ARD_SPI_TRANS_VAL = 'transfer';
  1122. Blockly.Msg.ARD_SPI_TRANS_SLAVE = 'to slave pin';
  1123. Blockly.Msg.ARD_SPI_TRANS_TIP = 'Send a SPI message to an specified slave device.';
  1124. Blockly.Msg.ARD_SPI_TRANS_WARN1 = 'A setup block for %1 must be added to the workspace to use this block!';
  1125. Blockly.Msg.ARD_SPI_TRANS_WARN2 = 'Old pin value %1 is no longer available.';
  1126. Blockly.Msg.ARD_SPI_TRANSRETURN_TIP = 'Send a SPI message to an specified slave device and get data back.';
  1127. Blockly.Msg.ARD_STEPPER_SETUP = 'Setup stepper motor';
  1128. Blockly.Msg.ARD_STEPPER_MOTOR = 'stepper motor:';
  1129. Blockly.Msg.ARD_STEPPER_DEFAULT_NAME = 'MyStepper';
  1130. Blockly.Msg.ARD_STEPPER_PIN1 = 'pin1#';
  1131. Blockly.Msg.ARD_STEPPER_PIN2 = 'pin2#';
  1132. Blockly.Msg.ARD_STEPPER_REVOLVS = 'how many steps per revolution';
  1133. Blockly.Msg.ARD_STEPPER_SPEED = 'set speed (rpm) to';
  1134. Blockly.Msg.ARD_STEPPER_SETUP_TIP = 'Configures a stepper motor pinout and other settings.';
  1135. Blockly.Msg.ARD_STEPPER_STEP = 'move stepper';
  1136. Blockly.Msg.ARD_STEPPER_STEPS = 'steps';
  1137. Blockly.Msg.ARD_STEPPER_STEP_TIP = 'Turns the stepper motor a specific number of steps.';
  1138. Blockly.Msg.ARD_STEPPER_COMPONENT = 'stepper';
  1139. Blockly.Msg.ARD_COMPONENT_WARN1 = 'A %1 configuration block with the same %2 name must be added to use this block!';
  1140. Blockly.Msg.ARD_TIME_DELAY = 'wait';
  1141. Blockly.Msg.ARD_TIME_MS = 'milliseconds';
  1142. Blockly.Msg.ARD_TIME_DELAY_TIP = 'Wait specific time in milliseconds';
  1143. Blockly.Msg.ARD_TIME_DELAY_MICROS = 'microseconds';
  1144. Blockly.Msg.ARD_TIME_DELAY_MICRO_TIP = 'Wait specific time in microseconds';
  1145. Blockly.Msg.ARD_TIME_MILLIS = 'current elapsed Time (milliseconds)';
  1146. Blockly.Msg.ARD_TIME_MILLIS_TIP = 'Returns the number of milliseconds since the Arduino board began running the current program. Has to be stored in a positive long integer';
  1147. Blockly.Msg.ARD_TIME_MICROS = 'current elapsed Time (microseconds)';
  1148. Blockly.Msg.ARD_TIME_MICROS_TIP = 'Returns the number of microseconds since the Arduino board began running the current program. Has to be stored in a positive long integer';
  1149. Blockly.Msg.ARD_TIME_INF = 'wait forever (end program)';
  1150. Blockly.Msg.ARD_TIME_INF_TIP = 'Wait indefinitely, stopping the program.'
  1151. Blockly.Msg.ARD_VAR_AS = 'as';
  1152. Blockly.Msg.ARD_VAR_AS_TIP = 'Sets a value to a specific type';
  1153. Blockly.Msg.ARD_PULSEREAD = 'Read';
  1154. Blockly.Msg.ARD_PULSEON = 'pulse on pin #';
  1155. Blockly.Msg.ARD_PULSETIMEOUT = 'timeout after';
  1156. Blockly.Msg.ARD_PULSETIMEOUT_MS = '';
  1157. Blockly.Msg.ARD_PULSE_TIP = 'Measures the duration of a pulse on the selected pin.';
  1158. Blockly.Msg.ARD_PULSETIMEOUT_TIP = 'Measures the duration of a pulse on the selected pin, if it is within the timeout.';
  1159. Blockly.Msg.ARD_SETTONE = 'Set tone on pin #';
  1160. Blockly.Msg.ARD_TONEFREQ = 'at frequency';
  1161. Blockly.Msg.ARD_TONE_TIP = 'Sets tone on pin to specified frequency within range 31 - 65535';
  1162. Blockly.Msg.ARD_TONE_WARNING = 'Frequency must be in range 31 - 65535';
  1163. Blockly.Msg.ARD_NOTONE = 'Turn off tone on pin #';
  1164. Blockly.Msg.ARD_NOTONE_TIP = 'Turns the tone off on the selected pin';
  1165. /// Ardublockly instances
  1166. Blockly.Msg.NEW_INSTANCE = 'New instance...';
  1167. Blockly.Msg.RENAME_INSTANCE = 'Rename instance...';
  1168. Blockly.Msg.NEW_INSTANCE_TITLE = 'New instance name:';
  1169. Blockly.Msg.RENAME_INSTANCE_TITLE = 'Rename all "%1" instances to:';
  1170. //LED Set Block
  1171. Blockly.Msg.LED_SET = "LED Set";
  1172. Blockly.Msg.LED_NUM = "Num of LED";
  1173. Blockly.Msg.LED_BRTN = "Brightness";
  1174. Blockly.Msg.LED_DATA_PIN = "Data Pin";
  1175. Blockly.Msg.LED_COLOR_ORDER = "Color Order";
  1176. Blockly.Msg.LED_SET_WORD = "Set";
  1177. Blockly.Msg.LED_DISPLAY = "Display";
  1178. Blockly.Msg.LED_PATTERN_SHOW = "Select a Pattern to Show";
  1179. Blockly.Msg.LED_SET_FPS = "Set FPS to";
  1180. Blockly.Msg.LED_SINGLE_SETUP = "Single LED Matrix Setup";
  1181. Blockly.Msg.LED_PIN = "Pin";
  1182. Blockly.Msg.LED_WIDTH = "Width";
  1183. Blockly.Msg.LED_HEIGHT = "Height";
  1184. Blockly.Msg.LED_TILED_SETUP = "Tiled LED Matrix Setup";
  1185. Blockly.Msg.LED_DRAW = "Draw a";
  1186. Blockly.Msg.LED_RECTANGLE = "Rectangle";
  1187. Blockly.Msg.LED_CIRCLE = "Circle";
  1188. Blockly.Msg.LED_CENTER_POS = "Center Position";
  1189. Blockly.Msg.LED_RADIUS = "Set Radius as ";
  1190. Blockly.Msg.LED_TRIANGLE = "Triangle";
  1191. Blockly.Msg.LED_POINT = "Point";
  1192. Blockly.Msg.LED_LINE = "Line";
  1193. Blockly.Msg.LED_LINE_START = "Start From";
  1194. Blockly.Msg.LED_LINE_END = "To";
  1195. Blockly.Msg.LED_ROUNDED_RECT = "Rounded Rectangle";
  1196. Blockly.Msg.LED_START_POS = "Start Position";
  1197. Blockly.Msg.LED_CORNER_RADIUS = "Set Corner Radius";
  1198. Blockly.Msg.LED_TEXT = "Text";
  1199. Blockly.Msg.LED_SIZE = "Size";
  1200. Blockly.Msg.LED_SHOW_ALL = "Show All";
  1201. Blockly.Msg.LED_POSITION = "Position";
  1202. Blockly.Msg.LED_BACKCOLOR = " Back";
  1203. Blockly.Msg.LED_CLEAR = "Clear";
  1204. // env sensor setup
  1205. Blockly.Msg.ENV_SETUP = "Environmental Sensors Setup";
  1206. // motor driver
  1207. Blockly.Msg.MOTOR_SETUP = "Motor Driver Setup";
  1208. Blockly.Msg.MOTOR_REMOTE_SETUP = "Remote Control Setup";
  1209. Blockly.Msg.MOTOR_PATH_PLANNING = "Path Planning";
  1210. Blockly.Msg.MOTOR_TURN_LEFT = "Turn Left ";
  1211. Blockly.Msg.MOTOR_TURN_RIGHT = "Turn Right ";
  1212. Blockly.Msg.MOTOR_MILLISEC = "millisecond";
  1213. Blockly.Msg.MOTOR_GO = "Go ";
  1214. Blockly.Msg.MOTOR_REVERSE = "Reverse ";
  1215. Blockly.Msg.MOTOR_STOP = "Stop ";
  1216. Blockly.Msg.MOTOR_LINE_TRACKING = "Line Tracking Car";
  1217. Blockly.Msg.MOTOR_SPEED = "Speed";
  1218. Blockly.Msg.MOTOR_ULTRASONIC = "Ultrasonic Setup";
  1219. Blockly.Msg.MOTOR_ULTRASONIC_CUST = "Ultrasonic Custom Setup";
  1220. Blockly.Msg.MOTOR_BUTTON = "Button ";
  1221. Blockly.Msg.MOTOR_AS = "as";
  1222. Blockly.Msg.MOTOR_BIPED_SETUP = "Biped Setup";
  1223. Blockly.Msg.MOTOR_MOVEMENT = "Movement";
  1224. Blockly.Msg.MOTOR_INITIALIZE = "Initialize";
  1225. Blockly.Msg.LOGIC_SWITCH = "switch";
  1226. Blockly.Msg.LOGIC_CASE = "case";
  1227. Blockly.Msg.LOGIC_DO = "do";
  1228. Blockly.Msg.LOGIC_DEFAULT = "default";
  1229. Blockly.Msg.BASIC_BUZZER_SETUP = "Buzzer Setup";
  1230. Blockly.Msg.BASIC_SET_PIN = "Set Pin#";
  1231. Blockly.Msg.BASIC_AS = "as";
  1232. Blockly.Msg.BASIC_BUZZER_PLAY = "Buzzer plays ";
  1233. Blockly.Msg.BASIC_HZ = "Hz";
  1234. Blockly.Msg.BASIC_FOR = "for";
  1235. Blockly.Msg.BASIC_MUTE = "Mute";
  1236. Blockly.Msg.BASIC_LIGHT_PIN = "Light Pin#";
  1237. Blockly.Msg.BASIC_BRTN = "Brightness";
  1238. Blockly.Msg.BASIC_BLACK_OUT = "Black out";
  1239. Blockly.Msg.BASIC_PIN_NUM = "Pin#";
  1240. Blockly.Msg.BASIC_SET = "Set";
  1241. Blockly.Msg.BASIC_FROM = "from";
  1242. Blockly.Msg.BASIC_TO = "to";
  1243. Blockly.Msg.BASIC_IF_SWITCH = "If switch ";
  1244. Blockly.Msg.BASIC_IS = " is ";
  1245. Blockly.Msg.LED_SET_PIXEL = "Set pixel from";
  1246. Blockly.Msg.LED_TO = "to";
  1247. Blockly.Msg.LED_SET_PIXEL_AT = "Set pixel at";
  1248. Blockly.Msg.LED_SCROLLING = "Scrolling";
  1249. Blockly.Msg.LED_SPEED = "Speed";
  1250. Blockly.Msg.LED_COLOR = "Color";
  1251. Blockly.Msg.ENV_SET = "Set";
  1252. Blockly.Msg.ENV_AS = "as";
  1253. Blockly.Msg.ENV_SET_TEMP = "Set temperature as ";
  1254. Blockly.Msg.ENV_SET_TEMP_UNIT = "Set unit as ";
  1255. Blockly.Msg.ENV_BUZZER_ALARM = "Buzzer Alarm";
  1256. Blockly.Msg.ENV_CRITICAL_VAL = "When the critical value of";
  1257. Blockly.Msg.ENV_REACHES = "reaches";
  1258. Blockly.Msg.ENV_DO = "Do";