浏览代码

Editor: i18n

林炳权 6 年之前
父节点
当前提交
b0bb505038
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 2 2
      editor/js/Menubar.Play.js
  2. 4 0
      editor/js/Strings.js

+ 2 - 2
editor/js/Menubar.Play.js

@@ -20,13 +20,13 @@ Menubar.Play = function ( editor ) {
 		if ( isPlaying === false ) {
 
 			isPlaying = true;
-			title.setTextContent( 'Stop' );
+			title.setTextContent( strings.getKey( 'menubar/play/stop' ) );
 			signals.startPlayer.dispatch();
 
 		} else {
 
 			isPlaying = false;
-			title.setTextContent( 'Play' );
+			title.setTextContent( strings.getKey( 'menubar/play/play' ) );
 			signals.stopPlayer.dispatch();
 
 		}

+ 4 - 0
editor/js/Strings.js

@@ -52,6 +52,8 @@ var Strings = function ( config ) {
 			'menubar/add/perspectivecamera': 'PerspectiveCamera',
 
 			'menubar/play': 'Play',
+			'menubar/play/stop': 'Stop',
+			'menubar/play/play': 'Play',
 
 			'menubar/examples': 'Examples',
 
@@ -288,6 +290,8 @@ var Strings = function ( config ) {
 			'menubar/add/perspectivecamera': '透视相机',
 
 			'menubar/play': '启动',
+			'menubar/play/stop': '暂停',
+			'menubar/play/play': '启动',
 
 			'menubar/examples': '示例',