mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
fix translation
This commit is contained in:
@@ -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('{file_name}', '<strong>Deleted Library</strong>')
|
||||
}
|
||||
return {avatar_url, notice};
|
||||
}
|
||||
|
@@ -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>
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user