Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions editor/js/Sidebar.Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { UIPanel, UIDiv, UIBreak, UISelect, UIButton, UIText } from './libs/ui.j

function SidebarAnimation( editor ) {

var strings = editor.strings;
var signals = editor.signals;
var mixer = editor.mixer;

Expand Down Expand Up @@ -65,7 +66,7 @@ function SidebarAnimation( editor ) {
var container = new UIPanel();
container.setDisplay( 'none' );

container.add( new UIText( 'Animations' ).setTextTransform( 'uppercase' ) );
container.add( new UIText( strings.getKey( 'sidebar/animations' ) ).setTextTransform( 'uppercase' ) );
container.add( new UIBreak() );
container.add( new UIBreak() );

Expand All @@ -74,8 +75,8 @@ function SidebarAnimation( editor ) {

var animationsSelect = new UISelect().setFontSize( '12px' );
div.add( animationsSelect );
div.add( new UIButton( 'Play' ).setMarginLeft( '4px' ).onClick( playAction ) );
div.add( new UIButton( 'Stop' ).setMarginLeft( '4px' ).onClick( stopAction ) );
div.add( new UIButton( strings.getKey( 'sidebar/animations/play' ) ).setMarginLeft( '4px' ).onClick( playAction ) );
div.add( new UIButton( strings.getKey( 'sidebar/animations/stop' ) ).setMarginLeft( '4px' ).onClick( stopAction ) );

return container;

Expand Down
12 changes: 12 additions & 0 deletions editor/js/Strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ function Strings( config ) {
'menubar/help/icons': 'Icon Pack',
'menubar/help/about': 'About',

'sidebar/animations': 'Animations',
'sidebar/animations/play': 'Play',
'sidebar/animations/stop': 'Stop',

'sidebar/scene': 'Scene',
'sidebar/scene/background': 'Background',
'sidebar/scene/environment': 'Environment',
Expand Down Expand Up @@ -393,6 +397,10 @@ function Strings( config ) {
'menubar/help/icons': 'Icon Pack',
'menubar/help/about': 'A propos',

'sidebar/animations': 'Animations',
'sidebar/animations/play': 'Play',
'sidebar/animations/stop': 'Stop',

'sidebar/scene': 'Scène',
'sidebar/scene/background': 'Arrière Plan',
'sidebar/scene/environment': 'Environment',
Expand Down Expand Up @@ -712,6 +720,10 @@ function Strings( config ) {
'menubar/help/icons': '图标组件包',
'menubar/help/about': '关于',

'sidebar/animations': '动画',
'sidebar/animations/play': '播放',
'sidebar/animations/stop': '暂停',

'sidebar/scene': '场景',
'sidebar/scene/background': '背景',
'sidebar/scene/environment': '环境',
Expand Down