1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

translate bug repair (#2769)

This commit is contained in:
杨顺强
2019-01-05 16:47:20 +08:00
committed by Daniel Pan
parent 324e055dac
commit 033dc672a5

View File

@@ -28,19 +28,19 @@ class Content extends Component {
render() { render() {
const { loading, errorMsg, items, sortBy, sortOrder } = this.props; const { loading, errorMsg, items, sortBy, sortOrder } = this.props;
const emptyTip = (
<div className="empty-tip">
<h2>{gettext('No libraries have been shared with you')}</h2>
<p>{gettext('No libraries have been shared directly with you. You can find more shared libraries at "Shared with groups".')}</p>
</div>
);
if (loading) { if (loading) {
return <Loading />; return <Loading />;
} else if (errorMsg) { } else if (errorMsg) {
return <p className="error text-center">{errorMsg}</p>; return <p className="error text-center">{errorMsg}</p>;
} else { } else {
const emptyTip = (
<div className="empty-tip">
<h2>{gettext('No libraries have been shared with you')}</h2>
<p>{gettext('No libraries have been shared directly with you. You can find more shared libraries at "Shared with groups".')}</p>
</div>
);
// sort // sort
const sortByName = sortBy == 'name'; const sortByName = sortBy == 'name';
const sortByTime = sortBy == 'time'; const sortByTime = sortBy == 'time';