From 325cc31ca86ec94bfff879a1a5de7f53f4e3491c Mon Sep 17 00:00:00 2001 From: linbingquan <695601626@qq.com> Date: Tue, 18 Aug 2020 14:35:03 +0800 Subject: [PATCH] Editor: add slot to string.js --- editor/js/Sidebar.Material.js | 2 +- editor/js/Strings.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/editor/js/Sidebar.Material.js b/editor/js/Sidebar.Material.js index 14d0b982dcd818..7841bac031764d 100644 --- a/editor/js/Sidebar.Material.js +++ b/editor/js/Sidebar.Material.js @@ -48,7 +48,7 @@ function SidebarMaterial( editor ) { var materialSlotRow = new UIRow(); - materialSlotRow.add( new UIText( 'Slot' ).setWidth( '90px' ) ); + materialSlotRow.add( new UIText( strings.getKey( 'sidebar/material/slot' ) ).setWidth( '90px' ) ); var materialSlotSelect = new UISelect().setWidth( '170px' ).setFontSize( '12px' ).onChange( update ); materialSlotSelect.setOptions( { 0: '' } ).setValue( 0 ); diff --git a/editor/js/Strings.js b/editor/js/Strings.js index a38f5931afe88d..d3757e42a4fcf0 100644 --- a/editor/js/Strings.js +++ b/editor/js/Strings.js @@ -223,6 +223,7 @@ function Strings( config ) { 'sidebar/material/new': 'New', 'sidebar/material/copy': 'Copy', 'sidebar/material/paste': 'Paste', + 'sidebar/material/slot': 'Slot', 'sidebar/material/type': 'Type', 'sidebar/material/uuid': 'UUID', 'sidebar/material/name': 'Name', @@ -541,6 +542,7 @@ function Strings( config ) { 'sidebar/material/new': 'Nouveau', 'sidebar/material/copy': 'Copier', 'sidebar/material/paste': 'Coller', + 'sidebar/material/slot': 'Slot', 'sidebar/material/type': 'Type', 'sidebar/material/uuid': 'UUID', 'sidebar/material/name': 'Nom', @@ -846,6 +848,7 @@ function Strings( config ) { 'sidebar/material/new': '更新', 'sidebar/material/copy': '复制', 'sidebar/material/paste': '粘贴', + 'sidebar/material/slot': '插槽', 'sidebar/material/type': '类型', 'sidebar/material/uuid': '识别码', 'sidebar/material/name': '名称',