1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 02:10:24 +00:00

repair translate bug (#2892)

* repair translate bug

* escape repo-name

* repair translate bug

* repair shared-repo-list-item translate bug
This commit is contained in:
杨顺强
2019-01-28 16:32:32 +08:00
committed by Daniel Pan
parent 55da78826e
commit d702be3b2b
10 changed files with 51 additions and 32 deletions

View File

@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { Utils } from '../../utils/utils';
class DeleteRepoDialog extends Component {
@@ -20,7 +21,7 @@ class DeleteRepoDialog extends Component {
render() {
const data = this.props.data;
const repoName = data ? '<span class="sf-font">' + data.repoName + '</span>' : null;
const repoName = data ? '<span class="sf-font">' + Utils.HTMLescape(data.repoName) + '</span>' : null;
let message = gettext("Are you sure you want to delete %s ?");
message = message.replace('%s', repoName);
const popup = (