mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-10 11:22:09 +00:00
repair translate bug
This commit is contained in:
parent
160efd7ad3
commit
c8e36e3552
@ -21,7 +21,7 @@ class DeleteRepoDialog extends Component {
|
|||||||
|
|
||||||
const data = this.props.data;
|
const data = this.props.data;
|
||||||
const repoName = data ? '<span class="sf-font">' + data.repoName + '</span>' : null;
|
const repoName = data ? '<span class="sf-font">' + data.repoName + '</span>' : null;
|
||||||
let message = gettext("Are you sure you want to delete %s ?");
|
let message = gettext("Are you sure you want to delete %s?");
|
||||||
message = message.replace('%s', repoName);
|
message = message.replace('%s', repoName);
|
||||||
const popup = (
|
const popup = (
|
||||||
<Modal isOpen={true} toggle={this.toggle} centered={true}>
|
<Modal isOpen={true} toggle={this.toggle} centered={true}>
|
||||||
|
@ -96,29 +96,30 @@ class LibHistorySetting extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<Modal isOpen={true} centered={true}>
|
<Modal isOpen={true} centered={true}>
|
||||||
<ModalHeader toggle={this.props.toggleDialog}>
|
<ModalHeader toggle={this.props.toggleDialog}>
|
||||||
<span className="sf-font" title={itemName}>{itemName}</span>{gettext(' History Setting')}
|
<span className="sf-font" title={itemName}>{itemName}</span>{' '}
|
||||||
|
{gettext('History Setting')}
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
<Form>
|
<Form>
|
||||||
<FormGroup check>
|
<FormGroup check>
|
||||||
<Input type="radio" name="radio1" checked={this.state.allHistory} onChange={() => {this.setLimitDays('allHistory')}}/>
|
<Input type="radio" name="radio1" checked={this.state.allHistory} onChange={() => {this.setLimitDays('allHistory')}}/>{' '}
|
||||||
<Label>{gettext(' Keep full history')}</Label>
|
<Label>{gettext('Keep full history')}</Label>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup check>
|
<FormGroup check>
|
||||||
<Input type="radio" name="radio1" checked={this.state.noHistory} onChange={() =>{this.setLimitDays('noHistory')}}/>
|
<Input type="radio" name="radio1" checked={this.state.noHistory} onChange={() =>{this.setLimitDays('noHistory')}}/>{' '}
|
||||||
<Label>{gettext(' Don\'t keep history')}</Label>
|
<Label>{gettext('Don\'t keep history')}</Label>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup check>
|
<FormGroup check>
|
||||||
<Input type="radio" name="radio1" checked={this.state.autoHistory} onChange={() =>{this.setLimitDays('autoHistory')}}/>
|
<Input type="radio" name="radio1" checked={this.state.autoHistory} onChange={() =>{this.setLimitDays('autoHistory')}}/>{' '}
|
||||||
<Label>{gettext(' Only keep a period of history:')}</Label>
|
<Label>{gettext('Only keep a period of history:')}</Label>
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
className="expire-input"
|
className="expire-input"
|
||||||
value={this.state.expireDays}
|
value={this.state.expireDays}
|
||||||
onChange={this.onChange}
|
onChange={this.onChange}
|
||||||
disabled={this.state.disabled}
|
disabled={this.state.disabled}
|
||||||
/>
|
/>{' '}
|
||||||
<Label><span>{gettext(' days')}</span></Label>
|
<Label><span>{gettext('days')}</span></Label>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<Label className="err-message">{this.state.errorInfo}</Label><br />
|
<Label className="err-message">{this.state.errorInfo}</Label><br />
|
||||||
<Button color="primary" onClick={this.submit}>{gettext('Submit')}</Button>
|
<Button color="primary" onClick={this.submit}>{gettext('Submit')}</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user