mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
New blocks text_count, text_replace, and text_reverse (#830)
Includes generators for all languages and units tests on those generators.
This commit is contained in:
committed by
Andrew n marshall
parent
fb0f1b05dd
commit
34750bccd8
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"@metadata": {
|
||||
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
|
||||
"lastupdated": "2017-01-12 13:53:04.889198",
|
||||
"lastupdated": "2017-01-18 10:58:30.631169",
|
||||
"locale": "en",
|
||||
"messagedocumentation" : "qqq"
|
||||
},
|
||||
@@ -253,6 +253,15 @@
|
||||
"TEXT_PROMPT_TYPE_NUMBER": "prompt for number with message",
|
||||
"TEXT_PROMPT_TOOLTIP_NUMBER": "Prompt for user for a number.",
|
||||
"TEXT_PROMPT_TOOLTIP_TEXT": "Prompt for user for some text.",
|
||||
"TEXT_COUNT_MESSAGE0": "count %1 in %2",
|
||||
"TEXT_COUNT_HELPURL": "",
|
||||
"TEXT_COUNT_TOOLTIP": "Count how many times a string occurs in another string.",
|
||||
"TEXT_REPLACE_MESSAGE0": "replace %1 with %2 in %3",
|
||||
"TEXT_REPLACE_HELPURL": "",
|
||||
"TEXT_REPLACE_TOOLTIP": "Replace a string within another string.",
|
||||
"TEXT_REVERSE_MESSAGE0": "reverse %1",
|
||||
"TEXT_REVERSE_HELPURL": "",
|
||||
"TEXT_REVERSE_TOOLTIP": "Reverses the characters in a string.",
|
||||
"LISTS_CREATE_EMPTY_HELPURL": "https://github.com/google/blockly/wiki/Lists#create-empty-list",
|
||||
"LISTS_CREATE_EMPTY_TITLE": "create empty list",
|
||||
"LISTS_CREATE_EMPTY_TOOLTIP": "Returns a list, of length 0, containing no data records",
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"Espertus",
|
||||
"Liuxinyu970226",
|
||||
"Shirayuki"
|
||||
]
|
||||
},
|
||||
"VARIABLES_DEFAULT_NAME": "default name - A simple, general default name for a variable, preferably short. For more context, see [[Translating:Blockly#infrequent_message_types]].\n{{Identical|Item}}",
|
||||
"TODAY": "button text - Button that sets a calendar to today's date.\n{{Identical|Today}}",
|
||||
"DUPLICATE_BLOCK": "context menu - Make a copy of the selected block (and any blocks it contains).\n{{Identical|Duplicate}}",
|
||||
@@ -254,6 +247,15 @@
|
||||
"TEXT_PROMPT_TYPE_NUMBER": "dropdown - Specifies that a number should be requested from the user with the following message. See [https://github.com/google/blockly/wiki/Text#printing-text https://github.com/google/blockly/wiki/Text#printing-text].",
|
||||
"TEXT_PROMPT_TOOLTIP_NUMBER": "dropdown - Precedes the message with which the user should be prompted for a number. See [https://github.com/google/blockly/wiki/Text#printing-text https://github.com/google/blockly/wiki/Text#printing-text].",
|
||||
"TEXT_PROMPT_TOOLTIP_TEXT": "dropdown - Precedes the message with which the user should be prompted for some text. See [https://github.com/google/blockly/wiki/Text#printing-text https://github.com/google/blockly/wiki/Text#printing-text].",
|
||||
"TEXT_COUNT_MESSAGE0": "message0 interpolation string",
|
||||
"TEXT_COUNT_HELPURL": "url - Information about counting how many times a string appears in another string.",
|
||||
"TEXT_COUNT_TOOLTIP": "tooltip - See [https://github.com/google/blockly/wiki/Text#printing-text https://github.com/google/blockly/wiki/Text#printing-text].",
|
||||
"TEXT_REPLACE_MESSAGE0": "message0 interpolation string",
|
||||
"TEXT_REPLACE_HELPURL": "url - Information about replacing a string within another string.",
|
||||
"TEXT_REPLACE_TOOLTIP": "tooltip - See [https://github.com/google/blockly/wiki/Text#printing-text https://github.com/google/blockly/wiki/Text#printing-text].",
|
||||
"TEXT_REVERSE_MESSAGE0": "message0 interpolation string",
|
||||
"TEXT_REVERSE_HELPURL": "url - Information about reversing a string.",
|
||||
"TEXT_REVERSE_TOOLTIP": "tooltip - See [https://github.com/google/blockly/wiki/Text#printing-text https://github.com/google/blockly/wiki/Text#printing-text].",
|
||||
"LISTS_CREATE_EMPTY_HELPURL": "url - Information on empty lists.",
|
||||
"LISTS_CREATE_EMPTY_TITLE": "block text - See [https://github.com/google/blockly/wiki/Lists#create-empty-list https://github.com/google/blockly/wiki/Lists#create-empty-list].",
|
||||
"LISTS_CREATE_EMPTY_TOOLTIP": "block text - See [https://github.com/google/blockly/wiki/Lists#create-empty-list https://github.com/google/blockly/wiki/Lists#create-empty-list].",
|
||||
|
||||
@@ -766,6 +766,30 @@ Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER = 'Prompt for user for a number.';
|
||||
/// https://github.com/google/blockly/wiki/Text#printing-text].
|
||||
Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT = 'Prompt for user for some text.';
|
||||
|
||||
/// block text - Title of a block that counts the number of instances of
|
||||
/// a smaller pattern (%1) inside a longer string (%2).
|
||||
Blockly.Msg.TEXT_COUNT_MESSAGE0 = 'count %1 in %2';
|
||||
/// url - Information about counting how many times a string appears in another string.
|
||||
Blockly.Msg.TEXT_COUNT_HELPURL = 'https://github.com/google/blockly/wiki/Text#counting-substrings';
|
||||
/// tooltip - Short description of a block that counts how many times some text occurs within some other text.
|
||||
Blockly.Msg.TEXT_COUNT_TOOLTIP = 'Count how many times some text occurs within some other text.';
|
||||
|
||||
/// block text - Title of a block that returns a copy of text (%3) with all
|
||||
/// instances of some smaller text (%1) replaced with other text (%2).
|
||||
Blockly.Msg.TEXT_REPLACE_MESSAGE0 = 'replace %1 with %2 in %3';
|
||||
/// url - Information about replacing each copy text (or string, in computer lingo) with other text.
|
||||
Blockly.Msg.TEXT_REPLACE_HELPURL = 'https://github.com/google/blockly/wiki/Text#replacing-substrings';
|
||||
/// tooltip - Short description of a block that replaces copies of text in a large text with other text.
|
||||
Blockly.Msg.TEXT_REPLACE_TOOLTIP = 'Replace all occurances of some text within some other text.';
|
||||
|
||||
/// block text - Title of block that returns a copy of text (%1) with the order
|
||||
/// of letters and characters reversed.
|
||||
Blockly.Msg.TEXT_REVERSE_MESSAGE0 = 'reverse %1';
|
||||
/// url - Information about reversing a letters/characters in text.
|
||||
Blockly.Msg.TEXT_REVERSE_HELPURL = 'https://github.com/google/blockly/wiki/Text#reversing-text';
|
||||
/// tooltip - See [https://github.com/google/blockly/wiki/Text].
|
||||
Blockly.Msg.TEXT_REVERSE_TOOLTIP = 'Reverses the order of the characters in the text.';
|
||||
|
||||
// Lists Blocks.
|
||||
/// url - Information on empty lists.
|
||||
Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL = 'https://github.com/google/blockly/wiki/Lists#create-empty-list';
|
||||
|
||||
Reference in New Issue
Block a user