From unknown Thu Apr 09 08:20:06 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#987: [X2Go-Dev] Bug#987: .ts Files Name Mismatch Problem
Reply-To: Mihai Moldovan <ionic@ionic.de>, 987@bugs.x2go.org
Resent-From: Mihai Moldovan <ionic@ionic.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>, owner@bugs.x2go.org
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 27 Jan 2016 14:50:02 +0000
Resent-Message-ID: <handler.987.B987.14539059086053@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 987
X-X2Go-PR-Package: x2goclient (debian)
X-X2Go-PR-Keywords: 
Received: via spool by 987-submit@bugs.x2go.org id=B987.14539059086053
          (code B ref 987); Wed, 27 Jan 2016 14:50:02 +0000
Received: (at 987) by bugs.x2go.org; 27 Jan 2016 14:45:08 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=3.0 tests=BAYES_20,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham
	version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id F369D5DA90
	for <987@bugs.x2go.org>; Wed, 27 Jan 2016 15:45:05 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id HGdEzx56X-1J for <987@bugs.x2go.org>;
	Wed, 27 Jan 2016 15:45:05 +0100 (CET)
Received: from Root24.de (powered.by.root24.eu [5.135.3.88])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id A44B75DA8E
	for <987@bugs.x2go.org>; Wed, 27 Jan 2016 15:45:05 +0100 (CET)
Received: from nopileos.local (home.ionic.de [217.92.117.31])
	by mail.ionic.de (Postfix) with ESMTPSA id 031634F00C1D;
	Wed, 27 Jan 2016 15:45:04 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ionic.de; s=default;
	t=1453905905; bh=qBCRJSLcwM4j62o5PGJA4fwXPDqs8F0r8BIAfmi0bLc=;
	h=Subject:To:References:From:Date:In-Reply-To:From;
	b=DGWTaoTwI583ms/x1Dcv4stL/vdq/Rwd6c99iC+X/9Dp5iFUr9HijgvHuvPkoZBAp
	 7XbIKATCLYMH7IHtxPu4RYz/KKUMcTZjRFRN2ziaUOkESSdMUK9BB/eqploYdEQN5w
	 VcnI+ebGcbAvqwCIFwAz7MkVLcBiPw/0URsVWXS8=
To: Orkun BALCI <b.orkun@gmail.com>, 987@bugs.x2go.org
References: <CADjYjXUNsH3Lb4-Z56PQJQHFGRYkhR-efic-rHMOXc5jOnomjQ@mail.gmail.com>
From: Mihai Moldovan <ionic@ionic.de>
X-Enigmail-Draft-Status: N1110
Message-ID: <56A8D7DD.5040202@ionic.de>
Date: Wed, 27 Jan 2016 15:44:45 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0)
 Gecko/20100101 Thunderbird/38.4.0
MIME-Version: 1.0
In-Reply-To: <CADjYjXUNsH3Lb4-Z56PQJQHFGRYkhR-efic-rHMOXc5jOnomjQ@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="Xxr73TMs3JKR9iTkvw07U33AUO0K2O4lo"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Xxr73TMs3JKR9iTkvw07U33AUO0K2O4lo
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 27.01.2016 09:03 AM, Orkun BALCI wrote:
> Package: x2goclient (Debian) Version: 4.0.5.0-1
>=20
> In Qt Resources, translation files (.ts) filenames ends with a
> preceeding underscore and two character (like _tr, _en, etc.)
> However, locale names are in the form tr_TR or en_US. Because
> x2goclient reads from :/i18n/[filename] Qt Resource file, it cannot
> find a file named x2goclient_tr_TR, x2goclient_en_US, qt_tr_TR, or
> qt_en_US. .ts file names should be changed from trailing two
> character to four character full locale name.

I disagree, let me explain why.

We're using QTranslator::load(), which, according to the documentation, s=
hould try to load stripped file names, too, c.f.: https://doc.qt.io/qt-4.=
8/qtranslator.html#load

The important part is the fallback list for fr_ca. Eventually, it should =
be able to load :/i18n/x2goclient_tr.qm (and thus also :/i18n/qt_tr.qm.)

Are you seeing different, wrong behavior?



Mihai


--Xxr73TMs3JKR9iTkvw07U33AUO0K2O4lo
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJWqNfvAAoJEB/WLtluJTqHFlEP/RGqa6VQmVn4alf8J2oIfmWM
/lw6a6Btqn7NJBQTkjZ1aH4iTeIjG3QVQHiiVpF7j8kLkxnWQINpsZs5FoR/d0i5
y/AcepInU2dSqmnw3u4oiCBC2O6kV6YKr0R8YlLkQq8kCfsmvY+pLf0V/2XwMPnu
t/alS4h0lpYFWQl8Px78gKuuf1xXKIbPpO1Kd9oqILb9vZ8wYSeMzgN0JYZVN1Yz
3kva73iuHa1Kw7IddcVOKj+QpZ0/kI9NCcOgu3u4D5/fQTEyfoCrVfTUFOZUw8py
jVNmWX3NRLVkURycxkLsEl5Jl04H6D42YfFD/XkBlApVPxnsgDNSVWbh0EoQGG6F
jZkMQ5ZG/4KqR9D4IG2kDYOcU8dtMLgwgHKLKQ2wn04kJQe0LnrNZoZ1jFJrecAv
o89iDCJHvs0NozVzijzOTpeXrRM/GEv1vRu1wjKTCYgzyxEz3Y1HLIb/2+y3jDlD
vpcgdBiA4CjKjXJbMP/uOdpVYBFmQoS/gxz9bV+mi/fXuyt1Vpis1qH4F68r3P67
/fLcqrv65MJybTY0p7J8p62lh09ycmwlSjj4T8XBEP9x3HfgRTB6iK5CwIJjR1Uy
lgEAv+FrYGFeNbsIzm7xOwVBY/kvs1PNUuapFHfpCFDuPaO6dlKUaepWEBJBt3O4
lG9McaKqzmU7Bzu44A0d
=Tjoa
-----END PGP SIGNATURE-----

--Xxr73TMs3JKR9iTkvw07U33AUO0K2O4lo--
