1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 21:07:17 +00:00

Merge pull request #3207 from haiwen/update

fix translation
This commit is contained in:
杨顺强
2019-04-03 18:18:40 +08:00
committed by GitHub
4 changed files with 10 additions and 10 deletions

View File

@@ -128,9 +128,9 @@ class NoticeItem extends React.Component {
notice = notice.replace('{upload_file_link}', uploadFileLink);
notice = notice.replace('{uploaded_link}', uploadedLink);
} else {
notice = gettext('A file name {file_name} is uploaded to {dest}.');
notice = notice.replace('{file_name}', fileName);
notice = notice.replace('{dest}', '<strong>Deleted Library</strong>')
notice = gettext('A file name {upload_file_link} is uploaded to {uploaded_link}.');
notice = notice.replace('{upload_file_link}', fileName);
notice = notice.replace('{uploaded_link}', '<strong>Deleted Library</strong>')
}
return {avatar_url, notice};
}

View File

@@ -205,15 +205,15 @@ class DirentListView extends React.Component {
<div className="big-new-file-button-group">
<div className="d-flex justify-content-center">
<button className="big-new-file-button" onClick={this.onCreateNewFile.bind(this, '.md')}>
{'+ '}{gettext('Markdown')}</button>
{'+ Markdown'}</button>
<button className="big-new-file-button" onClick={this.onCreateNewFile.bind(this, '.ppt')}>
{'+ '}{gettext('PPT')}</button>
{'+ PPT'}</button>
</div>
<div className="d-flex justify-content-center">
<button className="big-new-file-button" onClick={this.onCreateNewFile.bind(this, '.doc')}>
{'+ '}{gettext('Word')}</button>
{'+ Word'}</button>
<button className="big-new-file-button" onClick={this.onCreateNewFile.bind(this, '.xls')}>
{'+ '}{gettext('Excel')}</button>
{'+ Excel'}</button>
</div>
</div>
</div>

View File

@@ -83,8 +83,8 @@ class MarkdownViewerToolbar extends React.Component {
let relatedFileString = '';
if (relatedFiles) {
const length = relatedFiles.length;
if (length === 1) relatedFileString = gettext('Related file');
else if (length > 1) relatedFileString = gettext('Related files');
if (length === 1) relatedFileString = gettext('related file');
else if (length > 1) relatedFileString = gettext('related files');
}
return(
<div className="sf-md-viewer-topbar-second d-flex justify-content-center">

View File

@@ -74,7 +74,7 @@ class OrgDepartmentsList extends React.Component {
const groups = this.state.groups;
let isSub = this.props.groupID ? true : false;
let header = isSub ? gettext('Sub-departments') : gettext('Departments');
let headerButton = isSub ? gettext('New Sub-departments') : gettext('New Departments');
let headerButton = isSub ? gettext('New Sub-department') : gettext('New Department');
let noGroup = isSub ? gettext('No sub-departments') : gettext('No departments');
return (
<div className="main-panel-center flex-row h-100">