Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/documentserver_community.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-02-08 18:28:41 +0300
committerRobin Appelman <robin@icewind.nl>2022-11-09 20:15:48 +0300
commit72c1bd3867206974ab1df9559baf9731aaf6daa6 (patch)
treeca05bddeec30cb05c100db57bac610ca7adf7b1f
parent9ff955d28ad532efb739f782599688f8d15e36e0 (diff)
remove translated help images to save space
-rw-r--r--Makefile1
-rw-r--r--lib/Controller/StaticController.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2343cc3..dd9413d 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ clean:
rm -rf oo-extract
rm -f onlyoffice-documentserver.x86_64.rpm
rm -rf 3rdparty/onlyoffice/documentserver/server/{Common,DocService}
+ rm -rf 3rdparty/onlyoffice/documentserver/web-apps/apps/*/main/resources/help/{de,es,fr,it,ru}/images
cd 3rdparty/onlyoffice/documentserver/server/tools && \
./allfontsgen \
--input="../../core-fonts" \
diff --git a/lib/Controller/StaticController.php b/lib/Controller/StaticController.php
index 3c0f17e..38af7d7 100644
--- a/lib/Controller/StaticController.php
+++ b/lib/Controller/StaticController.php
@@ -66,6 +66,9 @@ class StaticController extends Controller {
throw new ForbiddenException();
}
+ // use english images for all help pages to save space
+ $path = preg_replace("|resources/help/\w+/images|", "resources/help/en/images", $path);
+
$localPath = __DIR__ . '/../../3rdparty/onlyoffice/documentserver/' . $path;
return $this->createFileResponse($localPath);