mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 11:51:27 +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('{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('{file_name}', '<strong>Deleted Library</strong>')
|
||||||
}
|
}
|
||||||
return {avatar_url, notice};
|
return {avatar_url, notice};
|
||||||
}
|
}
|
||||||
|
@@ -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>
|
||||||
|
@@ -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">
|
||||||
|
@@ -141,7 +141,7 @@ class OrgDepartmentItem extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div className="cur-view-content">
|
<div className="cur-view-content">
|
||||||
{(members && members.length === 1 && members[0].role === "Owner") ?
|
{(members && members.length === 1 && members[0].role === "Owner") ?
|
||||||
<p className="no-member">{gettext('No Members')}</p> :
|
<p className="no-member">{gettext('No Member')}</p> :
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@@ -74,8 +74,8 @@ 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-department') : gettext('No department');
|
||||||
return (
|
return (
|
||||||
<div className="main-panel-center flex-row h-100">
|
<div className="main-panel-center flex-row h-100">
|
||||||
<div className="cur-view-container o-auto">
|
<div className="cur-view-container o-auto">
|
||||||
|
Reference in New Issue
Block a user