翻译。

This commit is contained in:
tengge1 2019-08-21 21:05:54 +08:00
parent 472b2bc52b
commit 58dfae3ba8
3 changed files with 26 additions and 11 deletions

View File

@ -648,5 +648,11 @@
"No Type": "无类型",
"Debug Mode": "调试模式",
"Enable": "启用",
"Disable": "禁用"
"Disable": "禁用",
"Add Layer": "添加层",
"Edit Layer": "编辑层",
"Delete Layer": "删除层",
"Slower": "减速",
"Pause": "暂停",
"Faster": "加速"
}

View File

@ -71,14 +71,15 @@ class Timeline extends React.Component {
return <div className={classNames('Timeline', className)} style={style}>
<Toolbar className={classNames('controls', className)} style={style}>
<IconButton icon={'add'} title={'Add Layer'} onClick={this.handleAddLayer}></IconButton>
<IconButton icon={'delete'} title={'Delete Layer'} onClick={this.handleDeleteLayer}></IconButton>
<IconButton icon={'add'} title={_t('Add Layer')} onClick={this.handleAddLayer}></IconButton>
<IconButton icon={'edit'} title={_t('Edit Layer')} onClick={this.handleAddLayer}></IconButton>
<IconButton icon={'delete'} title={_t('Delete Layer')} onClick={this.handleDeleteLayer}></IconButton>
<ToolbarSeparator></ToolbarSeparator>
<IconButton icon={'backward'} title={'Slower'} onClick={this.handleBackward}></IconButton>
<IconButton icon={'play'} title={'Play'} onClick={this.handlePlay}></IconButton>
<IconButton icon={'pause'} title={'Pause'} onClick={this.handlePause}></IconButton>
<IconButton icon={'forward'} title={'Faster'} onClick={this.handleForward}></IconButton>
<IconButton icon={'stop'} title={'Stop'} onClick={this.handleStop}></IconButton>
<IconButton icon={'backward'} title={_t('Slower')} onClick={this.handleBackward}></IconButton>
<IconButton icon={'play'} title={_t('Play')} onClick={this.handlePlay}></IconButton>
<IconButton icon={'pause'} title={_t('Pause')} onClick={this.handlePause}></IconButton>
<IconButton icon={'forward'} title={_t('Faster')} onClick={this.handleForward}></IconButton>
<IconButton icon={'stop'} title={_t('Stop')} onClick={this.handleStop}></IconButton>
<ToolbarSeparator></ToolbarSeparator>
<Label className={'time'}>{this.parseTime(this.time)}</Label>
<Label className={'speed'}>{this.parseSpeed(this.speed)}</Label>

View File

@ -8,12 +8,20 @@
.Timeline>.controls>.IconButton {
border: none;
width: 24px;
height: 24px;
margin: 0 4px;
width: 20px;
height: 20px;
margin: 0 6px;
padding: 0;
}
.Timeline>.controls>.IconButton>.iconfont {
font-size: 18px;
}
.Timeline>.controls>.ToolbarSeparator {
margin: 0 8px;
}
.Timeline>.box {
position: relative;
display: flex;