1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +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('{upload_file_link}', uploadFileLink);
notice = notice.replace('{uploaded_link}', uploadedLink); notice = notice.replace('{uploaded_link}', uploadedLink);
} else { } else {
notice = gettext('A file name {file_name} is uploaded to {dest}.'); notice = gettext('A file name {upload_file_link} is uploaded to {uploaded_link}.');
notice = notice.replace('{file_name}', fileName); notice = notice.replace('{upload_file_link}', fileName);
notice = notice.replace('{dest}', '<strong>Deleted Library</strong>') notice = notice.replace('{uploaded_link}', '<strong>Deleted Library</strong>')
} }
return {avatar_url, notice}; return {avatar_url, notice};
} }

View File

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

View File

@@ -83,8 +83,8 @@ class MarkdownViewerToolbar extends React.Component {
let relatedFileString = ''; let relatedFileString = '';
if (relatedFiles) { if (relatedFiles) {
const length = relatedFiles.length; const length = relatedFiles.length;
if (length === 1) relatedFileString = gettext('Related file'); if (length === 1) relatedFileString = gettext('related file');
else if (length > 1) relatedFileString = gettext('Related files'); else if (length > 1) relatedFileString = gettext('related files');
} }
return( return(
<div className="sf-md-viewer-topbar-second d-flex justify-content-center"> <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; const groups = this.state.groups;
let isSub = this.props.groupID ? true : false; let isSub = this.props.groupID ? true : false;
let header = isSub ? gettext('Sub-departments') : gettext('Departments'); 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'); let noGroup = isSub ? gettext('No sub-departments') : gettext('No departments');
return ( return (
<div className="main-panel-center flex-row h-100"> <div className="main-panel-center flex-row h-100">