git » libreoffice-still.git » commit 244846d

fix offline help not opening in non en-US language

author Andreas Radke
2019-10-07 13:56:13 UTC
committer Andreas Radke
2019-10-07 13:56:13 UTC
parent 08c25fbcdf54b69b0dec5209792b9c0016f0178b

fix offline help not opening in non en-US language

PKGBUILD +12 -1

diff --git a/PKGBUILD b/PKGBUILD
index 6d39137..c55c8ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ pkgbase=libreoffice-still
 pkgname=('libreoffice-still-sdk' 'libreoffice-still')
 _LOver=6.2.7.1
 pkgver=6.2.7
-pkgrel=2
+pkgrel=3
 arch=('x86_64')
 license=('LGPL3')
 url="https://www.libreoffice.org/"
@@ -329,4 +329,15 @@ package_libreoffice-still() {
 	install -dm755 "${pkgdir}"/usr/share/metainfo
 	install -v -m644 "${srcdir}"/libreoffice-$_LOver/sysui/desktop/appstream-appdata/*.xml \
 		"${pkgdir}"/usr/share/metainfo
+
+	# make all i18n lang packages with help section ('1') available to
+	# fix "F1" not opening translated offline help opening in browser
+	# see also /usr/lib/libreoffice/help/en-US/langnames.js
+	echo "var languagesSet = new Set(['en-US','am','ar','ast','bg','bn',\
+	'bn-IN','bo','bs','ca','ca-valencia','cs','da','de','dz','el',\
+	'en-GB','en-ZA','eo','es','et','eu','fi','fr','gl','gu','he',\
+	'hi','hr','hu','id','is','it','ja','ka','km','ko','lo','lt','lv',\
+	'mk','nb','ne','nl','nn','om','pl','pt','pt-BR','ro','ru','si',\
+	'sid','sk','sl','sq','sv','ta','tg','tr','ug','uk','vi','zh-CN','zh-TW'])" \
+		> "${pkgdir}"/usr/lib/libreoffice/help/languages.js
 }