diff options
author | Eric Hameleers <alien@slackware.com> | 2013-05-09 21:37:08 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-05-09 21:37:08 +0000 |
commit | 47033470b9eab907c8e272acec38b0aa57e603a8 (patch) | |
tree | 18ac250932d679962d757039a9eb050b6d3d1a69 /libreoffice/build/libreoffice.SlackBuild | |
parent | cbd628f33354392bb611f30c34db694fbe84f026 (diff) | |
download | asb-47033470b9eab907c8e272acec38b0aa57e603a8.tar.gz asb-47033470b9eab907c8e272acec38b0aa57e603a8.tar.xz |
Find and skip poor translations
Diffstat (limited to 'libreoffice/build/libreoffice.SlackBuild')
-rwxr-xr-x | libreoffice/build/libreoffice.SlackBuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libreoffice/build/libreoffice.SlackBuild b/libreoffice/build/libreoffice.SlackBuild index 49b02674..aacc2cd6 100755 --- a/libreoffice/build/libreoffice.SlackBuild +++ b/libreoffice/build/libreoffice.SlackBuild @@ -753,6 +753,11 @@ else LANGUAGES="${DEF_LANG} $(echo ${ADD_LANGUAGES} |sed -e "s/${DEF_LANG} *//")" fi +# Don't build localized help which is not translated (taken from Fedora): +POORHELPS=$(ls -d translations/source/*/helpcontent2 translations/source/*|cut -f 3 -d /|sort|uniq -u|xargs) +# Don't build localized help which is poorly translated: +POORHELPS="$POORHELPS $(grep 'msgstr .Working with Documents' translations/source/*/helpcontent2/source/text/swriter/guide.po| cut -f 3 -d / | xargs)" + echo "Building for these languages: $LANGUAGES" if [ "$USE_GIT" = "yes" ]; then @@ -783,6 +788,7 @@ esac --with-docdir=/usr/doc/$PRGNAM-${LOVER}${VERSION}${PKG_SUBVER} \ --with-install-dirname=$PRGNAM \ --with-lang="$(echo ${LANGUAGES} |tr _ -)" \ + --with-poor-help-localizations="$POORHELPS" \ --without-binsuffix \ --with-external-tar="$TMP/tmp-$PRGNAM/extsrc" \ ${GITOPTS} \ |