From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: [PATCH 1/2] gnu: Add qtkeychain. Date: Thu, 12 Nov 2015 14:22:23 +0200 Message-ID: <20151112142223.453c0fe2@debian-netbook> References: <1446497399-30726-1-git-send-email-efraim@flashner.co.il> <1446497399-30726-2-git-send-email-efraim@flashner.co.il> <87d1vocf05.fsf@gnu.org> <20151107203145.75002d7c@debian-netbook> <87r3jxn2xz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/21UK32oY0d6z2Pn0VTQ9gvj"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwqty-0003e9-Dp for guix-devel@gnu.org; Thu, 12 Nov 2015 07:22:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwqtv-00013z-81 for guix-devel@gnu.org; Thu, 12 Nov 2015 07:22:54 -0500 In-Reply-To: <87r3jxn2xz.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= Cc: guix-devel@gnu.org --Sig_/21UK32oY0d6z2Pn0VTQ9gvj Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 10 Nov 2015 19:07:20 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Efraim Flashner skribis: >=20 > > On Thu, 05 Nov 2015 22:28:42 +0100 > > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > > =20 > >> Efraim Flashner skribis: > >> =20 > >> > * gnu/packages/qt.scm (qtkeychain): New variable. =20 > >>=20 > >> [...] > >> =20 > >> > + (modify-phases > >> > + %standard-phases =20 > >>=20 > >> =E2=80=98%standard-phases=E2=80=99 goes on the previous line. > >> =20 > >> > + (add-before > >> > + 'configure 'set-qt-trans-dir > >> > + (lambda _ > >> > + (substitute* "CMakeLists.txt" > >> > + (("\\$\\{qt_translations_dir\\}") > >> > + "${CMAKE_INSTALL_PREFIX}/share/qtkeychain/translati= ons"))))))) =20 > >>=20 > >> Is Qt able to find translations installed there? Is some environment > >> variable needed to tell it where to look for them? =20 > > > > I don't really know. =20 >=20 > Could you check by running it with a non-English locale listed that > appears in the =E2=80=98translations=E2=80=99 directory? >=20 > Maybe run the application in =E2=80=98strace=E2=80=99 to see whether/wher= e it looks for > its translation files. >=20 > > Without this it tries to install them to > > /gnu/store/...qt5/translations, so I tried to make a directory that > > would make sense. In this patch I've changed it to just /translations, > > but I still didn't see it in .guix-profile/share/{de,ro}/LC_MESSAGES/, > > so I don't really know what to do with it. =20 >=20 > Qt has its own mechanism for translation of UI messages. The > LC_MESSAGES thing is used by the =E2=80=98gettext=E2=80=99 function, part= of libc. >=20 > Applications using =E2=80=98gettext=E2=80=99 tell libc the location of th= eir > translations using =E2=80=98bindtextdomain=E2=80=99. >=20 > Qt must have a way to know where translations are; maybe it has a > function similar to =E2=80=98bindtextdomain=E2=80=99, in which case thing= s will just > work regardless of where translations are installed. >=20 > TIA, > Ludo=E2=80=99. It works! I did `export LANG=3Dde` and then ran /./gnu/store/...owncloud/bin/owncloud, and I got a German popup telling me there was no associated keychain and I had to enter the password myself. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Sig_/21UK32oY0d6z2Pn0VTQ9gvj Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWRIR/AAoJEPTB05F+rO6TRsIP/0bWdcJdDG17QfQT3QbWo6d7 d0XxPr88jz/VjNqLdp8D7+RbUi3KVYbVb91dmprO+L644sOg0JI5QFwjz0AdQoIA jIcfj0huruRH9kTv622X0HnCQNrZlvcy5mLIdBihC2gUEIYWeDg3xXm7g1jDajxZ qyreYGpDnj5uxOW0/PzTJTXVgN6qqdKL+hhLV+xbkfz1jMA4JzTg4uoicH1sMrnf PLp6p1uE2SBZw4lIrz3vONFI2+svDs4NaCUWVlzzaJnixSLS5Jt3kdz0oUDmzoj0 owIgmL3E0TnBUNVnIz2bkUTF2sC3ikUAqh1DOLv5FbqQyPdvANEJ2Pcyn83cDquY FBUkGOm8UjSrgVQzWoxFzLzWXobL95d0u27ZjxCv4/azfJJbtW3lcqkpogyVYgu3 adfEheMT9+fxNuqLJAZT7xfJnMq5aab0mViaUQD6d73eymoHEcuJbOgdI3oMWy/c KNt3AcVlweqB/8FUx/zTeiIcz+B/j2efArVe6rWPMZu5rtHkENiYFm76nFQ4bu4O x3SJ2NycgMgMz4SBSZDHGjp/0xKATx0roMUdOlq4MF/GJgPSaUn8dU3KjodwigNY t+fUkFDUVFEF5y+xdKIoVIbpEilHKydRAP7i68V720f46P6KROq2kRWc6V2GMYYU 6vohNxTjM8CFcfwFJMTC =pNGl -----END PGP SIGNATURE----- --Sig_/21UK32oY0d6z2Pn0VTQ9gvj--