mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 07:10:55 +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 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);
|
||||
const popup = (
|
||||
<Modal isOpen={true} toggle={this.toggle} centered={true}>
|
||||
|
@ -96,29 +96,30 @@ class LibHistorySetting extends React.Component {
|
||||
return (
|
||||
<Modal isOpen={true} centered={true}>
|
||||
<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>
|
||||
<ModalBody>
|
||||
<Form>
|
||||
<FormGroup check>
|
||||
<Input type="radio" name="radio1" checked={this.state.allHistory} onChange={() => {this.setLimitDays('allHistory')}}/>
|
||||
<Label>{gettext(' Keep full history')}</Label>
|
||||
<Input type="radio" name="radio1" checked={this.state.allHistory} onChange={() => {this.setLimitDays('allHistory')}}/>{' '}
|
||||
<Label>{gettext('Keep full history')}</Label>
|
||||
</FormGroup>
|
||||
<FormGroup check>
|
||||
<Input type="radio" name="radio1" checked={this.state.noHistory} onChange={() =>{this.setLimitDays('noHistory')}}/>
|
||||
<Label>{gettext(' Don\'t keep history')}</Label>
|
||||
<Input type="radio" name="radio1" checked={this.state.noHistory} onChange={() =>{this.setLimitDays('noHistory')}}/>{' '}
|
||||
<Label>{gettext('Don\'t keep history')}</Label>
|
||||
</FormGroup>
|
||||
<FormGroup check>
|
||||
<Input type="radio" name="radio1" checked={this.state.autoHistory} onChange={() =>{this.setLimitDays('autoHistory')}}/>
|
||||
<Label>{gettext(' Only keep a period of history:')}</Label>
|
||||
<Input type="radio" name="radio1" checked={this.state.autoHistory} onChange={() =>{this.setLimitDays('autoHistory')}}/>{' '}
|
||||
<Label>{gettext('Only keep a period of history:')}</Label>
|
||||
<Input
|
||||
type="text"
|
||||
className="expire-input"
|
||||
value={this.state.expireDays}
|
||||
onChange={this.onChange}
|
||||
disabled={this.state.disabled}
|
||||
/>
|
||||
<Label><span>{gettext(' days')}</span></Label>
|
||||
/>{' '}
|
||||
<Label><span>{gettext('days')}</span></Label>
|
||||
</FormGroup>
|
||||
<Label className="err-message">{this.state.errorInfo}</Label><br />
|
||||
<Button color="primary" onClick={this.submit}>{gettext('Submit')}</Button>
|
||||
|
Loading…
Reference in New Issue
Block a user