mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
fix some translation
This commit is contained in:
@@ -54,7 +54,7 @@ class AddWikiPageDialog extends React.Component {
|
|||||||
const { handleClose } = this.props;
|
const { handleClose } = this.props;
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={true} toggle={handleClose} onOpened={this.onDialogLoad}>
|
<Modal isOpen={true} toggle={handleClose} onOpened={this.onDialogLoad}>
|
||||||
<ModalHeader toggle={handleClose}>{gettext('New Wiki Page')}</ModalHeader>
|
<ModalHeader toggle={handleClose}>{gettext('New page')}</ModalHeader>
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
<Form>
|
<Form>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
|
@@ -26,7 +26,7 @@ class ChangeGroupDialog extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const groupName = '<span class="op-target">' + Utils.HTMLescape(this.props.groupName) + '</span>';
|
const groupName = '<span class="op-target">' + Utils.HTMLescape(this.props.groupName) + '</span>';
|
||||||
const msg = gettext('Are you sure to change Group {placeholder} to Department ?').replace('{placeholder}', groupName);
|
const msg = gettext('Are you sure to change group {placeholder} to department ?').replace('{placeholder}', groupName);
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={true} toggle={this.props.toggleDialog}>
|
<Modal isOpen={true} toggle={this.props.toggleDialog}>
|
||||||
<ModalHeader toggle={this.props.toggleDialog}>
|
<ModalHeader toggle={this.props.toggleDialog}>
|
||||||
|
@@ -315,7 +315,7 @@ class GenerateUploadLink extends React.Component {
|
|||||||
|
|
||||||
{sharedUploadInfo.expire_date && (
|
{sharedUploadInfo.expire_date && (
|
||||||
<>
|
<>
|
||||||
<dt className="text-secondary font-weight-normal">{gettext('Expiration Date')}</dt>
|
<dt className="text-secondary font-weight-normal">{gettext('Expiration date')}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{this.state.isEditingExpiration ? (
|
{this.state.isEditingExpiration ? (
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
|
@@ -179,7 +179,7 @@ class LinkDetails extends React.Component {
|
|||||||
</dd>
|
</dd>
|
||||||
{!sharedLinkInfo.is_dir && sharedLinkInfo.permissions.can_download && ( // just for file
|
{!sharedLinkInfo.is_dir && sharedLinkInfo.permissions.can_download && ( // just for file
|
||||||
<>
|
<>
|
||||||
<dt className="text-secondary font-weight-normal">{gettext('Direct Download Link')}</dt>
|
<dt className="text-secondary font-weight-normal">{gettext('Direct download link')}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<SharedLink
|
<SharedLink
|
||||||
link={`${sharedLinkInfo.link}?dl=1`}
|
link={`${sharedLinkInfo.link}?dl=1`}
|
||||||
@@ -212,7 +212,7 @@ class LinkDetails extends React.Component {
|
|||||||
)}
|
)}
|
||||||
{sharedLinkInfo.expire_date && (
|
{sharedLinkInfo.expire_date && (
|
||||||
<>
|
<>
|
||||||
<dt className="text-secondary font-weight-normal">{gettext('Expiration Date')}</dt>
|
<dt className="text-secondary font-weight-normal">{gettext('Expiration date')}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{this.state.isEditingExpiration ? (
|
{this.state.isEditingExpiration ? (
|
||||||
<div className="ml-4">
|
<div className="ml-4">
|
||||||
|
@@ -39,7 +39,7 @@ const _validateColumnType = ({ column, metadata, gettext }) => {
|
|||||||
if (column.unique && getColumnByKey(metadata.columns, column.key)) {
|
if (column.unique && getColumnByKey(metadata.columns, column.key)) {
|
||||||
return {
|
return {
|
||||||
type: COMMON_FORM_FIELD_TYPE.COLUMN_TYPE,
|
type: COMMON_FORM_FIELD_TYPE.COLUMN_TYPE,
|
||||||
tips: gettext('Another property has this column type'),
|
tips: gettext('Another property has this property type'),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
@@ -145,7 +145,7 @@ class OrgGroups extends Component {
|
|||||||
this.setState({
|
this.setState({
|
||||||
orgGroups: newGroupList
|
orgGroups: newGroupList
|
||||||
});
|
});
|
||||||
toaster.success(gettext('Successfully Change the group.'));
|
toaster.success(gettext('Successfully change the group'));
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
let errMessage = Utils.getErrorMsg(error);
|
let errMessage = Utils.getErrorMsg(error);
|
||||||
toaster.danger(errMessage);
|
toaster.danger(errMessage);
|
||||||
|
@@ -121,7 +121,7 @@ class Groups extends Component {
|
|||||||
this.setState({
|
this.setState({
|
||||||
groupList: newGroupList
|
groupList: newGroupList
|
||||||
});
|
});
|
||||||
toaster.success(gettext('Successfully Change the group.'));
|
toaster.success(gettext('Successfully change the group'));
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
let errMessage = Utils.getErrorMsg(error);
|
let errMessage = Utils.getErrorMsg(error);
|
||||||
toaster.danger(errMessage);
|
toaster.danger(errMessage);
|
||||||
|
@@ -48,7 +48,7 @@ class NameEditPopover extends Component {
|
|||||||
boundariesElement={document.body}
|
boundariesElement={document.body}
|
||||||
>
|
>
|
||||||
<div className="name-edit-popover-header">
|
<div className="name-edit-popover-header">
|
||||||
<span className='header-text'>{gettext('Modify Name')}</span>
|
<span className='header-text'>{gettext('Modify name')}</span>
|
||||||
</div>
|
</div>
|
||||||
<PopoverBody className="name-edit-content">
|
<PopoverBody className="name-edit-content">
|
||||||
<div className="item-name-editor">
|
<div className="item-name-editor">
|
||||||
|
@@ -52,7 +52,7 @@ export default class PageDropdownMenu extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
duplicatePageFailure = () => {
|
duplicatePageFailure = () => {
|
||||||
toaster.danger(gettext('Failed_to_duplicate_page'));
|
toaster.danger(gettext('Failed to duplicate page'));
|
||||||
};
|
};
|
||||||
|
|
||||||
handleCopyLink = () => {
|
handleCopyLink = () => {
|
||||||
|
Reference in New Issue
Block a user