diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index b1b688b24..16b6b65f5 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -706,7 +706,7 @@ RED.editor = (function() { pickerBackground.on("mousedown", hide); var searchDiv = $("
",{class:"red-ui-search-container"}).appendTo(picker); - searchInput = $('').attr("placeholder","Search icons").appendTo(searchDiv).searchBox({ + searchInput = $('').attr("placeholder",RED._("editor.searchIcons")).appendTo(searchDiv).searchBox({ delay: 50, change: function() { var searchTerm = $(this).val().trim(); @@ -730,7 +730,7 @@ RED.editor = (function() { var iconList = $('
').appendTo(picker); var metaRow = $('
').appendTo(picker); var summary = $('').appendTo(metaRow); - var resetButton = $('').appendTo(metaRow).click(function(e) { + var resetButton = $('').appendTo(metaRow).click(function(e) { e.preventDefault(); hide(); done(null); diff --git a/red/api/editor/locales/en-US/editor.json b/red/api/editor/locales/en-US/editor.json index d0bc7bf1e..cfd88fd2e 100644 --- a/red/api/editor/locales/en-US/editor.json +++ b/red/api/editor/locales/en-US/editor.json @@ -265,6 +265,8 @@ "settingIcon": "Icon", "noDefaultLabel": "none", "defaultLabel": "use default label", + "searchIcons": "Search icons", + "useDefault": "use default", "errors": { "scopeChange": "Changing the scope will make it unavailable to nodes in other flows that use it" } diff --git a/red/api/editor/locales/ja/editor.json b/red/api/editor/locales/ja/editor.json index 892d3e04c..7ab8ea714 100644 --- a/red/api/editor/locales/ja/editor.json +++ b/red/api/editor/locales/ja/editor.json @@ -264,6 +264,8 @@ "settingIcon": "アイコン", "noDefaultLabel": "なし", "defaultLabel": "既定の名前を使用", + "searchIcons": "アイコンを検索", + "useDefault": "デフォルトを使用", "errors": { "scopeChange": "スコープの変更は、他のフローで使われているノードを無効にします" }