Problem in loading QM translations with LANGUAGE="" envar

Albert Astals Cid aacid at kde.org
Wed Jan 10 19:09:35 UTC 2018


El dimecres, 10 de gener de 2018, a les 5:49:54 CET, Safa Alfulaij va 
escriure:
> Well, I don't want to remove it but it's a must. First it's not right
> logically and second is that Qt prefers it over LANG, and use any locale
> varient since it has no country name. (QLocale("ar") returns "Arabic
> (Egypt)" (which is defind in unicode), instead of my "Arabic (Bahrain)"
> locale.
> And it's the only thing that is not getting translated which is obviously a
> bug.

Why not use ar_BH as LANGUAGE?

this is the output of my locale

$ locale
LANG=ca_ES.UTF-8
LANGUAGE=ca_ES
LC_CTYPE="ca_ES.UTF-8"
LC_NUMERIC="ca_ES.UTF-8"
LC_TIME="ca_ES.UTF-8"
LC_COLLATE="ca_ES.UTF-8"
LC_MONETARY="ca_ES.UTF-8"
LC_MESSAGES="ca_ES.UTF-8"
LC_PAPER="ca_ES.UTF-8"
LC_NAME="ca_ES.UTF-8"
LC_ADDRESS="ca_ES.UTF-8"
LC_TELEPHONE="ca_ES.UTF-8"
LC_MEASUREMENT="ca_ES.UTF-8"
LC_IDENTIFICATION="ca_ES.UTF-8"
LC_ALL=

Cheers,
  Albert


> 
> Regards
> 
> On Jan 10, 2018 12:20 AM, "Albert Astals Cid" <aacid at kde.org> wrote:
> > El dimarts, 9 de gener de 2018, a les 20:08:02 CET, Safa Alfulaij va
> > 
> > escriure:
> > > Hello all.
> > > 
> > > After doing some investigation about a problem, I came into an issue in
> > > loading correct translations in Frameworks (that has the “_qt” suffix in
> > > translation system).
> > > Previously, I had my LANGUAGE enviroment variable containing “ar”, which
> > 
> > is
> > 
> > > because I added Arabic in my “Language” KCM (without knowing that I
> > > don't
> > > need it if the locale is alread set to Arabic).
> > > This was normal and things was translated well. Today I removed that
> > > “ar”
> > > because it's not needed, and all applications (Qt, KDE, Gnome, other
> > 
> > KF5s)
> > 
> > > worked except for those frameworks which are using QM files (the ones
> > 
> > with
> > 
> > > “_qt” suffix). The translation isn't loaded and strings are shown in
> > > English.
> > 
> > So don't remove it?
> > 
> > Cheers,
> > 
> >   Albert




More information about the Kde-frameworks-devel mailing list