Skip to content

Commit 72c1bd3

Browse files
committed
remove translated help images to save space
1 parent 9ff955d commit 72c1bd3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ clean:
2424
rm -rf oo-extract
2525
rm -f onlyoffice-documentserver.x86_64.rpm
2626
rm -rf 3rdparty/onlyoffice/documentserver/server/{Common,DocService}
27+
rm -rf 3rdparty/onlyoffice/documentserver/web-apps/apps/*/main/resources/help/{de,es,fr,it,ru}/images
2728
cd 3rdparty/onlyoffice/documentserver/server/tools && \
2829
./allfontsgen \
2930
--input="../../core-fonts" \

lib/Controller/StaticController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ public function thirdparty(string $path) {
6666
throw new ForbiddenException();
6767
}
6868

69+
// use english images for all help pages to save space
70+
$path = preg_replace("|resources/help/\w+/images|", "resources/help/en/images", $path);
71+
6972
$localPath = __DIR__ . '/../../3rdparty/onlyoffice/documentserver/' . $path;
7073

7174
return $this->createFileResponse($localPath);

0 commit comments

Comments
 (0)