aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/l10n/zh_CN.js2
-rw-r--r--apps/files_sharing/l10n/zh_CN.json2
-rw-r--r--apps/files_sharing/tests/js/publicAppSpec.js9
3 files changed, 8 insertions, 5 deletions
diff --git a/apps/files_sharing/l10n/zh_CN.js b/apps/files_sharing/l10n/zh_CN.js
index 5284752ba31..b6d82138d49 100644
--- a/apps/files_sharing/l10n/zh_CN.js
+++ b/apps/files_sharing/l10n/zh_CN.js
@@ -25,7 +25,7 @@ OC.L10N.register(
"Terms of service" : "服务条款",
"No compatible server found at {remote}" : " {remote} 未发现匹配的服务器",
"Invalid server URL" : "无效的服务器地址",
- "Failed to add the public link to your Nextcloud" : "添加公开链接到您的 Nextcloud 失败",
+ "Failed to add the public link to your Nextcloud" : "无法添加公开链接到您的 Nextcloud",
"No expiration date set" : "未设置失效时间",
"Shared by" : "共享人",
"File shares" : "文件共享",
diff --git a/apps/files_sharing/l10n/zh_CN.json b/apps/files_sharing/l10n/zh_CN.json
index 329518312aa..b748add53d7 100644
--- a/apps/files_sharing/l10n/zh_CN.json
+++ b/apps/files_sharing/l10n/zh_CN.json
@@ -23,7 +23,7 @@
"Terms of service" : "服务条款",
"No compatible server found at {remote}" : " {remote} 未发现匹配的服务器",
"Invalid server URL" : "无效的服务器地址",
- "Failed to add the public link to your Nextcloud" : "添加公开链接到您的 Nextcloud 失败",
+ "Failed to add the public link to your Nextcloud" : "无法添加公开链接到您的 Nextcloud",
"No expiration date set" : "未设置失效时间",
"Shared by" : "共享人",
"File shares" : "文件共享",
diff --git a/apps/files_sharing/tests/js/publicAppSpec.js b/apps/files_sharing/tests/js/publicAppSpec.js
index 9d24a7a7946..52230b3e2fa 100644
--- a/apps/files_sharing/tests/js/publicAppSpec.js
+++ b/apps/files_sharing/tests/js/publicAppSpec.js
@@ -21,13 +21,16 @@
describe('OCA.Sharing.PublicApp tests', function() {
var App = OCA.Sharing.PublicApp;
- var hostStub, protocolStub, webrootStub;
+ var hostStub, protocolStub;
+ var originalWebroot;
var $preview;
beforeEach(function() {
+ originalWebroot = OC.webroot;
+ OC.webroot = '/owncloud';
protocolStub = sinon.stub(OC, 'getProtocol').returns('https');
hostStub = sinon.stub(OC, 'getHost').returns('example.com:9876');
- webrootStub = sinon.stub(OC, 'getRootPath').returns('/owncloud');
+
$preview = $('<div id="preview"></div>');
$('#testArea').append($preview);
$preview.append(
@@ -38,9 +41,9 @@ describe('OCA.Sharing.PublicApp tests', function() {
});
afterEach(function() {
+ OC.webroot = originalWebroot;
protocolStub.restore();
hostStub.restore();
- webrootStub.restore();
});
describe('File list', function() {