Date: Thu, 27 Oct 2011 07:33:54 GMT From: Stefan Rumetshofer <sterum@overrider.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/162048: port "cad/qcad" - no localization Message-ID: <201110270733.p9R7XspT065205@red.freebsd.org> Resent-Message-ID: <201110270740.p9R7eAp8048649@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 162048 >Category: ports >Synopsis: port "cad/qcad" - no localization >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 27 07:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Stefan Rumetshofer >Release: 8.2-RELEASE-p3 >Organization: >Environment: FreeBSD saturn. 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: In qcad it is not possible to change the language of the user interface and the commands. >How-To-Repeat: In the application preferences of qcad no GUI Language and no Command Language can be chosen. >Fix: change the Makefile: In section "do-build" remove the notrans option of the build-script "build-qcad.sh" and put the attached patch tho the files folder of the port. (I put the two patches into one .txt file) Patch attached with submission follows: file patch-ad: Index: scripts/release_translations.sh ================================================================================ --- scripts/release_translations.sh +++ scripts/release_translations.sh @@ -0,0 +1,24 @@ +#!/bin/bash +cd .. +cwd=`pwd` +echo "### $cwd" +for dir in qcad qcadactions qcadguiqt qcadcmd qcadlib +do + cd $dir/src + echo "### $dir" + echo "running lrelease in $dir/src..." + find . -type f -name '*.ts' -exec $QTDIR/bin/lrelease '{}' \; + find . -type f -name '*.pro' -exec $QTDIR/bin/lrelease '{}' \; + cd ../.. + + cd $dir/src/ts + echo "copying from $dir/src/ts..." + for tf in *.qm + do + if [ ! -e $cwd/qcad/qm/$tf ] + then + cp $cwd/$dir/src/ts/$tf $cwd/qcad/qm/$tf + fi + done + cd ../../.. +done file patch-ae --- scripts/build_qcad.sh 2005-11-22 12:27:33.000000000 +0100 +++ scripts/qcad.sh 2009-01-23 20:28:12.000000000 +0100 @@ -249,6 +249,7 @@ echo "-------- Building Translations --------" cd scripts sh ./release_translations.sh + cd .. fi if [ "x$platform" == "xosx" ] >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110270733.p9R7XspT065205>