messages.js 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. /**
  2. * @license
  3. * Visual Blocks Language
  4. *
  5. * Copyright 2012 Google Inc.
  6. * https://blockly.googlecode.com/
  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. * Tip: Generate URLs for read-only blocks by creating the blocks in the Code app,
  41. * then evaluating this in the console:
  42. * 'http://blockly-demo.appspot.com/static/apps/code/readonly.html?lang=en&xml=' + encodeURIComponent(Blockly.Xml.domToText(Blockly.Xml.workspaceToDom(Blockly.mainWorkspace)).slice(5, -6))
  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]].
  47. Blockly.Msg.VARIABLES_DEFAULT_NAME = 'item';
  48. // Context menus.
  49. /// context menu - Make a copy of the selected block (and any blocks it contains).
  50. Blockly.Msg.DUPLICATE_BLOCK = 'Duplicate';
  51. /// context menu - Add a descriptive comment to the selected block.
  52. Blockly.Msg.ADD_COMMENT = 'Add Comment';
  53. /// context menu - Remove the descriptive comment from the selected block.
  54. Blockly.Msg.REMOVE_COMMENT = 'Remove Comment';
  55. /// context menu - Change from 'external' to 'inline' mode for displaying blocks used as inputs to the selected block. See [[Translating:Blockly#context_menus]].
  56. Blockly.Msg.EXTERNAL_INPUTS = 'External Inputs';
  57. /// context menu - Change from 'internal' to 'external' mode for displaying blocks used as inputs to the selected block. See [[Translating:Blockly#context_menus]].
  58. Blockly.Msg.INLINE_INPUTS = 'Inline Inputs';
  59. /// context menu - Permanently delete the selected block.
  60. Blockly.Msg.DELETE_BLOCK = 'Delete Block';
  61. /// context menu - Permanently delete the %1 selected blocks.\n\nParameters:\n* %1 - an integer greater than 1.
  62. Blockly.Msg.DELETE_X_BLOCKS = 'Delete %1 Blocks';
  63. /// context menu - Make the appearance of the selected block smaller by hiding some information about it.
  64. Blockly.Msg.COLLAPSE_BLOCK = 'Collapse Block';
  65. /// context menu - Make the appearance of the selected blocks smaller by hiding some information about it. Use the same terminology as in the previous message.
  66. Blockly.Msg.COLLAPSE_ALL = 'Collapse Blocks';
  67. /// context menu - Restore the appearance of the selected block by showing information about it that was hidden (collapsed) earlier.
  68. Blockly.Msg.EXPAND_BLOCK = 'Expand Block';
  69. /// context menu - Restore the appearance of the selected block by showing information about it that was hidden (collapsed) earlier. Use the same terminology as in the previous message.
  70. Blockly.Msg.EXPAND_ALL = 'Expand Blocks';
  71. /// context menu - Make the selected block have no effect (unless reenabled).
  72. Blockly.Msg.DISABLE_BLOCK = 'Disable Block';
  73. /// context menu - Make the selected block have effect (after having been disabled earlier).
  74. Blockly.Msg.ENABLE_BLOCK = 'Enable Block';
  75. /// context menu - Provide helpful information about the selected block.\n{{Identical|Help}}
  76. Blockly.Msg.HELP = 'Help';
  77. // Realtime collaboration.
  78. /// collaboration instruction - Tell the user that they can talk with other users.
  79. Blockly.Msg.CHAT = 'Chat with your collaborator by typing in this box!';
  80. /// authorization instruction - Ask the user to authorize this app so it can be saved and shared by them.
  81. Blockly.Msg.AUTH = 'Please authorize this app to enable your work to be saved and to allow it to be shared by you.';
  82. /// First person singular - objective case
  83. Blockly.Msg.ME = 'Me';
  84. // Variable renaming.
  85. /// 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.
  86. Blockly.Msg.CHANGE_VALUE_TITLE = 'Change value:';
  87. /// 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://code.google.com/p/blockly/wiki/Variables#Dropdown_menu https://code.google.com/p/blockly/wiki/Variables#Dropdown_menu].
  88. Blockly.Msg.NEW_VARIABLE = 'New variable...';
  89. /// prompt - Prompts the user to enter the name for a new variable. See [https://code.google.com/p/blockly/wiki/Variables#Dropdown_menu https://code.google.com/p/blockly/wiki/Variables#Dropdown_menu].
  90. Blockly.Msg.NEW_VARIABLE_TITLE = 'New variable name:';
  91. /// 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://code.google.com/p/blockly/wiki/Variables#Dropdown_menu https://code.google.com/p/blockly/wiki/Variables#Dropdown_menu].
  92. Blockly.Msg.RENAME_VARIABLE = 'Rename variable...';
  93. /// prompt - Prompts the user to enter the new name for the selected variable. See [https://code.google.com/p/blockly/wiki/Variables#Dropdown_menu https://code.google.com/p/blockly/wiki/Variables#Dropdown_menu].\n\nParameters:\n* %1 - the name of the variable to be renamed.
  94. Blockly.Msg.RENAME_VARIABLE_TITLE = 'Rename all "%1" variables to:';
  95. // Colour Blocks.
  96. /// url - Information about colour.
  97. Blockly.Msg.COLOUR_PICKER_HELPURL = 'https://en.wikipedia.org/wiki/Color';
  98. /// tooltip - See [https://code.google.com/p/blockly/wiki/Colour#Picking_a_colour_from_a_palette https://code.google.com/p/blockly/wiki/Colour#Picking_a_colour_from_a_palette].
  99. Blockly.Msg.COLOUR_PICKER_TOOLTIP = 'Choose a colour from the palette.';
  100. /// url - A link that displays a random colour each time you visit it.
  101. Blockly.Msg.COLOUR_RANDOM_HELPURL = 'http://randomcolour.com';
  102. /// block text - Title of block that generates a colour at random.
  103. Blockly.Msg.COLOUR_RANDOM_TITLE = 'random colour';
  104. /// tooltip - See [https://code.google.com/p/blockly/wiki/Colour#Generating_a_random_colour https://code.google.com/p/blockly/wiki/Colour#Generating_a_random_colour].
  105. Blockly.Msg.COLOUR_RANDOM_TOOLTIP = 'Choose a colour at random.';
  106. /// 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.
  107. Blockly.Msg.COLOUR_RGB_HELPURL = 'http://www.december.com/html/spec/colorper.html';
  108. /// block text - Title of block for [https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components].
  109. Blockly.Msg.COLOUR_RGB_TITLE = 'colour with';
  110. /// block input text - The amount of red (from 0 to 100) to use when [https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components].\n{{Identical|Red}}
  111. Blockly.Msg.COLOUR_RGB_RED = 'red';
  112. /// block input text - The amount of green (from 0 to 100) to use when [https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components].
  113. Blockly.Msg.COLOUR_RGB_GREEN = 'green';
  114. /// block input text - The amount of blue (from 0 to 100) to use when [https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components].\n{{Identical|Blue}}
  115. Blockly.Msg.COLOUR_RGB_BLUE = 'blue';
  116. /// tooltip - See [https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components https://code.google.com/p/blockly/wiki/Colour#Creating_a_colour_from_red,_green,_and_blue_components].
  117. 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.';
  118. /// url - A useful link that displays blending of two colors.
  119. Blockly.Msg.COLOUR_BLEND_HELPURL = 'http://meyerweb.com/eric/tools/color-blend/';
  120. /// block text - A verb for blending two shades of paint.
  121. Blockly.Msg.COLOUR_BLEND_TITLE = 'blend';
  122. /// block input text - The first of two colours to [https://code.google.com/p/blockly/wiki/Colour#Blending_colours blend].
  123. Blockly.Msg.COLOUR_BLEND_COLOUR1 = 'colour 1';
  124. /// block input text - The second of two colours to [https://code.google.com/p/blockly/wiki/Colour#Blending_colours blend].
  125. Blockly.Msg.COLOUR_BLEND_COLOUR2 = 'colour 2';
  126. /// block input text - The proportion of the [https://code.google.com/p/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.
  127. Blockly.Msg.COLOUR_BLEND_RATIO = 'ratio';
  128. /// tooltip - See [https://code.google.com/p/blockly/wiki/Colour#Blending_colours https://code.google.com/p/blockly/wiki/Colour#Blending_colours].
  129. Blockly.Msg.COLOUR_BLEND_TOOLTIP = 'Blends two colours together with a given ratio (0.0 - 1.0).';
  130. // Loop Blocks.
  131. /// 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].
  132. Blockly.Msg.CONTROLS_REPEAT_HELPURL = 'https://en.wikipedia.org/wiki/For_loop';
  133. /// block input text - Title of [https://code.google.com/p/blockly/wiki/Loops#repeat repeat block].\n\nParameters:\n* %1 - the number of times the body of the loop should be repeated.
  134. Blockly.Msg.CONTROLS_REPEAT_TITLE = 'repeat %1 times';
  135. /// block text - Text preceding the number of repetitions in a [https://code.google.com/p/blockly/wiki/Loops#repeat repeat block].
  136. /// (This is redundant with the previous message but is needed to support older code.)
  137. Blockly.Msg.CONTROLS_REPEAT_TITLE_REPEAT = 'repeat';
  138. /// block text - Text following the number of times a [https://code.google.com/p/blockly/wiki/Loops#repeat repeat loop] should be repeated.
  139. /// (This is redundant but is needed to support older code.)
  140. Blockly.Msg.CONTROLS_REPEAT_TITLE_TIMES = 'times';
  141. /// block text - Preceding the blocks in the body of the loop. See [https://code.google.com/p/blockly/wiki/Loops https://code.google.com/p/blockly/wiki/Loops].
  142. Blockly.Msg.CONTROLS_REPEAT_INPUT_DO = 'do';
  143. /// tooltip - See [https://code.google.com/p/blockly/wiki/Loops#repeat https://code.google.com/p/blockly/wiki/Loops#repeat].
  144. Blockly.Msg.CONTROLS_REPEAT_TOOLTIP = 'Do some statements several times.';
  145. /// 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].
  146. Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL = 'https://code.google.com/p/blockly/wiki/Loops#repeat';
  147. Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  148. /// dropdown - Specifies that a loop should [https://code.google.com/p/blockly/wiki/Loops#Repeat_while repeat while] the following condition is true.
  149. Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE = 'repeat while';
  150. /// dropdown - Specifies that a loop should [https://code.google.com/p/blockly/wiki/Loops#Repeat_until repeat until] the following condition becomes true.
  151. Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL = 'repeat until';
  152. /// tooltip - See [https://code.google.com/p/blockly/wiki/Loops#repeat_while Loops#repeat_while https://code.google.com/p/blockly/wiki/Loops#repeat_while Loops#repeat_while].
  153. Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE = 'While a value is true, then do some statements.';
  154. /// tooltip - See [https://code.google.com/p/blockly/wiki/Loops#repeat_until https://code.google.com/p/blockly/wiki/Loops#repeat_until].
  155. Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL = 'While a value is false, then do some statements.';
  156. /// 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.
  157. Blockly.Msg.CONTROLS_FOR_HELPURL = 'https://code.google.com/p/blockly/wiki/Loops#count_with';
  158. /// tooltip - See [https://code.google.com/p/blockly/wiki/Loops#count_with https://code.google.com/p/blockly/wiki/Loops#count_with].\n\nParameters:\n* %1 - the name of the loop variable.
  159. 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.';
  160. /// block title - Title of [https://code.google.com/p/blockly/wiki/Loops#count_with count with] blocks.
  161. /// [[File:Blockly-count-with.png]]
  162. Blockly.Msg.CONTROLS_FOR_INPUT_WITH = 'count with';
  163. /// block text - Starting with a (usually lower) number in a range (%1),
  164. /// ending with a (usually higher) number in a range (%2), and counting the
  165. /// iterations by a number of steps (%3). As in
  166. /// [https://code.google.com/p/blockly/wiki/Loops#count_with
  167. /// https://code.google.com/p/blockly/wiki/Loops#count_with].
  168. /// [[File:Blockly-count-with.png]]
  169. Blockly.Msg.CONTROLS_FOR_INPUT_FROM_TO_BY = 'from %1 to %2 by %3';
  170. Blockly.Msg.CONTROLS_FOR_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  171. /// 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.
  172. Blockly.Msg.CONTROLS_FOREACH_HELPURL = 'https://code.google.com/p/blockly/wiki/Loops#for_each for each block';
  173. /// block text - Title of [https://code.google.com/p/blockly/wiki/Loops#for_each for each block].
  174. Blockly.Msg.CONTROLS_FOREACH_INPUT_ITEM = 'for each item';
  175. /// block text - Preceding the list that should be iterated over in a [https://code.google.com/p/blockly/wiki/Loops#for_each for each loop].
  176. Blockly.Msg.CONTROLS_FOREACH_INPUT_INLIST = 'in list';
  177. /// block text - Following the list that should be iterated over in a [https://code.google.com/p/blockly/wiki/Loops#for_each for each loop]. This is empty in most, but not all, languages.
  178. Blockly.Msg.CONTROLS_FOREACH_INPUT_INLIST_TAIL = '';
  179. Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  180. /// block text - Description of [https://code.google.com/p/blockly/wiki/Loops#for_each for each blocks].\n\nParameters:\n* %1 - the name of the loop variable.
  181. Blockly.Msg.CONTROLS_FOREACH_TOOLTIP = 'For each item in a list, set the variable "%1" to the item, and then do some statements.';
  182. /// 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.
  183. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL = 'https://code.google.com/p/blockly/wiki/Loops#Loop_Termination_Blocks';
  184. /// dropdown - The current loop should be exited. See [https://code.google.com/p/blockly/wiki/Loops#break https://code.google.com/p/blockly/wiki/Loops#break].
  185. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK = 'break out of loop';
  186. /// dropdown - The current iteration of the loop should be ended and the next should begin. See [https://code.google.com/p/blockly/wiki/Loops#continue_with_next_iteration https://code.google.com/p/blockly/wiki/Loops#continue_with_next_iteration].
  187. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE = 'continue with next iteration of loop';
  188. /// tooltip - See [https://code.google.com/p/blockly/wiki/Loops#break_out_of_loop https://code.google.com/p/blockly/wiki/Loops#break_out_of_loop].
  189. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK = 'Break out of the containing loop.';
  190. /// tooltip - See [https://code.google.com/p/blockly/wiki/Loops#continue_with_next_iteration https://code.google.com/p/blockly/wiki/Loops#continue_with_next_iteration].
  191. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE = 'Skip the rest of this loop, and continue with the next iteration.';
  192. /// 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://code.google.com/p/blockly/wiki/Loops#Loop_Termination_Blocks https://code.google.com/p/blockly/wiki/Loops#Loop_Termination_Blocks].
  193. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING = 'Warning: This block may only be used within a loop.';
  194. // Logic Blocks.
  195. /// 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.
  196. Blockly.Msg.CONTROLS_IF_HELPURL = 'https://code.google.com/p/blockly/wiki/If_Then';
  197. /// tooltip - Describes [https://code.google.com/p/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.
  198. Blockly.Msg.CONTROLS_IF_TOOLTIP_1 = 'If a value is true, then do some statements.';
  199. /// tooltip - Describes [https://code.google.com/p/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.
  200. 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.';
  201. /// tooltip - Describes [https://code.google.com/p/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.
  202. 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.';
  203. /// tooltip - Describes [https://code.google.com/p/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.
  204. 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.';
  205. /// block text - See [https://code.google.com/p/blockly/wiki/IfElse https://code.google.com/p/blockly/wiki/IfElse].
  206. /// It is recommended, but not essential, that this have text in common with the translation of 'else if'
  207. Blockly.Msg.CONTROLS_IF_MSG_IF = 'if';
  208. /// block text - See [https://code.google.com/p/blockly/wiki/IfElse https://code.google.com/p/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.
  209. Blockly.Msg.CONTROLS_IF_MSG_ELSEIF = 'else if';
  210. /// block text - See [https://code.google.com/p/blockly/wiki/IfElse https://code.google.com/p/blockly/wiki/IfElse]. The English word "otherwise" would probably be superior to "else", but the latter is used because it is traditional and shorter.
  211. Blockly.Msg.CONTROLS_IF_MSG_ELSE = 'else';
  212. Blockly.Msg.CONTROLS_IF_MSG_THEN = Blockly.Msg.CONTROLS_REPEAT_INPUT_DO;
  213. Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = Blockly.Msg.CONTROLS_IF_MSG_IF;
  214. /// tooltip - Describes [https://code.google.com/p/blockly/wiki/IfElse#Block_Modification if block modification].
  215. Blockly.Msg.CONTROLS_IF_IF_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this if block.';
  216. Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = Blockly.Msg.CONTROLS_IF_MSG_ELSEIF;
  217. /// tooltip - Describes the 'else if' subblock during [https://code.google.com/p/blockly/wiki/IfElse#Block_Modification if block modification].
  218. Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP = 'Add a condition to the if block.';
  219. Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = Blockly.Msg.CONTROLS_IF_MSG_ELSE;
  220. /// tooltip - Describes the 'else' subblock during [https://code.google.com/p/blockly/wiki/IfElse#Block_Modification if block modification].
  221. Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP = 'Add a final, catch-all condition to the if block.';
  222. /// url - Information about comparisons.
  223. Blockly.Msg.LOGIC_COMPARE_HELPURL = 'https://en.wikipedia.org/wiki/Inequality_(mathematics)';
  224. /// tooltip - Describes the equals (=) block.
  225. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ = 'Return true if both inputs equal each other.';
  226. /// tooltip - Describes the not equals (≠) block.
  227. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ = 'Return true if both inputs are not equal to each other.';
  228. /// tooltip - Describes the less than (<) block.
  229. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT = 'Return true if the first input is smaller than the second input.';
  230. /// tooltip - Describes the less than or equals (≤) block.
  231. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE = 'Return true if the first input is smaller than or equal to the second input.';
  232. /// tooltip - Describes the greater than (>) block.
  233. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT = 'Return true if the first input is greater than the second input.';
  234. /// tooltip - Describes the greater than or equals (≥) block.
  235. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE = 'Return true if the first input is greater than or equal to the second input.';
  236. /// 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.
  237. Blockly.Msg.LOGIC_OPERATION_HELPURL = 'https://code.google.com/p/blockly/wiki/And_Or';
  238. /// tooltip - See [https://en.wikipedia.org/wiki/Logical_conjunction https://en.wikipedia.org/wiki/Logical_conjunction].
  239. Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND = 'Return true if both inputs are true.';
  240. /// block text - See [https://en.wikipedia.org/wiki/Logical_conjunction https://en.wikipedia.org/wiki/Logical_conjunction].
  241. Blockly.Msg.LOGIC_OPERATION_AND = 'and';
  242. /// block text - See [https://en.wikipedia.org/wiki/Disjunction https://en.wikipedia.org/wiki/Disjunction].
  243. Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR = 'Return true if at least one of the inputs is true.';
  244. /// block text - See [https://en.wikipedia.org/wiki/Disjunction https://en.wikipedia.org/wiki/Disjunction].
  245. Blockly.Msg.LOGIC_OPERATION_OR = 'or';
  246. /// 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.
  247. Blockly.Msg.LOGIC_NEGATE_HELPURL = 'https://en.wikipedia.org/wiki/Negation';
  248. /// block text - This is a unary operator that returns ''false'' when the input is ''true'', and ''true'' when the input is ''false''.
  249. /// \n\nParameters:\n* %1 - the input (which should be either the value "true" or "false")
  250. Blockly.Msg.LOGIC_NEGATE_TITLE = 'not %1';
  251. /// tooltip - See [https://en.wikipedia.org/wiki/Logical_negation https://en.wikipedia.org/wiki/Logical_negation].
  252. Blockly.Msg.LOGIC_NEGATE_TOOLTIP = 'Returns true if the input is false. Returns false if the input is true.';
  253. /// 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.
  254. Blockly.Msg.LOGIC_BOOLEAN_HELPURL = 'https://code.google.com/p/blockly/wiki/True_False';
  255. /// block text - The word for the [https://en.wikipedia.org/wiki/Truth_value logical value] ''true''.
  256. Blockly.Msg.LOGIC_BOOLEAN_TRUE = 'true';
  257. /// block text - The word for the [https://en.wikipedia.org/wiki/Truth_value logical value] ''false''.
  258. Blockly.Msg.LOGIC_BOOLEAN_FALSE = 'false';
  259. /// tooltip - Indicates that the block returns either of the two possible [https://en.wikipedia.org/wiki/Truth_value logical values].
  260. Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP = 'Returns either true or false.';
  261. /// 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.
  262. Blockly.Msg.LOGIC_NULL_HELPURL = 'https://en.wikipedia.org/wiki/Nullable_type';
  263. /// 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".
  264. Blockly.Msg.LOGIC_NULL = 'null';
  265. /// tooltip - This should use the word from the previous message.
  266. Blockly.Msg.LOGIC_NULL_TOOLTIP = 'Returns null.';
  267. /// 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.
  268. Blockly.Msg.LOGIC_TERNARY_HELPURL = 'https://en.wikipedia.org/wiki/%3F:';
  269. /// 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''''.
  270. Blockly.Msg.LOGIC_TERNARY_CONDITION = 'test';
  271. /// 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).
  272. Blockly.Msg.LOGIC_TERNARY_IF_TRUE = 'if true';
  273. /// block input text - Indicates that the following input should be returned (used as output) if the test input is false.
  274. Blockly.Msg.LOGIC_TERNARY_IF_FALSE = 'if false';
  275. /// tooltip - See [https://en.wikipedia.org/wiki/%3F: https://en.wikipedia.org/wiki/%3F:].
  276. 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.';
  277. // Math Blocks.
  278. /// url - Information about (real) numbers.
  279. Blockly.Msg.MATH_NUMBER_HELPURL = 'https://en.wikipedia.org/wiki/Number';
  280. /// tooltip - Any positive or negative number, not necessarily an integer.
  281. Blockly.Msg.MATH_NUMBER_TOOLTIP = 'A number.';
  282. /// math - The symbol for the binary operation addition.
  283. Blockly.Msg.MATH_ADDITION_SYMBOL = '+';
  284. /// math - The symbol for the binary operation indicating that the right operand should be
  285. /// subtracted from the left operand.
  286. Blockly.Msg.MATH_SUBTRACTION_SYMBOL = '-';
  287. /// math - The binary operation indicating that the left operand should be divided by
  288. /// the right operand.
  289. Blockly.Msg.MATH_DIVISION_SYMBOL = '÷';
  290. /// math - The symbol for the binary operation multiplication.
  291. Blockly.Msg.MATH_MULTIPLICATION_SYMBOL = '×';
  292. /// math - The symbol for the binary operation exponentiation. Specifically, if the
  293. /// value of the left operand is L and the value of the right operand (the exponent) is
  294. /// R, multiply L by itself R times. (Fractional and negative exponents are also legal.)
  295. Blockly.Msg.MATH_POWER_SYMBOL = '^';
  296. /// math - The short name of the trigonometric function
  297. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent sine].
  298. Blockly.Msg.MATH_TRIG_SIN = 'sin';
  299. /// math - The short name of the trigonometric function
  300. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent cosine].
  301. Blockly.Msg.MATH_TRIG_COS = 'cos';
  302. /// math - The short name of the trigonometric function
  303. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent tangent].
  304. Blockly.Msg.MATH_TRIG_TAN = 'tan';
  305. /// math - The short name of the ''inverse of'' the trigonometric function
  306. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent sine].
  307. Blockly.Msg.MATH_TRIG_ASIN = 'asin';
  308. /// math - The short name of the ''inverse of'' the trigonometric function
  309. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent cosine].
  310. Blockly.Msg.MATH_TRIG_ACOS = 'acos';
  311. /// math - The short name of the ''inverse of'' the trigonometric function
  312. /// [https://en.wikipedia.org/wiki/Trigonometric_functions#Sine.2C_cosine_and_tangent tangent].
  313. Blockly.Msg.MATH_TRIG_ATAN = 'atan';
  314. /// url - Information about addition, subtraction, multiplication, division, and exponentiation.
  315. Blockly.Msg.MATH_ARITHMETIC_HELPURL = 'https://en.wikipedia.org/wiki/Arithmetic';
  316. /// tooltip - See [https://en.wikipedia.org/wiki/Addition https://en.wikipedia.org/wiki/Addition].
  317. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD = 'Return the sum of the two numbers.';
  318. /// tooltip - See [https://en.wikipedia.org/wiki/Subtraction https://en.wikipedia.org/wiki/Subtraction].
  319. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS = 'Return the difference of the two numbers.';
  320. /// tooltip - See [https://en.wikipedia.org/wiki/Multiplication https://en.wikipedia.org/wiki/Multiplication].
  321. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY = 'Return the product of the two numbers.';
  322. /// tooltip - See [https://en.wikipedia.org/wiki/Division_(mathematics) https://en.wikipedia.org/wiki/Division_(mathematics)].
  323. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE = 'Return the quotient of the two numbers.';
  324. /// tooltip - See [https://en.wikipedia.org/wiki/Exponentiation https://en.wikipedia.org/wiki/Exponentiation].
  325. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER = 'Return the first number raised to the power of the second number.';
  326. /// url - Information about the square root operation.
  327. Blockly.Msg.MATH_SINGLE_HELPURL = 'https://en.wikipedia.org/wiki/Square_root';
  328. /// 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.
  329. Blockly.Msg.MATH_SINGLE_OP_ROOT = 'square root';
  330. /// tooltip - Please use the same term as in the previous message.
  331. Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT = 'Return the square root of a number.';
  332. /// 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].
  333. Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE = 'absolute';
  334. /// tooltip - Please use the same term as in the previous message.
  335. Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS = 'Return the absolute value of a number.';
  336. /// tooltip - Calculates '''0-n''', where '''n''' is the single numeric input.
  337. Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG = 'Return the negation of a number.';
  338. /// tooltip - Calculates the [https://en.wikipedia.org/wiki/Natural_logarithm|natural logarithm] of its single numeric input.
  339. Blockly.Msg.MATH_SINGLE_TOOLTIP_LN = 'Return the natural logarithm of a number.';
  340. /// tooltip - Calculates the [https://en.wikipedia.org/wiki/Common_logarithm common logarithm] of its single numeric input.
  341. Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10 = 'Return the base 10 logarithm of a number.';
  342. /// tooltip - Multiplies [https://en.wikipedia.org/wiki/E_%28mathematical_constant%29 e] by itself n times, where n is the single numeric input.
  343. Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP = 'Return e to the power of a number.';
  344. /// tooltip - Multiplies 10 by itself n times, where n is the single numeric input.
  345. Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10 = 'Return 10 to the power of a number.';
  346. /// url - Information about the trigonometric functions sine, cosine, tangent, and their inverses (ideally using degrees, not radians).
  347. Blockly.Msg.MATH_TRIG_HELPURL = 'https://en.wikipedia.org/wiki/Trigonometric_functions';
  348. /// 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.
  349. Blockly.Msg.MATH_TRIG_TOOLTIP_SIN = 'Return the sine of a degree (not radian).';
  350. /// 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.
  351. Blockly.Msg.MATH_TRIG_TOOLTIP_COS = 'Return the cosine of a degree (not radian).';
  352. /// 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.
  353. Blockly.Msg.MATH_TRIG_TOOLTIP_TAN = 'Return the tangent of a degree (not radian).';
  354. /// 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.
  355. Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN = 'Return the arcsine of a number.';
  356. /// 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.
  357. Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS = 'Return the arccosine of a number.';
  358. /// 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.
  359. Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN = 'Return the arctangent of a number.';
  360. /// url - Information about the mathematical constants Pi (π), e, the golden ratio (φ), √ 2, √ 1/2, and infinity (∞).
  361. Blockly.Msg.MATH_CONSTANT_HELPURL = 'https://en.wikipedia.org/wiki/Mathematical_constant';
  362. /// tooltip - Provides the specified [https://en.wikipedia.org/wiki/Mathematical_constant mathematical constant].
  363. 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).';
  364. /// dropdown - A number is '''even''' if it is a multiple of 2. For example, 4 is even (yielding true), but 3 is not (false).
  365. Blockly.Msg.MATH_IS_EVEN = 'is even';
  366. /// 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".
  367. Blockly.Msg.MATH_IS_ODD = 'is odd';
  368. /// 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.
  369. Blockly.Msg.MATH_IS_PRIME = 'is prime';
  370. /// 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.
  371. Blockly.Msg.MATH_IS_WHOLE = 'is whole';
  372. /// dropdown - A number is '''positive''' if it is greater than 0. (0 is neither negative nor positive.)
  373. Blockly.Msg.MATH_IS_POSITIVE = 'is positive';
  374. /// dropdown - A number is '''negative''' if it is less than 0. (0 is neither negative nor positive.)
  375. Blockly.Msg.MATH_IS_NEGATIVE = 'is negative';
  376. /// 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.
  377. Blockly.Msg.MATH_IS_DIVISIBLE_BY = 'is divisible by';
  378. /// 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.
  379. 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.';
  380. /// url - Information about incrementing (increasing the value of) a variable.
  381. /// For other languages, just use the translation of the Wikipedia page about
  382. /// addition ([https://en.wikipedia.org/wiki/Addition https://en.wikipedia.org/wiki/Addition]).
  383. Blockly.Msg.MATH_CHANGE_HELPURL = 'https://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter';
  384. /// - 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).
  385. Blockly.Msg.MATH_CHANGE_TITLE_CHANGE = 'change';
  386. Blockly.Msg.MATH_CHANGE_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  387. /// - 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).
  388. Blockly.Msg.MATH_CHANGE_INPUT_BY = 'by';
  389. /// 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.
  390. Blockly.Msg.MATH_CHANGE_TOOLTIP = 'Add a number to variable "%1".';
  391. /// url - Information about how numbers are rounded to the nearest integer
  392. Blockly.Msg.MATH_ROUND_HELPURL = 'https://en.wikipedia.org/wiki/Rounding';
  393. /// tooltip - See [https://en.wikipedia.org/wiki/Rounding https://en.wikipedia.org/wiki/Rounding].
  394. Blockly.Msg.MATH_ROUND_TOOLTIP = 'Round a number up or down.';
  395. /// dropdown - This rounds its input to the nearest whole number. For example, 3.4 is rounded to 3.
  396. Blockly.Msg.MATH_ROUND_OPERATOR_ROUND = 'round';
  397. /// dropdown - This rounds its input up to the nearest whole number. For example, if the input was 2.2, the result would be 3.
  398. Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP = 'round up';
  399. /// dropdown - This rounds its input down to the nearest whole number. For example, if the input was 3.8, the result would be 3.
  400. Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN = 'round down';
  401. /// 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.)
  402. Blockly.Msg.MATH_ONLIST_HELPURL = '';
  403. /// dropdown - This computes the sum of the numeric elements in the list. For example, the sum of the list {1, 4} is 5.
  404. Blockly.Msg.MATH_ONLIST_OPERATOR_SUM = 'sum of list';
  405. /// tooltip - Please use the same term for "sum" as in the previous message.
  406. Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM = 'Return the sum of all the numbers in the list.';
  407. /// dropdown - This finds the smallest (minimum) number in a list. For example, the smallest number in the list [-5, 0, 3] is -5.
  408. Blockly.Msg.MATH_ONLIST_OPERATOR_MIN = 'min of list';
  409. /// tooltip - Please use the same term for "min" or "minimum" as in the previous message.
  410. Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN = 'Return the smallest number in the list.';
  411. /// dropdown - This finds the largest (maximum) number in a list. For example, the largest number in the list [-5, 0, 3] is 3.
  412. Blockly.Msg.MATH_ONLIST_OPERATOR_MAX = 'max of list';
  413. /// tooltip
  414. Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX = 'Return the largest number in the list.';
  415. /// 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).
  416. Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE = 'average of list';
  417. /// tooltip - See [https://en.wikipedia.org/wiki/Arithmetic_mean https://en.wikipedia.org/wiki/Arithmetic_mean] for more informatin.
  418. Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE = 'Return the average (arithmetic mean) of the numeric values in the list.';
  419. /// 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.
  420. Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN = 'median of list';
  421. /// tooltip - See [https://en.wikipedia.org/wiki/Median median https://en.wikipedia.org/wiki/Median median] for more information.
  422. Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN = 'Return the median number in the list.';
  423. /// 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}.
  424. Blockly.Msg.MATH_ONLIST_OPERATOR_MODE = 'modes of list';
  425. /// tooltip - See [https://en.wikipedia.org/wiki/Mode_(statistics) https://en.wikipedia.org/wiki/Mode_(statistics)] for more information.
  426. Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE = 'Return a list of the most common item(s) in the list.';
  427. /// dropdown - This finds the [https://en.wikipedia.org/wiki/Standard_deviation standard deviation] of the numeric values in a list.
  428. Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV = 'standard deviation of list';
  429. /// tooltip - See [https://en.wikipedia.org/wiki/Standard_deviation https://en.wikipedia.org/wiki/Standard_deviation] for more information.
  430. Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV = 'Return the standard deviation of the list.';
  431. /// dropdown - This choose an element at random from a list. Each element is chosen with equal probability.
  432. Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM = 'random item of list';
  433. /// tooltip - Please use same term for 'random' as in previous entry.
  434. Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM = 'Return a random element from the list.';
  435. /// url - information about the modulo (remainder) operation.
  436. Blockly.Msg.MATH_MODULO_HELPURL = 'https://en.wikipedia.org/wiki/Modulo_operation';
  437. /// 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).
  438. Blockly.Msg.MATH_MODULO_TITLE = 'remainder of %1 ÷ %2';
  439. /// tooltip - For example, the remainder of 10 divided by 3 is 1.
  440. Blockly.Msg.MATH_MODULO_TOOLTIP = 'Return the remainder from dividing the two numbers.';
  441. /// 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.)
  442. Blockly.Msg.MATH_CONSTRAIN_HELPURL = 'https://en.wikipedia.org/wiki/Clamping_%28graphics%29';
  443. /// block text - The title of the block that '''constrain'''s (forces) a number to be in a given range.
  444. ///For example, if the number 150 is constrained to be between 5 and 100, the result will be 100.
  445. ///\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).
  446. Blockly.Msg.MATH_CONSTRAIN_TITLE = 'constrain %1 low %2 high %3';
  447. /// 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''.
  448. Blockly.Msg.MATH_CONSTRAIN_TOOLTIP = 'Constrain a number to be between the specified limits (inclusive).';
  449. /// url - Information about how computers generate random numbers.
  450. Blockly.Msg.MATH_RANDOM_INT_HELPURL = 'https://en.wikipedia.org/wiki/Random_number_generation';
  451. /// 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.
  452. Blockly.Msg.MATH_RANDOM_INT_TITLE = 'random integer from %1 to %2';
  453. /// 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.
  454. Blockly.Msg.MATH_RANDOM_INT_TOOLTIP = 'Return a random integer between the two specified limits, inclusive.';
  455. /// url - Information about how computers generate random numbers (specifically, numbers in the range from 0 to just below 1).
  456. Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL = 'https://en.wikipedia.org/wiki/Random_number_generation';
  457. /// block text - The title of the block that generates a random number greater than or equal to 0 and less than 1.
  458. Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM = 'random fraction';
  459. /// tooltip - Return a random fraction between 0 and 1. The value may be equal to 0 but must be less than 1.
  460. Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP = 'Return a random fraction between 0.0 (inclusive) and 1.0 (exclusive).';
  461. // Text Blocks.
  462. /// url - Information about how computers represent text (sometimes referred to as ''string''s).
  463. Blockly.Msg.TEXT_TEXT_HELPURL = 'https://en.wikipedia.org/wiki/String_(computer_science)';
  464. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Introduction https://code.google.com/p/blockly/wiki/Text#Introduction].
  465. Blockly.Msg.TEXT_TEXT_TOOLTIP = 'A letter, word, or line of text.';
  466. /// url - Information on concatenating/appending pieces of text.
  467. Blockly.Msg.TEXT_JOIN_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Text_creation';
  468. /// block text - See [https://code.google.com/p/blockly/wiki/Text#Text_creation https://code.google.com/p/blockly/wiki/Text#Text_creation].
  469. Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH = 'create text with';
  470. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Text_creation create text with] for more information.
  471. Blockly.Msg.TEXT_JOIN_TOOLTIP = 'Create a piece of text by joining together any number of items.';
  472. /// block text - This is shown when the programmer wants to change the number of pieces of text being joined together. See [https://code.google.com/p/blockly/wiki/Text#Text_creation https://code.google.com/p/blockly/wiki/Text#Text_creation], specifically the last picture in the 'Text creation' section.
  473. Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN = 'join';
  474. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Text_creation https://code.google.com/p/blockly/wiki/Text#Text_creation], specifically the last picture in the 'Text creation' section.
  475. Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this text block.';
  476. Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  477. /// block text - See [https://code.google.com/p/blockly/wiki/Text#Text_creation https://code.google.com/p/blockly/wiki/Text#Text_creation], specifically the last picture in the 'Text creation' section.
  478. Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP = 'Add an item to the text.';
  479. /// 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]).
  480. Blockly.Msg.TEXT_APPEND_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Text_modification';
  481. /// block input text - Message preceding the name of a variable to which text should be appended.
  482. /// [[File:blockly-append-text.png]]
  483. Blockly.Msg.TEXT_APPEND_TO = 'to';
  484. /// block input text - Message following the variable and preceding the piece of text that should
  485. /// be appended, as shown below.
  486. /// [[File:blockly-append-text.png]]
  487. Blockly.Msg.TEXT_APPEND_APPENDTEXT = 'append text';
  488. Blockly.Msg.TEXT_APPEND_VARIABLE = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  489. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Text_modification https://code.google.com/p/blockly/wiki/Text#Text_modification] for more information.\n\nParameters:\n* %1 - the name of the variable to which text should be appended
  490. Blockly.Msg.TEXT_APPEND_TOOLTIP = 'Append some text to variable "%1".';
  491. /// url - Information about text on computers (usually referred to as 'strings').
  492. Blockly.Msg.TEXT_LENGTH_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Text_modification';
  493. /// block text - See [https://code.google.com/p/blockly/wiki/Text#Text_length https://code.google.com/p/blockly/wiki/Text#Text_length].
  494. /// \n\nParameters:\n* %1 - the piece of text to take the length of
  495. Blockly.Msg.TEXT_LENGTH_TITLE = 'length of %1';
  496. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Text_length https://code.google.com/p/blockly/wiki/Text#Text_length].
  497. Blockly.Msg.TEXT_LENGTH_TOOLTIP = 'Returns the number of letters (including spaces) in the provided text.';
  498. /// url - Information about empty pieces of text on computers (usually referred to as 'empty strings').
  499. Blockly.Msg.TEXT_ISEMPTY_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Checking_for_empty_text';
  500. /// block text - See [https://code.google.com/p/blockly/wiki/Text#Checking_for_empty_text https://code.google.com/p/blockly/wiki/Text#Checking_for_empty_text].
  501. /// \n\nParameters:\n* %1 - the piece of text to test for emptiness
  502. Blockly.Msg.TEXT_ISEMPTY_TITLE = '%1 is empty';
  503. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Checking_for_empty_text https://code.google.com/p/blockly/wiki/Text#Checking_for_empty_text].
  504. Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = 'Returns true if the provided text is empty.';
  505. /// url - Information about finding a character in a piece of text.
  506. Blockly.Msg.TEXT_INDEXOF_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Finding_text';
  507. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Finding_text https://code.google.com/p/blockly/wiki/Text#Finding_text].
  508. Blockly.Msg.TEXT_INDEXOF_TOOLTIP = 'Returns the index of the first/last occurrence of first text in the second text. Returns 0 if text is not found.';
  509. /// block text - Title of blocks allowing users to find text. See
  510. /// [https://code.google.com/p/blockly/wiki/Text#Finding_text
  511. /// https://code.google.com/p/blockly/wiki/Text#Finding_text].
  512. /// [[File:Blockly-find-text.png]].
  513. Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT = 'in text';
  514. /// dropdown - See [https://code.google.com/p/blockly/wiki/Text#Finding_text
  515. /// https://code.google.com/p/blockly/wiki/Text#Finding_text].
  516. /// [[File:Blockly-find-text.png]].
  517. Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST = 'find first occurrence of text';
  518. /// dropdown - See [https://code.google.com/p/blockly/wiki/Text#Finding_text
  519. /// https://code.google.com/p/blockly/wiki/Text#Finding_text]. This would
  520. /// replace "find first occurrence of text" below. (For more information on
  521. /// how common text is factored out of dropdown menus, see
  522. /// [https://translatewiki.net/wiki/Translating:Blockly#Drop-Down_Menus
  523. /// https://translatewiki.net/wiki/Translating:Blockly#Drop-Down_Menus)].)
  524. /// [[File:Blockly-find-text.png]].
  525. Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST = 'find last occurrence of text';
  526. /// block text - Optional text to follow the rightmost block in a
  527. /// [https://code.google.com/p/blockly/wiki/Text#Finding_text
  528. /// https://code.google.com/p/blockly/wiki/Text#Finding_text in text ... find block]
  529. /// (after the "a" in the below picture). This will be the empty string in most languages.
  530. /// [[File:Blockly-find-text.png]].
  531. Blockly.Msg.TEXT_INDEXOF_TAIL = '';
  532. /// url - Information about extracting characters (letters, number, symbols, etc.) from text.
  533. Blockly.Msg.TEXT_CHARAT_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Extracting_text';
  534. /// block text - Appears before the piece of text from which a letter (or number,
  535. /// punctuation character, etc.) should be extracted, as shown below. See
  536. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  537. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  538. /// [[File:Blockly-text-get.png]]
  539. Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT = 'in text';
  540. /// dropdown - Indicates that the letter (or number, punctuation character, etc.) with the
  541. /// specified index should be obtained from the preceding piece of text. See
  542. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  543. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  544. /// [[File:Blockly-text-get.png]]
  545. Blockly.Msg.TEXT_CHARAT_FROM_START = 'get letter #';
  546. /// block text - Indicates that the letter (or number, punctuation character, etc.) with the
  547. /// specified index from the end of a given piece of text should be obtained. See
  548. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  549. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  550. /// [[File:Blockly-text-get.png]]
  551. Blockly.Msg.TEXT_CHARAT_FROM_END = 'get letter # from end';
  552. /// block text - Indicates that the first letter of the following piece of text should be
  553. /// retrieved. See [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  554. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  555. /// [[File:Blockly-text-get.png]]
  556. Blockly.Msg.TEXT_CHARAT_FIRST = 'get first letter';
  557. /// block text - Indicates that the last letter (or number, punctuation mark, etc.) of the
  558. /// following piece of text should be retrieved. See
  559. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  560. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  561. /// [[File:Blockly-text-get.png]]
  562. Blockly.Msg.TEXT_CHARAT_LAST = 'get last letter';
  563. /// block text - Indicates that any letter (or number, punctuation mark, etc.) in the
  564. /// following piece of text should be randomly selected. See
  565. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  566. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  567. /// [[File:Blockly-text-get.png]]
  568. Blockly.Msg.TEXT_CHARAT_RANDOM = 'get random letter';
  569. /// block text - Text that goes after the rightmost block/dropdown when getting a single letter from
  570. /// a piece of text, as in [https://blockly-demo.appspot.com/static/apps/code/index.html#3m23km these
  571. /// blocks] or shown below. For most languages, this will be blank.
  572. /// [[File:Blockly-text-get.png]]
  573. Blockly.Msg.TEXT_CHARAT_TAIL = '';
  574. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character
  575. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_single_character].
  576. /// [[File:Blockly-text-get.png]]
  577. Blockly.Msg.TEXT_CHARAT_TOOLTIP = 'Returns the letter at the specified position.';
  578. /// See [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  579. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  580. Blockly.Msg.TEXT_GET_SUBSTRING_TOOLTIP = 'Returns a specified portion of the text.';
  581. /// url - Information about extracting characters from text. Reminder: urls are the
  582. /// lowest priority translations. Feel free to skip.
  583. Blockly.Msg.TEXT_GET_SUBSTRING_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text';
  584. /// block text - Precedes a piece of text from which a portion should be extracted.
  585. /// [[File:Blockly-get-substring.png]]
  586. Blockly.Msg.TEXT_GET_SUBSTRING_INPUT_IN_TEXT = 'in text';
  587. /// dropdown - Indicates that the following number specifies the position (relative to the start
  588. /// position) of the beginning of the region of text that should be obtained from the preceding
  589. /// piece of text. See [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  590. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  591. /// [[File:Blockly-get-substring.png]]
  592. Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START = 'get substring from letter #';
  593. /// dropdown - Indicates that the following number specifies the position (relative to the end
  594. /// position) of the beginning of the region of text that should be obtained from the preceding
  595. /// piece of text. See [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  596. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  597. /// Note: If {{msg-Blockly|ORDINAL_NUMBER_SUFFIX}} is defined, it will
  598. /// automatically appear ''after'' this and any other
  599. /// [https://translatewiki.net/wiki/Translating:Blockly#Ordinal_numbers ordinal numbers]
  600. /// on this block.
  601. /// [[File:Blockly-get-substring.png]]
  602. Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_END = 'get substring from letter # from end';
  603. /// block text - Indicates that a region starting with the first letter of the preceding piece
  604. /// of text should be extracted. See
  605. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  606. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  607. /// [[File:Blockly-get-substring.png]]
  608. Blockly.Msg.TEXT_GET_SUBSTRING_START_FIRST = 'get substring from first letter';
  609. /// dropdown - Indicates that the following number specifies the position (relative to
  610. /// the start position) of the end of the region of text that should be obtained from the
  611. /// preceding piece of text. See [
  612. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  613. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  614. /// [[File:Blockly-get-substring.png]]
  615. Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_START = 'to letter #';
  616. /// dropdown - Indicates that the following number specifies the position (relative to the
  617. /// end position) of the end of the region of text that should be obtained from the preceding
  618. /// piece of text. See
  619. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  620. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  621. /// [[File:Blockly-get-substring.png]]
  622. Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_END = 'to letter # from end';
  623. /// block text - Indicates that a region ending with the last letter of the preceding piece
  624. /// of text should be extracted. See
  625. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  626. /// https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text].
  627. /// [[File:Blockly-get-substring.png]]
  628. Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST = 'to last letter';
  629. /// block text - Text that should go after the rightmost block/dropdown when
  630. /// [https://code.google.com/p/blockly/wiki/Text#Extracting_a_region_of_text
  631. /// extracting a region of text]. In most languages, this will be the empty string.
  632. /// [[File:Blockly-get-substring.png]]
  633. Blockly.Msg.TEXT_GET_SUBSTRING_TAIL = '';
  634. /// url - Information about the case of letters (upper-case and lower-case).
  635. Blockly.Msg.TEXT_CHANGECASE_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case'
  636. /// tooltip - Describes a block to adjust the case of letters. For more information on this block,
  637. /// see [https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case
  638. /// https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case].
  639. Blockly.Msg.TEXT_CHANGECASE_TOOLTIP = 'Return a copy of the text in a different case.';
  640. /// block text - Indicates that all of the letters in the following piece of text should be
  641. /// capitalized. If your language does not use case, you may indicate that this is not
  642. /// applicable to your language. For more information on this block, see
  643. /// [https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case
  644. /// https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case].
  645. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE = 'to UPPER CASE';
  646. /// 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://code.google.com/p/blockly/wiki/Text#Adjusting_text_case https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case].
  647. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE = 'to lower case';
  648. /// 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://code.google.com/p/blockly/wiki/Text#Adjusting_text_case https://code.google.com/p/blockly/wiki/Text#Adjusting_text_case].
  649. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE = 'to Title Case';
  650. /// url - Information about trimming (removing) text off the beginning and ends of pieces of text.
  651. Blockly.Msg.TEXT_TRIM_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Trimming_%28removing%29_spaces';
  652. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces
  653. /// https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces].
  654. Blockly.Msg.TEXT_TRIM_TOOLTIP = 'Return a copy of the text with spaces removed from one or both ends.';
  655. /// dropdown - Removes spaces from the beginning and end of a piece of text. See
  656. /// [https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces
  657. /// https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces]. Note that neither
  658. /// this nor the other options modify the original piece of text (that follows);
  659. /// the block just returns a version of the text without the specified spaces.
  660. Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH = 'trim spaces from both sides of';
  661. /// dropdown - Removes spaces from the beginning of a piece of text. See
  662. /// [https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces
  663. /// https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces].
  664. /// Note that in right-to-left scripts, this will remove spaces from the right side.
  665. Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT = 'trim spaces from left side of';
  666. /// dropdown - Removes spaces from the end of a piece of text. See
  667. /// [https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces
  668. /// https://code.google.com/p/blockly/wiki/Text#Trimming_(removing)_spaces].
  669. /// Note that in right-to-left scripts, this will remove spaces from the left side.
  670. Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT = 'trim spaces from right side of';
  671. /// url - Information about displaying text on computers.
  672. Blockly.Msg.TEXT_PRINT_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Printing_text';
  673. /// block text - Display the input on the screen. See
  674. /// [https://code.google.com/p/blockly/wiki/Text#Printing_text
  675. /// https://code.google.com/p/blockly/wiki/Text#Printing_text].
  676. /// \n\nParameters:\n* %1 - the value to print
  677. Blockly.Msg.TEXT_PRINT_TITLE = 'print %1';
  678. /// tooltip - See [https://code.google.com/p/blockly/wiki/Text#Printing_text
  679. /// https://code.google.com/p/blockly/wiki/Text#Printing_text].
  680. Blockly.Msg.TEXT_PRINT_TOOLTIP = 'Print the specified text, number or other value.';
  681. /// url - Information about getting text from users.
  682. Blockly.Msg.TEXT_PROMPT_HELPURL = 'https://code.google.com/p/blockly/wiki/Text#Getting_input_from_the_user';
  683. /// dropdown - Specifies that a piece of text should be requested from the user with
  684. /// the following message. See [https://code.google.com/p/blockly/wiki/Text#Printing_text
  685. /// https://code.google.com/p/blockly/wiki/Text#Printing_text].
  686. Blockly.Msg.TEXT_PROMPT_TYPE_TEXT = 'prompt for text with message';
  687. /// dropdown - Specifies that a number should be requested from the user with the
  688. /// following message. See [https://code.google.com/p/blockly/wiki/Text#Printing_text
  689. /// https://code.google.com/p/blockly/wiki/Text#Printing_text].
  690. Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER = 'prompt for number with message';
  691. /// dropdown - Precedes the message with which the user should be prompted for
  692. /// a number. See [https://code.google.com/p/blockly/wiki/Text#Printing_text
  693. /// https://code.google.com/p/blockly/wiki/Text#Printing_text].
  694. Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = 'Prompt for user for a number.';
  695. /// dropdown - Precedes the message with which the user should be prompted for some text.
  696. /// See [https://code.google.com/p/blockly/wiki/Text#Printing_text
  697. /// https://code.google.com/p/blockly/wiki/Text#Printing_text].
  698. Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = 'Prompt for user for some text.';
  699. // Lists Blocks.
  700. /// url - Information on empty lists.
  701. Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = 'https://en.wikipedia.org/wiki/Linked_list#Empty_lists';
  702. /// block text - See [https://code.google.com/p/blockly/wiki/Lists#create_empty_list https://code.google.com/p/blockly/wiki/Lists#create_empty_list].
  703. Blockly.Msg.LISTS_CREATE_EMPTY_TITLE = 'create empty list';
  704. /// block text - See [https://code.google.com/p/blockly/wiki/Lists#create_empty_list https://code.google.com/p/blockly/wiki/Lists#create_empty_list].
  705. Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP = 'Returns a list, of length 0, containing no data records';
  706. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#create_list_with https://code.google.com/p/blockly/wiki/Lists#create_list_with].
  707. Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP = 'Create a list with any number of items.';
  708. /// block text - See [https://code.google.com/p/blockly/wiki/Lists#create_list_with https://code.google.com/p/blockly/wiki/Lists#create_list_with].
  709. Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH = 'create list with';
  710. /// block text - This appears in a sub-block when [https://code.google.com/p/blockly/wiki/Lists#changing_number_of_inputs changing the number of inputs in a ''''create list with'''' block].
  711. Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD = 'list';
  712. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#changing_number_of_inputs https://code.google.com/p/blockly/wiki/Lists#changing_number_of_inputs].
  713. Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this list block.';
  714. Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  715. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#changing_number_of_inputs https://code.google.com/p/blockly/wiki/Lists#changing_number_of_inputs].
  716. Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP = 'Add an item to the list.';
  717. /// url - Information about [https://code.google.com/p/blockly/wiki/Lists#create_list_with creating a list with multiple copies of a single item].
  718. Blockly.Msg.LISTS_REPEAT_HELPURL = 'https://code.google.com/p/blockly/wiki/Lists#create_list_with';
  719. /// url - See [https://code.google.com/p/blockly/wiki/Lists#create_list_with creating a list with multiple copies of a single item].
  720. Blockly.Msg.LISTS_REPEAT_TOOLTIP = 'Creates a list consisting of the given value repeated the specified number of times.';
  721. /// block text - See [https://code.google.com/p/blockly/wiki/Lists#create_list_with
  722. /// https://code.google.com/p/blockly/wiki/Lists#create_list_with].
  723. ///\n\nParameters:\n* %1 - the item (text) to be repeated\n* %2 - the number of times to repeat it
  724. Blockly.Msg.LISTS_REPEAT_TITLE = 'create list with item %1 repeated %2 times';
  725. /// 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).
  726. Blockly.Msg.LISTS_LENGTH_HELPURL = 'https://code.google.com/p/blockly/wiki/Lists#length_of';
  727. /// block text - See [https://code.google.com/p/blockly/wiki/Lists#length_of https://code.google.com/p/blockly/wiki/Lists#length_of].
  728. /// \n\nParameters:\n* %1 - the list whose length is desired
  729. Blockly.Msg.LISTS_LENGTH_TITLE = 'length of %1';
  730. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#length_of https://code.google.com/p/blockly/wiki/Lists#length_of Blockly:Lists:length of].
  731. Blockly.Msg.LISTS_LENGTH_TOOLTIP = 'Returns the length of a list.';
  732. /// url - See [https://code.google.com/p/blockly/wiki/Lists#is_empty https://code.google.com/p/blockly/wiki/Lists#is_empty].
  733. Blockly.Msg.LISTS_IS_EMPTY_HELPURL = 'https://code.google.com/p/blockly/wiki/Lists#is_empty';
  734. /// block text - See [https://code.google.com/p/blockly/wiki/Lists#is_empty
  735. /// https://code.google.com/p/blockly/wiki/Lists#is_empty].
  736. /// \n\nParameters:\n* %1 - the list to test
  737. Blockly.Msg.LISTS_IS_EMPTY_TITLE = '%1 is empty';
  738. /// block tooltip - See [https://code.google.com/p/blockly/wiki/Lists#is_empty
  739. /// https://code.google.com/p/blockly/wiki/Lists#is_empty].
  740. Blockly.Msg.LISTS_TOOLTIP = 'Returns true if the list is empty.';
  741. /// block text - Title of blocks operating on [https://code.google.com/p/blockly/wiki/Lists lists].
  742. Blockly.Msg.LISTS_INLIST = 'in list';
  743. /// url - See [https://code.google.com/p/blockly/wiki/Lists#Getting_Items_from_a_List
  744. /// https://code.google.com/p/blockly/wiki/Lists#Getting_Items_from_a_List].
  745. Blockly.Msg.LISTS_INDEX_OF_HELPURL = 'https://code.google.com/p/blockly/wiki/Lists#Getting_Items_from_a_List';
  746. Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  747. /// dropdown - See [https://code.google.com/p/blockly/wiki/Lists#Finding_Items_in_a_List
  748. /// Lists#Finding_Items_in_a_List].
  749. /// [[File:Blockly-list-find.png]]
  750. Blockly.Msg.LISTS_INDEX_OF_FIRST = 'find first occurrence of item';
  751. /// dropdown - See [https://code.google.com/p/blockly/wiki/Lists#Finding_Items_in_a_List
  752. /// https://code.google.com/p/blockly/wiki/Lists#Finding_Items_in_a_List].
  753. /// [[File:Blockly-list-find.png]]
  754. Blockly.Msg.LISTS_INDEX_OF_LAST = 'find last occurrence of item';
  755. /// dropdown - See [https://code.google.com/p/blockly/wiki/Lists#Finding_Items_in_a_List
  756. /// https://code.google.com/p/blockly/wiki/Lists#Finding_Items_in_a_List].
  757. /// [[File:Blockly-list-find.png]]
  758. Blockly.Msg.LISTS_INDEX_OF_TOOLTIP = 'Returns the index of the first/last occurrence of the item in the list. Returns 0 if text is not found.';
  759. Blockly.Msg.LISTS_GET_INDEX_HELPURL = Blockly.Msg.LISTS_INDEX_OF_HELPURL;
  760. /// dropdown - Indicates that the user wishes to
  761. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  762. /// get an item from a list] without removing it from the list.
  763. Blockly.Msg.LISTS_GET_INDEX_GET = 'get';
  764. /// dropdown - Indicates that the user wishes to
  765. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  766. /// get and remove an item from a list], as opposed to merely getting
  767. /// it without modifying the list.
  768. Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE = 'get and remove';
  769. /// dropdown - Indicates that the user wishes to
  770. /// [https://code.google.com/p/blockly/wiki/Lists#Removing_an_item
  771. /// remove an item from a list].
  772. Blockly.Msg.LISTS_GET_INDEX_REMOVE = 'remove';
  773. /// dropdown - Indicates that an index relative to the front of the list should be used to
  774. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item get and/or remove
  775. /// an item from a list]. Note: If {{msg-Blockly|ORDINAL_NUMBER_SUFFIX}} is defined, it will
  776. /// automatically appear ''after'' this number (and any other ordinal numbers on this block).
  777. /// See [[Translating:Blockly#Ordinal_numbers]] for more information on ordinal numbers in Blockly.
  778. /// [[File:Blockly-list-get-item.png]]
  779. Blockly.Msg.LISTS_GET_INDEX_FROM_START = '#';
  780. /// dropdown - Indicates that an index relative to the end of the list should be used
  781. /// to [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item access an item in a list].
  782. /// [[File:Blockly-list-get-item.png]]
  783. Blockly.Msg.LISTS_GET_INDEX_FROM_END = '# from end';
  784. /// dropdown - Indicates that the '''first''' item should be
  785. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item accessed in a list].
  786. /// [[File:Blockly-list-get-item.png]]
  787. Blockly.Msg.LISTS_GET_INDEX_FIRST = 'first';
  788. /// dropdown - Indicates that the '''last''' item should be
  789. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item accessed in a list].
  790. /// [[File:Blockly-list-get-item.png]]
  791. Blockly.Msg.LISTS_GET_INDEX_LAST = 'last';
  792. /// dropdown - Indicates that a '''random''' item should be
  793. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item accessed in a list].
  794. /// [[File:Blockly-list-get-item.png]]
  795. Blockly.Msg.LISTS_GET_INDEX_RANDOM = 'random';
  796. /// block text - Text that should go after the rightmost block/dropdown when
  797. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  798. /// accessing an item from a list]. In most languages, this will be the empty string.
  799. /// [[File:Blockly-list-get-item.png]]
  800. Blockly.Msg.LISTS_GET_INDEX_TAIL = '';
  801. Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  802. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  803. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for more information.
  804. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_START = 'Returns the item at the specified position in a list. #1 is the first item.';
  805. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  806. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for more information.
  807. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_END = 'Returns the item at the specified position in a list. #1 is the last item.';
  808. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  809. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for more information.
  810. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST = 'Returns the first item in a list.';
  811. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  812. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for more information.
  813. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST = 'Returns the last item in a list.';
  814. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item
  815. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for more information.
  816. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM = 'Returns a random item in a list.';
  817. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item]
  818. /// (for remove and return) and
  819. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for '# from start'.
  820. 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.';
  821. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for '# from end'.
  822. 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.';
  823. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for 'first'.
  824. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST = 'Removes and returns the first item in a list.';
  825. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for 'last'.
  826. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST = 'Removes and returns the last item in a list.';
  827. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for 'random'.
  828. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM = 'Removes and returns a random item in a list.';
  829. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for '# from start'.
  830. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_START = 'Removes the item at the specified position in a list. #1 is the first item.';
  831. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for '# from end'.
  832. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_END = 'Removes the item at the specified position in a list. #1 is the last item.';
  833. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for 'first'.
  834. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST = 'Removes the first item in a list.';
  835. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for 'last'.
  836. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST = 'Removes the last item in a list.';
  837. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_and_removing_an_item] (for remove and return) and [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item] for 'random'.
  838. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM = 'Removes a random item in a list.';
  839. /// url - Information about putting items in lists.
  840. Blockly.Msg.LISTS_SET_INDEX_HELPURL = 'https://code.google.com/p/blockly/wiki/Lists#in_list_..._set';
  841. Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  842. /// block text - [https://code.google.com/p/blockly/wiki/Lists#in_list_..._set
  843. /// Replaces an item in a list].
  844. /// [[File:Blockly-in-list-set-insert.png]]
  845. Blockly.Msg.LISTS_SET_INDEX_SET = 'set';
  846. /// block text - [https://code.google.com/p/blockly/wiki/Lists#in_list_..._insert_at
  847. /// Inserts an item into a list].
  848. /// [[File:Blockly-in-list-set-insert.png]]
  849. Blockly.Msg.LISTS_SET_INDEX_INSERT = 'insert at';
  850. /// block text - The word(s) after the position in the list and before the item to be set/inserted.
  851. /// [[File:Blockly-in-list-set-insert.png]]
  852. Blockly.Msg.LISTS_SET_INDEX_INPUT_TO = 'as';
  853. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  854. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_START = 'Sets the item at the specified position in a list. #1 is the first item.';
  855. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  856. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_END = 'Sets the item at the specified position in a list. #1 is the last item.';
  857. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  858. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST = 'Sets the first item in a list.';
  859. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  860. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST = 'Sets the last item in a list.';
  861. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "set" block).
  862. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM = 'Sets a random item in a list.';
  863. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  864. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_START = 'Inserts the item at the specified position in a list. #1 is the first item.';
  865. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  866. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_END = 'Inserts the item at the specified position in a list. #1 is the last item.';
  867. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  868. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST = 'Inserts the item at the start of a list.';
  869. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  870. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST = 'Append the item to the end of a list.';
  871. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_single_item} (even though the page describes the "get" block, the idea is the same for the "insert" block).
  872. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM = 'Inserts the item randomly in a list.';
  873. /// url - Information describing extracting a sublist from an existing list.
  874. Blockly.Msg.LISTS_GET_SUBLIST_HELPURL = 'https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist';
  875. Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = Blockly.Msg.LISTS_INLIST;
  876. /// dropdown - Indicates that an index relative to the front of the list should be used
  877. /// to specify the beginning of the range from which to
  878. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist get a sublist].
  879. /// [[File:Blockly-get-sublist.png]]
  880. /// Note: If {{msg-Blockly|ORDINAL_NUMBER_SUFFIX}} is defined, it will
  881. /// automatically appear ''after'' this number (and any other ordinal numbers on this block).
  882. /// See [[Translating:Blockly#Ordinal_numbers]] for more information on ordinal numbers in Blockly.
  883. Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_START = 'get sub-list from #';
  884. /// dropdown - Indicates that an index relative to the end of the list should be used
  885. /// to specify the beginning of the range from which to
  886. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist get a sublist].
  887. Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_END = 'get sub-list from # from end';
  888. /// dropdown - Indicates that the
  889. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist sublist to extract]
  890. /// should begin with the list's first item.
  891. Blockly.Msg.LISTS_GET_SUBLIST_START_FIRST = 'get sub-list from first';
  892. /// dropdown - Indicates that an index relative to the front of the list should be
  893. /// used to specify the end of the range from which to
  894. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist get a sublist].
  895. /// [[File:Blockly-get-sublist.png]]
  896. Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_START = 'to #';
  897. /// dropdown - Indicates that an index relative to the end of the list should be
  898. /// used to specify the end of the range from which to
  899. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist get a sublist].
  900. /// [[File:Blockly-get-sublist.png]]
  901. Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_END = 'to # from end';
  902. /// dropdown - Indicates that the '''last''' item in the given list should be
  903. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist the end
  904. /// of the selected sublist].
  905. /// [[File:Blockly-get-sublist.png]]
  906. Blockly.Msg.LISTS_GET_SUBLIST_END_LAST = 'to last';
  907. /// block text - This appears in the rightmost position ("tail") of the
  908. /// sublist block, as described at
  909. /// [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist
  910. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist].
  911. /// In English and most other languages, this is the empty string.
  912. /// [[File:Blockly-get-sublist.png]]
  913. Blockly.Msg.LISTS_GET_SUBLIST_TAIL = '';
  914. /// tooltip - See [https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist
  915. /// https://code.google.com/p/blockly/wiki/Lists#Getting_a_sublist] for more information.
  916. /// [[File:Blockly-get-sublist.png]]
  917. Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = 'Creates a copy of the specified portion of a list.';
  918. /// grammar - Text that follows an ordinal number (a number that indicates
  919. /// position relative to other numbers). In most languages, such text appears
  920. /// before the number, so this should be blank. An exception is Hungarian.
  921. /// See [[Translating:Blockly#Ordinal_numbers]] for more information.
  922. Blockly.Msg.ORDINAL_NUMBER_SUFFIX = '';
  923. // Variables Blocks.
  924. /// 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.
  925. Blockly.Msg.VARIABLES_GET_HELPURL = 'https://code.google.com/p/blockly/wiki/Variables#Get';
  926. /// block text - This precedes the name of a variable when getting its values. In most (all?) languages, it should be the empty string. If unsure, ask yourself if any word should go before "x" in the expression "x + 1".
  927. Blockly.Msg.VARIABLES_GET_TITLE = '';
  928. Blockly.Msg.VARIABLES_GET_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  929. /// block text - This follows the name of a variable. In most (all?) languages, it should be the empty string. If unsure, ask yourself if any word should go after "x" in the expression "x + 1".
  930. Blockly.Msg.VARIABLES_GET_TAIL = '';
  931. /// tooltip - This gets the value of the named variable without modifying it.
  932. Blockly.Msg.VARIABLES_GET_TOOLTIP = 'Returns the value of this variable.';
  933. /// context menu - Selecting this creates a block to set (change) the value of this variable.
  934. /// \n\nParameters:\n* %1 - the name of the variable.
  935. Blockly.Msg.VARIABLES_GET_CREATE_SET = 'Create "set %1"';
  936. /// 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.
  937. Blockly.Msg.VARIABLES_SET_HELPURL = 'https://code.google.com/p/blockly/wiki/Variables#Set';
  938. /// block text - The imperative or infinitive form of the verb "set", as in: '''set''' [the value of] x to 7.
  939. Blockly.Msg.VARIABLES_SET_TITLE = 'set';
  940. Blockly.Msg.VARIABLES_SET_ITEM = Blockly.Msg.VARIABLES_DEFAULT_NAME;
  941. /// block text - The word that goes after the name of the variable and before its new
  942. /// value in: set [the value of] x '''to''' 7.
  943. Blockly.Msg.VARIABLES_SET_TAIL = 'to';
  944. /// tooltip - This initializes or changes the value of the named variable.
  945. Blockly.Msg.VARIABLES_SET_TOOLTIP = 'Sets this variable to be equal to the input.';
  946. /// context menu - Selecting this creates a block to get (change) the value of
  947. /// this variable.\n\nParameters:\n* %1 - the name of the variable.
  948. Blockly.Msg.VARIABLES_SET_CREATE_GET = 'Create "get %1"';
  949. // Procedures Blocks.
  950. /// url - Information about defining [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that do not have return values.
  951. Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  952. /// block text - This precedes the name of the function when defining it. See
  953. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#c84aoc this sample
  954. /// function definition].
  955. Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = 'to';
  956. /// default name - This acts as a placeholder for the name of a function on a
  957. /// function definition block, as shown on
  958. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#w7cfju this block].
  959. /// The user will replace it with the function's name.
  960. Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = 'do something';
  961. /// block text - This precedes the list of parameters on a function's defiition block. See
  962. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#voztpd this sample
  963. /// function with parameters].
  964. Blockly.Msg.PROCEDURES_BEFORE_PARAMS = 'with:';
  965. /// block text - This precedes the list of parameters on a function's caller block. See
  966. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#voztpd this sample
  967. /// function with parameters].
  968. Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS = 'with:';
  969. /// block text - This appears next to the function's "body", the blocks that should be
  970. /// run when the function is called, as shown in
  971. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#voztpd this sample
  972. /// function definition].
  973. Blockly.Msg.PROCEDURES_DEFNORETURN_DO = '';
  974. /// tooltip
  975. Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP = 'Creates a function with no output.';
  976. /// url - Information about defining [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that have return values.
  977. Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  978. Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE;
  979. Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE;
  980. Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO;
  981. /// block text - This imperative or infinite verb precedes the value that is used as the return value
  982. /// (output) of this function. See
  983. /// [https://blockly-demo.appspot.com/static/apps/code/index.html?lang=en#6ot5y5 this sample
  984. /// function that returns a value].
  985. Blockly.Msg.PROCEDURES_DEFRETURN_RETURN = 'return';
  986. /// tooltip
  987. Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP = 'Creates a function with an output.';
  988. /// Label for a checkbox that controls if statements are allowed in a function.
  989. Blockly.Msg.PROCEDURES_ALLOW_STATEMENTS = 'allow statements';
  990. /// alert - The user has created a function with two parameters that have the same name. Every parameter must have a different name.
  991. Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING = 'Warning: This function has duplicate parameters.';
  992. /// url - Information about calling [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that do not return values.
  993. Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  994. /// block text - In most (if not all) languages, this will be the empty string.
  995. /// It precedes the name of the function that should be run. See, for example,
  996. /// the "draw square" block in [https://blockly-demo.appspot.com/static/apps/turtle/index.html#ztz96g].
  997. Blockly.Msg.PROCEDURES_CALLNORETURN_CALL = '';
  998. /// tooltip - This block causes the body (blocks inside) of the named function definition to be run.
  999. Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP = 'Run the user-defined function "%1".';
  1000. /// url - Information about calling [https://en.wikipedia.org/wiki/Procedure_(computer_science) functions] that return values.
  1001. Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL = 'https://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  1002. Blockly.Msg.PROCEDURES_CALLRETURN_CALL = Blockly.Msg.PROCEDURES_CALLNORETURN_CALL;
  1003. /// 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.
  1004. Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP = 'Run the user-defined function "%1" and use its output.';
  1005. /// block text - This text appears on a block in a window that appears when the user clicks
  1006. /// on the plus sign or star on a function definition block. It refers to the set of parameters
  1007. /// (referred to by the simpler term "inputs") to the function. See
  1008. /// [[Translating:Blockly#function_definitions]].
  1009. Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE = 'inputs';
  1010. /// tooltip
  1011. Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TOOLTIP = 'Add, remove, or reorder inputs to this function.';
  1012. /// block text - This text appears on a block in a window that appears when the user clicks
  1013. /// on the plus sign or star on a function definition block]. It appears on the block for
  1014. /// adding an individual parameter (referred to by the simpler term "inputs") to the function.
  1015. /// See [[Translating:Blockly#function_definitions]].
  1016. Blockly.Msg.PROCEDURES_MUTATORARG_TITLE = 'input name:';
  1017. /// tooltip
  1018. Blockly.Msg.PROCEDURES_MUTATORARG_TOOLTIP = 'Add an input to the function.';
  1019. /// context menu - This appears on the context menu for function calls. Selecting
  1020. /// it causes the corresponding function definition to be highlighted (as shown at
  1021. /// [[Translating:Blockly#context_menus]].
  1022. Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF = 'Highlight function definition';
  1023. /// context menu - This appears on the context menu for function definitions.
  1024. /// Selecting it creates a block to call the function. \n\nParameters:\n* %1 - the name of the function.
  1025. Blockly.Msg.PROCEDURES_CREATE_DO = 'Create "%1"';
  1026. /// tooltip - If the first value is true, this causes the second value to be returned
  1027. /// immediately from the enclosing function.
  1028. Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP = 'If a value is true, then return a second value.';
  1029. /// warning - This appears if the user tries to use this block outside of a function definition.
  1030. Blockly.Msg.PROCEDURES_IFRETURN_WARNING = 'Warning: This block may be used only within a function definition.';
  1031. /// STDIO blocks
  1032. Blockly.Msg.STDIO_PRINTF_TITLE = 'printf %1';
  1033. /// printf text message
  1034. Blockly.Msg.STDIO_SCANF_TITLE = 'scanf %1';
  1035. /// scanf text message