diff --git a/BlockPi/src/msg/js/en.js b/BlockPi/src/msg/js/en.js index d87cd06..59fd789 100644 --- a/BlockPi/src/msg/js/en.js +++ b/BlockPi/src/msg/js/en.js @@ -592,8 +592,10 @@ Blockly.Msg["DICTIONARIES_SET_KEY_TOOLTIP"] = "Sets the value of a key in a dict Blockly.Msg["DICTIONARIES_GET_KEY_DICT"] = "in dictionary" Blockly.Msg["DICTIONARIES_GET_KEY"] = " get value by key" Blockly.Msg["DICTIONARIES_POP_KEY"] = "get and remove value by key" +Blockly.Msg["DICTIONARIES_DEL_KEY"] = "remove value by key" Blockly.Msg["DICTIONARIES_GET_KEY_TOOLTIP"] = "Returns the value of a key in a dictionary." Blockly.Msg["DICTIONARIES_POP_KEY_TOOLTIP"] = "Removes and returns the value of a key in a dictionary." +Blockly.Msg["DICTIONARIES_DEL_KEY_TOOLTIP"] = "Removes the item by the given key in a dictionary." Blockly.Msg["DICTIONARIES_KEYS_DICT"] = "in dictionary" Blockly.Msg["DICTIONARIES_KEYS_KEY"] = "get key list" Blockly.Msg["DICTIONARIES_KEYS_VALUE"] = "get value list" diff --git a/BlockPi/src/msg/js/zh-hans.js b/BlockPi/src/msg/js/zh-hans.js index 381e15b..f3a30b3 100644 --- a/BlockPi/src/msg/js/zh-hans.js +++ b/BlockPi/src/msg/js/zh-hans.js @@ -592,8 +592,10 @@ Blockly.Msg["DICTIONARIES_SET_KEY_TOOLTIP"] = "设置在字典中指定键的值 Blockly.Msg["DICTIONARIES_GET_KEY_DICT"] = "在字典中" Blockly.Msg["DICTIONARIES_GET_KEY"] = "取得 值从键" Blockly.Msg["DICTIONARIES_POP_KEY"] = "取得并移除 值从键" -Blockly.Msg["DICTIONARIES_GET_KEY_TOOLTIP"] = "返回在字典中指定键的值。" -Blockly.Msg["DICTIONARIES_POP_KEY_TOOLTIP"] = "移除并返回在字典中指定键的值。" +Blockly.Msg["DICTIONARIES_DEL_KEY"] = "移除 值从键" +Blockly.Msg["DICTIONARIES_GET_KEY_TOOLTIP"] = "从字典中返回指定键的值。" +Blockly.Msg["DICTIONARIES_POP_KEY_TOOLTIP"] = "从字典中移除并返回指定键的值。" +Blockly.Msg["DICTIONARIES_DEL_KEY_TOOLTIP"] = "从字典中移除指定键。" Blockly.Msg["DICTIONARIES_KEYS_DICT"] = "在字典中" Blockly.Msg["DICTIONARIES_KEYS_KEY"] = "取得 键 列表" Blockly.Msg["DICTIONARIES_KEYS_VALUE"] = "取得 值 列表" diff --git a/BlockPi/src/msg/js/zh-hant.js b/BlockPi/src/msg/js/zh-hant.js index c005c64..c26b371 100644 --- a/BlockPi/src/msg/js/zh-hant.js +++ b/BlockPi/src/msg/js/zh-hant.js @@ -592,8 +592,10 @@ Blockly.Msg["DICTIONARIES_SET_KEY_TOOLTIP"] = "設置在字典中指定鍵的值 Blockly.Msg["DICTIONARIES_GET_KEY_DICT"] = "自字典" Blockly.Msg["DICTIONARIES_GET_KEY"] = "取得 值從鍵" Blockly.Msg["DICTIONARIES_POP_KEY"] = "取得併移除 值從鍵" -Blockly.Msg["DICTIONARIES_GET_KEY_TOOLTIP"] = "返回在字典中指定鍵的值。" -Blockly.Msg["DICTIONARIES_POP_KEY_TOOLTIP"] = "移除並返回在字典中指定鍵的值。" +Blockly.Msg["DICTIONARIES_DEL_KEY"] = "移除 值從鍵" +Blockly.Msg["DICTIONARIES_GET_KEY_TOOLTIP"] = "自字典中返回指定鍵的值。" +Blockly.Msg["DICTIONARIES_POP_KEY_TOOLTIP"] = "自字典中移除並返回指定鍵的值。" +Blockly.Msg["DICTIONARIES_DEL_KEY_TOOLTIP"] = "自字典中移除的指定鍵。" Blockly.Msg["DICTIONARIES_KEYS_DICT"] = "自字典" Blockly.Msg["DICTIONARIES_KEYS_KEY"] = "取得 鍵 清單" Blockly.Msg["DICTIONARIES_KEYS_VALUE"] = "取得 值 清單" diff --git a/BlockPi/src/script/blocks_compressed.js b/BlockPi/src/script/blocks_compressed.js index 9247725..3e5fed8 100644 --- a/BlockPi/src/script/blocks_compressed.js +++ b/BlockPi/src/script/blocks_compressed.js @@ -16,8 +16,9 @@ b).connection.targetConnection;c&&-1==a.indexOf(c)&&c.disconnect()}this.itemCoun this.itemCount_||this.getInput("EMPTY")||(this.appendDummyInput("EMPTY").appendField(Blockly.Msg.DICTIONARIES_CREATE_EMPTY_TITLE),this.setTooltip(Blockly.Msg.DICTIONARIES_CREATE_EMPTY_TOOLTIP));for(var a=0;a