Browse Source

Editor: add slot to string.js

linbingquan 5 years ago
parent
commit
325cc31ca8
2 changed files with 4 additions and 1 deletions
  1. 1 1
      editor/js/Sidebar.Material.js
  2. 3 0
      editor/js/Strings.js

+ 1 - 1
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 );

+ 3 - 0
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': '名称',