Skip to content

Commit

Permalink
fix some translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Aug 16, 2024
1 parent f6b8509 commit 1161d43
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/add-wiki-page-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AddWikiPageDialog extends React.Component {
const { handleClose } = this.props;
return (
<Modal isOpen={true} toggle={handleClose} onOpened={this.onDialogLoad}>
<ModalHeader toggle={handleClose}>{gettext('New Wiki Page')}</ModalHeader>
<ModalHeader toggle={handleClose}>{gettext('New page')}</ModalHeader>
<ModalBody>
<Form>
<FormGroup>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/change-group-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ChangeGroupDialog extends React.Component {

render() {
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 (
<Modal isOpen={true} toggle={this.props.toggleDialog}>
<ModalHeader toggle={this.props.toggleDialog}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/generate-upload-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class GenerateUploadLink extends React.Component {

{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>
{this.state.isEditingExpiration ? (
<div className="ml-4">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/share-link-panel/link-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class LinkDetails extends React.Component {
</dd>
{!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>
<SharedLink
link={`${sharedLinkInfo.link}?dl=1`}
Expand Down Expand Up @@ -212,7 +212,7 @@ class LinkDetails extends React.Component {
)}
{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>
{this.state.isEditingExpiration ? (
<div className="ml-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const _validateColumnType = ({ column, metadata, gettext }) => {
if (column.unique && getColumnByKey(metadata.columns, column.key)) {
return {
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;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/org-admin/org-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class OrgGroups extends Component {
this.setState({
orgGroups: newGroupList
});
toaster.success(gettext('Successfully Change the group.'));
toaster.success(gettext('Successfully change the group'));
}).catch(error => {
let errMessage = Utils.getErrorMsg(error);
toaster.danger(errMessage);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/sys-admin/groups/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Groups extends Component {
this.setState({
groupList: newGroupList
});
toaster.success(gettext('Successfully Change the group.'));
toaster.success(gettext('Successfully change the group'));
}).catch((error) => {
let errMessage = Utils.getErrorMsg(error);
toaster.danger(errMessage);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/wiki2/common/name-edit-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class NameEditPopover extends Component {
boundariesElement={document.body}
>
<div className="name-edit-popover-header">
<span className='header-text'>{gettext('Modify Name')}</span>
<span className='header-text'>{gettext('Modify name')}</span>
</div>
<PopoverBody className="name-edit-content">
<div className="item-name-editor">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class PageDropdownMenu extends Component {
};

duplicatePageFailure = () => {
toaster.danger(gettext('Failed_to_duplicate_page'));
toaster.danger(gettext('Failed to duplicate page'));
};

handleCopyLink = () => {
Expand Down

0 comments on commit 1161d43

Please sign in to comment.