en_us.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. /**
  2. * Visual Blocks Language
  3. *
  4. * Copyright 2012 Google Inc.
  5. * https://blockly.googlecode.com/
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. */
  19. /**
  20. * @fileoverview English strings.
  21. * @author fraser@google.com (Neil Fraser)
  22. */
  23. 'use strict';
  24. goog.provide('Blockly.Msg.en_us');
  25. goog.require('Blockly.Msg');
  26. /**
  27. * Due to the frequency of long strings, the 80-column wrap rule need not apply
  28. * to message files.
  29. */
  30. // Context menus.
  31. Blockly.Msg.DUPLICATE_BLOCK = 'Duplicate';
  32. Blockly.Msg.REMOVE_COMMENT = 'Remove Comment';
  33. Blockly.Msg.ADD_COMMENT = 'Add Comment';
  34. Blockly.Msg.EXTERNAL_INPUTS = 'External Inputs';
  35. Blockly.Msg.INLINE_INPUTS = 'Inline Inputs';
  36. Blockly.Msg.DELETE_BLOCK = 'Delete Block';
  37. Blockly.Msg.DELETE_X_BLOCKS = 'Delete %1 Blocks';
  38. Blockly.Msg.COLLAPSE_BLOCK = 'Collapse Block';
  39. Blockly.Msg.EXPAND_BLOCK = 'Expand Block';
  40. Blockly.Msg.DISABLE_BLOCK = 'Disable Block';
  41. Blockly.Msg.ENABLE_BLOCK = 'Enable Block';
  42. Blockly.Msg.HELP = 'Help';
  43. Blockly.Msg.COLLAPSE_ALL = 'Collapse Blocks';
  44. Blockly.Msg.EXPAND_ALL = 'Expand Blocks';
  45. // Variable renaming.
  46. Blockly.Msg.CHANGE_VALUE_TITLE = 'Change value:';
  47. Blockly.Msg.NEW_VARIABLE = 'New variable...';
  48. Blockly.Msg.NEW_VARIABLE_TITLE = 'New variable name:';
  49. Blockly.Msg.RENAME_VARIABLE = 'Rename variable...';
  50. Blockly.Msg.RENAME_VARIABLE_TITLE = 'Rename all "%1" variables to:';
  51. // Colour Blocks.
  52. Blockly.Msg.COLOUR_PICKER_HELPURL = 'http://en.wikipedia.org/wiki/Color';
  53. Blockly.Msg.COLOUR_PICKER_TOOLTIP = 'Choose a color from the palette.';
  54. Blockly.Msg.COLOUR_RANDOM_HELPURL = 'http://randomcolour.com';
  55. Blockly.Msg.COLOUR_RANDOM_TITLE = 'random color';
  56. Blockly.Msg.COLOUR_RANDOM_TOOLTIP = 'Choose a color at random.';
  57. Blockly.Msg.COLOUR_RGB_HELPURL = 'http://www.december.com/html/spec/colorper.html';
  58. Blockly.Msg.COLOUR_RGB_TITLE = 'color with';
  59. Blockly.Msg.COLOUR_RGB_RED = 'red';
  60. Blockly.Msg.COLOUR_RGB_GREEN = 'green';
  61. Blockly.Msg.COLOUR_RGB_BLUE = 'blue';
  62. Blockly.Msg.COLOUR_RGB_TOOLTIP = 'Create a color with the specified amount of red, green,\n' +
  63. 'and blue. All values must be between 0 and 100.';
  64. Blockly.Msg.COLOUR_BLEND_HELPURL = 'http://meyerweb.com/eric/tools/color-blend/';
  65. Blockly.Msg.COLOUR_BLEND_TITLE = 'blend';
  66. Blockly.Msg.COLOUR_BLEND_COLOUR1 = 'color 1';
  67. Blockly.Msg.COLOUR_BLEND_COLOUR2 = 'color 2';
  68. Blockly.Msg.COLOUR_BLEND_RATIO = 'ratio';
  69. Blockly.Msg.COLOUR_BLEND_TOOLTIP = 'Blends two colors together with a given ratio (0.0 - 1.0).';
  70. // Loop Blocks.
  71. Blockly.Msg.CONTROLS_REPEAT_HELPURL = 'http://en.wikipedia.org/wiki/For_loop';
  72. Blockly.Msg.CONTROLS_REPEAT_TITLE_REPEAT = 'repeat';
  73. Blockly.Msg.CONTROLS_REPEAT_TITLE_TIMES = 'times';
  74. Blockly.Msg.CONTROLS_REPEAT_INPUT_DO = 'do';
  75. Blockly.Msg.CONTROLS_REPEAT_TOOLTIP = 'Do some statements several times.';
  76. Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL = 'http://code.google.com/p/blockly/wiki/Repeat';
  77. Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO = 'do';
  78. Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE = 'repeat while';
  79. Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL = 'repeat until';
  80. Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE = 'While a value is true, then do some statements.';
  81. Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL = 'While a value is false, then do some statements.';
  82. Blockly.Msg.CONTROLS_FOR_HELPURL = 'http://en.wikipedia.org/wiki/For_loop';
  83. Blockly.Msg.CONTROLS_FOR_INPUT_WITH = 'count with';
  84. Blockly.Msg.CONTROLS_FOR_INPUT_VAR = 'x';
  85. Blockly.Msg.CONTROLS_FOR_INPUT_FROM_TO_BY = 'from %1 to %2 y %3';
  86. Blockly.Msg.CONTROLS_FOR_INPUT_DO = 'do';
  87. Blockly.Msg.CONTROLS_FOR_TAIL = '';
  88. Blockly.Msg.CONTROLS_FOR_TOOLTIP = 'Count from a start number to an end number by the specified interval.\n' +
  89. 'For each count, set the current count number to\n' +
  90. 'variable "%1", and then do some statements.';
  91. Blockly.Msg.CONTROLS_FOREACH_HELPURL = 'http://en.wikipedia.org/wiki/For_loop';
  92. Blockly.Msg.CONTROLS_FOREACH_INPUT_ITEM = 'for each item';
  93. Blockly.Msg.CONTROLS_FOREACH_INPUT_VAR = 'x';
  94. Blockly.Msg.CONTROLS_FOREACH_INPUT_INLIST = 'in list';
  95. Blockly.Msg.CONTROLS_FOREACH_INPUT_INLIST_TAIL = '';
  96. Blockly.Msg.CONTROLS_FOREACH_INPUT_DO = 'do';
  97. Blockly.Msg.CONTROLS_FOREACH_TOOLTIP = 'For each item in a list, set the item to\n' +
  98. 'variable "%1", and then do some statements.';
  99. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL = 'http://en.wikipedia.org/wiki/Control_flow';
  100. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK = 'break out of loop';
  101. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE = 'continue with next iteration of loop';
  102. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK = 'Break out of the containing loop.';
  103. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE = 'Skip the rest of this loop, and\n' +
  104. 'continue with the next iteration.';
  105. Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING = 'Warning:\n' +
  106. 'This block may only\n' +
  107. 'be used within a loop.';
  108. // Logic Blocks.
  109. Blockly.Msg.CONTROLS_IF_HELPURL = 'http://code.google.com/p/blockly/wiki/If_Then';
  110. Blockly.Msg.CONTROLS_IF_TOOLTIP_1 = 'If a value is true, then do some statements.';
  111. Blockly.Msg.CONTROLS_IF_TOOLTIP_2 = 'If a value is true, then do the first block of statements.\n' +
  112. 'Otherwise, do the second block of statements.';
  113. Blockly.Msg.CONTROLS_IF_TOOLTIP_3 = 'If the first value is true, then do the first block of statements.\n' +
  114. 'Otherwise, if the second value is true, do the second block of statements.';
  115. Blockly.Msg.CONTROLS_IF_TOOLTIP_4 = 'If the first value is true, then do the first block of statements.\n' +
  116. 'Otherwise, if the second value is true, do the second block of statements.\n' +
  117. 'If none of the values are true, do the last block of statements.';
  118. Blockly.Msg.CONTROLS_IF_MSG_IF = 'if';
  119. Blockly.Msg.CONTROLS_IF_MSG_ELSEIF = 'else if';
  120. Blockly.Msg.CONTROLS_IF_MSG_ELSE = 'else';
  121. Blockly.Msg.CONTROLS_IF_MSG_THEN = 'do';
  122. Blockly.Msg.CONTROLS_IF_IF_TITLE_IF = 'if';
  123. Blockly.Msg.CONTROLS_IF_IF_TOOLTIP = 'Add, remove, or reorder sections\n' +
  124. 'to reconfigure this if block.';
  125. Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF = 'else if';
  126. Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP = 'Add a condition to the if block.';
  127. Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE = 'else';
  128. Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP = 'Add a final, catch-all condition to the if block.';
  129. Blockly.Msg.LOGIC_COMPARE_HELPURL = 'http://en.wikipedia.org/wiki/Inequality_(mathematics)';
  130. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ = 'Return true if both inputs equal each other.';
  131. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ = 'Return true if both inputs are not equal to each other.';
  132. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT = 'Return true if the first input is smaller\n' +
  133. 'than the second input.';
  134. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE = 'Return true if the first input is smaller\n' +
  135. 'than or equal to the second input.';
  136. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT = 'Return true if the first input is greater\n' +
  137. 'than the second input.';
  138. Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE = 'Return true if the first input is greater\n' +
  139. 'than or equal to the second input.';
  140. Blockly.Msg.LOGIC_OPERATION_HELPURL = 'http://code.google.com/p/blockly/wiki/And_Or';
  141. Blockly.Msg.LOGIC_OPERATION_AND = 'and';
  142. Blockly.Msg.LOGIC_OPERATION_OR = 'or';
  143. Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND = 'Return true if both inputs are true.';
  144. Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR = 'Return true if either inputs are true.';
  145. Blockly.Msg.LOGIC_NEGATE_HELPURL = 'http://code.google.com/p/blockly/wiki/Not';
  146. Blockly.Msg.LOGIC_NEGATE_INPUT_NOT = 'not';
  147. Blockly.Msg.LOGIC_NEGATE_TOOLTIP = 'Returns true if the input is false.\n' +
  148. 'Returns false if the input is true.';
  149. Blockly.Msg.LOGIC_BOOLEAN_HELPURL = 'http://code.google.com/p/blockly/wiki/True_False';
  150. Blockly.Msg.LOGIC_BOOLEAN_TRUE = 'true';
  151. Blockly.Msg.LOGIC_BOOLEAN_FALSE = 'false';
  152. Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP = 'Returns either true or false.';
  153. Blockly.Msg.LOGIC_NULL_HELPURL = 'http://en.wikipedia.org/wiki/Nullable_type';
  154. Blockly.Msg.LOGIC_NULL = 'null';
  155. Blockly.Msg.LOGIC_NULL_TOOLTIP = 'Returns null.';
  156. Blockly.Msg.LOGIC_TERNARY_HELPURL = 'http://en.wikipedia.org/wiki/%3F:';
  157. Blockly.Msg.LOGIC_TERNARY_CONDITION = 'test';
  158. Blockly.Msg.LOGIC_TERNARY_IF_TRUE = 'if true';
  159. Blockly.Msg.LOGIC_TERNARY_IF_FALSE = 'if false';
  160. Blockly.Msg.LOGIC_TERNARY_TOOLTIP = 'Check the condition in "test". If the condition is true\n' +
  161. 'returns the "if true" value, otherwise returns the "if false" value.';
  162. // Math Blocks.
  163. Blockly.Msg.MATH_NUMBER_HELPURL = 'http://en.wikipedia.org/wiki/Number';
  164. Blockly.Msg.MATH_NUMBER_TOOLTIP = 'A number.';
  165. Blockly.Msg.MATH_ARITHMETIC_HELPURL = 'http://en.wikipedia.org/wiki/Arithmetic';
  166. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD = 'Return the sum of the two numbers.';
  167. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS = 'Return the difference of the two numbers.';
  168. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY = 'Return the product of the two numbers.';
  169. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE = 'Return the quotient of the two numbers.';
  170. Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER = 'Return the first number raised to\n' +
  171. 'the power of the second number.';
  172. Blockly.Msg.MATH_SINGLE_HELPURL = 'http://en.wikipedia.org/wiki/Square_root';
  173. Blockly.Msg.MATH_SINGLE_OP_ROOT = 'square root';
  174. Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE = 'absolute';
  175. Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT = 'Return the square root of a number.';
  176. Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS = 'Return the absolute value of a number.';
  177. Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG = 'Return the negation of a number.';
  178. Blockly.Msg.MATH_SINGLE_TOOLTIP_LN = 'Return the natural logarithm of a number.';
  179. Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10 = 'Return the base 10 logarithm of a number.';
  180. Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP = 'Return e to the power of a number.';
  181. Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10 = 'Return 10 to the power of a number.';
  182. Blockly.Msg.MATH_TRIG_HELPURL = 'http://en.wikipedia.org/wiki/Trigonometric_functions';
  183. Blockly.Msg.MATH_TRIG_TOOLTIP_SIN = 'Return the sine of a degree (not radian).';
  184. Blockly.Msg.MATH_TRIG_TOOLTIP_COS = 'Return the cosine of a degree (not radian).';
  185. Blockly.Msg.MATH_TRIG_TOOLTIP_TAN = 'Return the tangent of a degree (not radian).';
  186. Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN = 'Return the arcsine of a number.';
  187. Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS = 'Return the arccosine of a number.';
  188. Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN = 'Return the arctangent of a number.';
  189. Blockly.Msg.MATH_CONSTANT_HELPURL = 'http://en.wikipedia.org/wiki/Mathematical_constant';
  190. Blockly.Msg.MATH_CONSTANT_TOOLTIP = 'Return one of the common constants: \u03c0 (3.141\u2026), e (2.718\u2026), \u03c6 (1.618\u2026),\n' +
  191. 'sqrt(2) (1.414\u2026), sqrt(\u00bd) (0.707\u2026), or \u221e (infinity).';
  192. Blockly.Msg.MATH_IS_EVEN = 'is even';
  193. Blockly.Msg.MATH_IS_ODD = 'is odd';
  194. Blockly.Msg.MATH_IS_PRIME = 'is prime';
  195. Blockly.Msg.MATH_IS_WHOLE = 'is whole';
  196. Blockly.Msg.MATH_IS_POSITIVE = 'is positive';
  197. Blockly.Msg.MATH_IS_NEGATIVE = 'is negative';
  198. Blockly.Msg.MATH_IS_DIVISIBLE_BY = 'is divisible by';
  199. Blockly.Msg.MATH_IS_TOOLTIP = 'Check if a number is an even, odd, prime, whole, positive, negative,\n' +
  200. 'or if it is divisible by certain number. Returns true or false.';
  201. Blockly.Msg.MATH_CHANGE_HELPURL = 'http://en.wikipedia.org/wiki/Programming_idiom#Incrementing_a_counter';
  202. Blockly.Msg.MATH_CHANGE_TITLE_CHANGE = 'change';
  203. Blockly.Msg.MATH_CHANGE_TITLE_ITEM = 'item';
  204. Blockly.Msg.MATH_CHANGE_INPUT_BY = 'by';
  205. Blockly.Msg.MATH_CHANGE_TOOLTIP = 'Add a number to variable "%1".';
  206. Blockly.Msg.MATH_ROUND_HELPURL = 'http://en.wikipedia.org/wiki/Rounding';
  207. Blockly.Msg.MATH_ROUND_TOOLTIP = 'Round a number up or down.';
  208. Blockly.Msg.MATH_ROUND_OPERATOR_ROUND = 'round';
  209. Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP = 'round up';
  210. Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN = 'round down';
  211. Blockly.Msg.MATH_ONLIST_HELPURL = '';
  212. Blockly.Msg.MATH_ONLIST_OPERATOR_SUM = 'sum of list';
  213. Blockly.Msg.MATH_ONLIST_OPERATOR_MIN = 'min of list';
  214. Blockly.Msg.MATH_ONLIST_OPERATOR_MAX = 'max of list';
  215. Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE = 'average of list';
  216. Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN = 'median of list';
  217. Blockly.Msg.MATH_ONLIST_OPERATOR_MODE = 'modes of list';
  218. Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV = 'standard deviation of list';
  219. Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM = 'random item of list';
  220. Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM = 'Return the sum of all the numbers in the list.';
  221. Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN = 'Return the smallest number in the list.';
  222. Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX = 'Return the largest number in the list.';
  223. Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE = 'Return the arithmetic mean of the list.';
  224. Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN = 'Return the median number in the list.';
  225. Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE = 'Return a list of the most common item(s) in the list.';
  226. Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV = 'Return the standard deviation of the list.';
  227. Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM = 'Return a random element from the list.';
  228. Blockly.Msg.MATH_MODULO_HELPURL = 'http://en.wikipedia.org/wiki/Modulo_operation';
  229. Blockly.Msg.MATH_MODULO_INPUT_DIVIDEND = 'remainder of';
  230. Blockly.Msg.MATH_MODULO_TOOLTIP = 'Return the remainder from dividing the two numbers.';
  231. Blockly.Msg.MATH_CONSTRAIN_HELPURL = 'http://en.wikipedia.org/wiki/Clamping_%28graphics%29';
  232. Blockly.Msg.MATH_CONSTRAIN_INPUT_CONSTRAIN = 'constrain';
  233. Blockly.Msg.MATH_CONSTRAIN_INPUT_LOW = 'low';
  234. Blockly.Msg.MATH_CONSTRAIN_INPUT_HIGH = 'high';
  235. Blockly.Msg.MATH_CONSTRAIN_TOOLTIP = 'Constrain a number to be between the specified limits (inclusive).';
  236. Blockly.Msg.MATH_RANDOM_INT_HELPURL = 'http://en.wikipedia.org/wiki/Random_number_generation';
  237. Blockly.Msg.MATH_RANDOM_INT_TITLE = 'random integer from %1 to %2';
  238. Blockly.Msg.MATH_RANDOM_INT_TOOLTIP = 'Return a random integer between the two\n' +
  239. 'specified limits, inclusive.';
  240. Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL = 'http://en.wikipedia.org/wiki/Random_number_generation';
  241. Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM = 'random fraction';
  242. Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP = 'Return a random fraction between\n' +
  243. '0.0 (inclusive) and 1.0 (exclusive).';
  244. // Text Blocks.
  245. Blockly.Msg.TEXT_TEXT_HELPURL = 'http://en.wikipedia.org/wiki/String_(computer_science)';
  246. Blockly.Msg.TEXT_TEXT_TOOLTIP = 'A letter, word, or line of text.';
  247. Blockly.Msg.TEXT_JOIN_HELPURL = '';
  248. Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH = 'create text with';
  249. Blockly.Msg.TEXT_JOIN_TOOLTIP = 'Create a piece of text by joining\n' +
  250. 'together any number of items.';
  251. Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN = 'join';
  252. Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this text block.';
  253. Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM = 'item';
  254. Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP = 'Add an item to the text.';
  255. Blockly.Msg.TEXT_APPEND_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  256. Blockly.Msg.TEXT_APPEND_TO = 'to';
  257. Blockly.Msg.TEXT_APPEND_APPENDTEXT = 'append text';
  258. Blockly.Msg.TEXT_APPEND_VARIABLE = 'item';
  259. Blockly.Msg.TEXT_APPEND_TOOLTIP = 'Append some text to variable "%1".';
  260. Blockly.Msg.TEXT_LENGTH_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  261. Blockly.Msg.TEXT_LENGTH_INPUT_LENGTH = 'length of';
  262. Blockly.Msg.TEXT_LENGTH_TOOLTIP = 'Returns number of letters (including spaces)\n' +
  263. 'in the provided text.';
  264. Blockly.Msg.TEXT_ISEMPTY_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  265. Blockly.Msg.TEXT_ISEMPTY_INPUT_ISEMPTY = 'is empty';
  266. Blockly.Msg.TEXT_ISEMPTY_TOOLTIP = 'Returns true if the provided text is empty.';
  267. Blockly.Msg.TEXT_INDEXOF_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  268. Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT = 'in text';
  269. Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST = 'find first occurrence of text';
  270. Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST = 'find last occurrence of text';
  271. Blockly.Msg.TEXT_INDEXOF_TOOLTIP = 'Returns the index of the first/last occurrence\n' +
  272. 'of first text in the second text.\n' +
  273. 'Returns 0 if text is not found.';
  274. Blockly.Msg.TEXT_CHARAT_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  275. Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT = 'in text';
  276. Blockly.Msg.TEXT_CHARAT_FROM_START = 'get letter #';
  277. Blockly.Msg.TEXT_CHARAT_FROM_END = 'get letter # from end';
  278. Blockly.Msg.TEXT_CHARAT_FIRST = 'get first letter';
  279. Blockly.Msg.TEXT_CHARAT_LAST = 'get last letter';
  280. Blockly.Msg.TEXT_CHARAT_RANDOM = 'get random letter';
  281. Blockly.Msg.TEXT_CHARAT_TOOLTIP = 'Returns the letter at the specified position.';
  282. Blockly.Msg.TEXT_SUBSTRING_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  283. Blockly.Msg.TEXT_SUBSTRING_INPUT_IN_TEXT = 'in text';
  284. Blockly.Msg.TEXT_SUBSTRING_INPUT_AT1 = 'get substring from';
  285. Blockly.Msg.TEXT_SUBSTRING_INPUT_AT2 = 'to';
  286. Blockly.Msg.TEXT_SUBSTRING_FROM_START = 'letter #';
  287. Blockly.Msg.TEXT_SUBSTRING_FROM_END = 'letter # from end';
  288. Blockly.Msg.TEXT_SUBSTRING_FIRST = 'first letter';
  289. Blockly.Msg.TEXT_SUBSTRING_LAST = 'last letter';
  290. Blockly.Msg.TEXT_SUBSTRING_TOOLTIP = 'Returns a specified portion of the text.';
  291. Blockly.Msg.TEXT_CHANGECASE_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  292. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE = 'to UPPER CASE';
  293. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE = 'to lower case';
  294. Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE = 'to Title Case';
  295. Blockly.Msg.TEXT_CHANGECASE_TOOLTIP = 'Return a copy of the text in a different case.';
  296. Blockly.Msg.TEXT_TRIM_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  297. Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH = 'trim spaces from both sides';
  298. Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT = 'trim spaces from left side';
  299. Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT = 'trim spaces from right side';
  300. Blockly.Msg.TEXT_TRIM_TOOLTIP = 'Return a copy of the text with spaces\n' +
  301. 'removed from one or both ends.';
  302. Blockly.Msg.TEXT_PRINT_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  303. Blockly.Msg.TEXT_PRINT_TITLE_PRINT = 'print';
  304. Blockly.Msg.TEXT_PRINT_TOOLTIP = 'Print the specified text, number or other value.';
  305. Blockly.Msg.TEXT_PROMPT_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode92.html';
  306. Blockly.Msg.TEXT_PROMPT_TYPE_TEXT = 'prompt for text with message';
  307. Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER = 'prompt for number with message';
  308. Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = 'Prompt for user for a number.';
  309. Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = 'Prompt for user for some text.';
  310. // Lists Blocks.
  311. Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = 'http://en.wikipedia.org/wiki/Linked_list#Empty_lists';
  312. Blockly.Msg.LISTS_CREATE_EMPTY_TITLE = 'create empty list';
  313. Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP = 'Returns a list, of length 0, containing no data records';
  314. Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH = 'create list with';
  315. Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP = 'Create a list with any number of items.';
  316. Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD = 'list';
  317. Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP = 'Add, remove, or reorder sections to reconfigure this list block.';
  318. Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE = 'item';
  319. Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP = 'Add an item to the list.';
  320. Blockly.Msg.LISTS_REPEAT_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  321. Blockly.Msg.LISTS_REPEAT_INPUT_WITH = 'create list with item';
  322. Blockly.Msg.LISTS_REPEAT_INPUT_REPEATED = 'repeated';
  323. Blockly.Msg.LISTS_REPEAT_INPUT_TIMES = 'times';
  324. Blockly.Msg.LISTS_REPEAT_TOOLTIP = 'Creates a list consisting of the given value\n' +
  325. 'repeated the specified number of times.';
  326. Blockly.Msg.LISTS_LENGTH_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  327. Blockly.Msg.LISTS_LENGTH_INPUT_LENGTH = 'length of';
  328. Blockly.Msg.LISTS_LENGTH_TOOLTIP = 'Returns the length of a list.';
  329. Blockly.Msg.LISTS_IS_EMPTY_HELPURL = 'http://www.liv.ac.uk/HPC/HTMLF90Course/HTMLF90CourseNotesnode91.html';
  330. Blockly.Msg.LISTS_INPUT_IS_EMPTY = 'is empty';
  331. Blockly.Msg.LISTS_TOOLTIP = 'Returns true if the list is empty.';
  332. Blockly.Msg.LISTS_INDEX_OF_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  333. Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST = 'in list';
  334. Blockly.Msg.LISTS_INDEX_OF_FIRST = 'find first occurrence of item';
  335. Blockly.Msg.LISTS_INDEX_OF_LAST = 'find last occurrence of item';
  336. Blockly.Msg.LISTS_INDEX_OF_TOOLTIP = 'Returns the index of the first/last occurrence\n' +
  337. 'of the item in the list.\n' +
  338. 'Returns 0 if text is not found.';
  339. Blockly.Msg.LISTS_GET_INDEX_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  340. Blockly.Msg.LISTS_GET_INDEX_GET = 'get';
  341. Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE = 'get and remove';
  342. Blockly.Msg.LISTS_GET_INDEX_REMOVE = 'remove';
  343. Blockly.Msg.LISTS_GET_INDEX_FROM_START = '#';
  344. Blockly.Msg.LISTS_GET_INDEX_FROM_END = '# from end';
  345. Blockly.Msg.LISTS_GET_INDEX_FIRST = 'first';
  346. Blockly.Msg.LISTS_GET_INDEX_LAST = 'last';
  347. Blockly.Msg.LISTS_GET_INDEX_RANDOM = 'random';
  348. Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST = 'in list';
  349. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_START = 'Returns the item at the specified position in a list.\n' +
  350. '#1 is the first item.';
  351. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM_END = 'Returns the item at the specified position in a list.\n' +
  352. '#1 is the last item.';
  353. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FIRST = 'Returns the first item in a list.';
  354. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_LAST = 'Returns the last item in a list.';
  355. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM = 'Returns a random item in a list.';
  356. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_START = 'Removes and returns the item at the specified position\n' +
  357. ' in a list. #1 is the first item.';
  358. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM_END = 'Removes and returns the item at the specified position\n' +
  359. ' in a list. #1 is the last item.';
  360. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FIRST = 'Removes and returns the first item in a list.';
  361. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_LAST = 'Removes and returns the last item in a list.';
  362. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM = 'Removes and returns a random item in a list.';
  363. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_START = 'Removes the item at the specified position\n' +
  364. ' in a list. #1 is the first item.';
  365. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FROM_END = 'Removes the item at the specified position\n' +
  366. ' in a list. #1 is the last item.';
  367. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_FIRST = 'Removes the first item in a list.';
  368. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_LAST = 'Removes the last item in a list.';
  369. Blockly.Msg.LISTS_GET_INDEX_TOOLTIP_REMOVE_RANDOM = 'Removes a random item in a list.';
  370. Blockly.Msg.LISTS_SET_INDEX_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  371. Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST = 'in list';
  372. Blockly.Msg.LISTS_SET_INDEX_SET = 'set';
  373. Blockly.Msg.LISTS_SET_INDEX_INSERT = 'insert at';
  374. Blockly.Msg.LISTS_SET_INDEX_INPUT_TO = 'as';
  375. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_START = 'Sets the item at the specified position in a list.\n' +
  376. '#1 is the first item.';
  377. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FROM_END = 'Sets the item at the specified position in a list.\n' +
  378. '#1 is the last item.';
  379. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_FIRST = 'Sets the first item in a list.';
  380. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_LAST = 'Sets the last item in a list.';
  381. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_SET_RANDOM = 'Sets a random item in a list.';
  382. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_START = 'Inserts the item at the specified position in a list.\n' +
  383. '#1 is the first item.';
  384. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FROM_END = 'Inserts the item at the specified position in a list.\n' +
  385. '#1 is the last item.';
  386. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_FIRST = 'Inserts the item at the start of a list.';
  387. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_LAST = 'Append the item to the end of a list.';
  388. Blockly.Msg.LISTS_SET_INDEX_TOOLTIP_INSERT_RANDOM = 'Inserts the item randomly in a list.';
  389. Blockly.Msg.LISTS_GET_SUBLIST_HELPURL = 'http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8l.doc%2Flanguage%2Fref%2Farsubex.htm';
  390. Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST = 'in list';
  391. Blockly.Msg.LISTS_GET_SUBLIST_INPUT_AT1 = 'get sub-list from';
  392. Blockly.Msg.LISTS_GET_SUBLIST_INPUT_AT2 = 'to';
  393. Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP = 'Creates a copy of the specified portion of a list.';
  394. // Variables Blocks.
  395. Blockly.Msg.VARIABLES_GET_HELPURL = 'http://en.wikipedia.org/wiki/Variable_(computer_science)';
  396. Blockly.Msg.VARIABLES_GET_TITLE = '';
  397. Blockly.Msg.VARIABLES_GET_ITEM = 'item';
  398. Blockly.Msg.VARIABLES_GET_TAIL = '';
  399. Blockly.Msg.VARIABLES_GET_TOOLTIP = 'Returns the value of this variable.';
  400. Blockly.Msg.VARIABLES_GET_CREATE_SET = 'Create "set %1"';
  401. Blockly.Msg.VARIABLES_SET_HELPURL = 'http://en.wikipedia.org/wiki/Variable_(computer_science)';
  402. Blockly.Msg.VARIABLES_SET_TITLE = 'set';
  403. Blockly.Msg.VARIABLES_SET_ITEM = 'item';
  404. Blockly.Msg.VARIABLES_SET_TAIL = 'to';
  405. Blockly.Msg.VARIABLES_SET_TOOLTIP = 'Sets this variable to be equal to the input.';
  406. Blockly.Msg.VARIABLES_SET_CREATE_GET = 'Create "get %1"';
  407. // Procedures Blocks.
  408. Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL = 'http://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  409. Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE = 'to';
  410. Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE = 'do something';
  411. Blockly.Msg.PROCEDURES_BEFORE_PARAMS = 'with:';
  412. Blockly.Msg.PROCEDURES_DEFNORETURN_DO = '';
  413. Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP = 'Creates a function with no output.';
  414. Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL = 'http://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  415. Blockly.Msg.PROCEDURES_DEFRETURN_TITLE = Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE;
  416. Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE = Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE;
  417. Blockly.Msg.PROCEDURES_DEFRETURN_DO = Blockly.Msg.PROCEDURES_DEFNORETURN_DO;
  418. Blockly.Msg.PROCEDURES_DEFRETURN_RETURN = 'return';
  419. Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP = 'Creates a function with an output.';
  420. Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING = 'Warning:\n' +
  421. 'This function has\n' +
  422. 'duplicate parameters.';
  423. Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL = 'http://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  424. Blockly.Msg.PROCEDURES_CALLNORETURN_CALL = '';
  425. Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP = 'Run the user-defined function "%1".';
  426. Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL = 'http://en.wikipedia.org/wiki/Procedure_%28computer_science%29';
  427. Blockly.Msg.PROCEDURES_CALLRETURN_CALL = Blockly.Msg.PROCEDURES_CALLNORETURN_CALL;
  428. Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP = 'Run the user-defined function "%1" and use its output.';
  429. Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE = 'inputs';
  430. Blockly.Msg.PROCEDURES_MUTATORARG_TITLE = 'input name:';
  431. Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF = 'Highlight procedure definition';
  432. Blockly.Msg.PROCEDURES_CREATE_DO = 'Create "%1"';
  433. Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP = 'If a value is true, then return a value.';
  434. Blockly.Msg.PROCEDURES_IFRETURN_WARNING = 'Warning:\n' +
  435. 'This block may only be\n' +
  436. 'used within a function definition.';