Re: [Interest] QTranslator.load and builtin translations

2020-08-18 Thread Jérôme Laheurte
> Le 18 août 2020 à 17:06, Giuseppe D'Angelo via Interest > a écrit : > > Il 18/08/20 16:28, Jérôme Laheurte ha scritto: >> The « split(‘-‘)[0] » part looks like a big code smell to me, but what >> should I do ? > > There's no need, load() should already do the split internally and search

Re: [Interest] QTranslator.load and builtin translations

2020-08-18 Thread Giuseppe D'Angelo via Interest
Il 18/08/20 16:28, Jérôme Laheurte ha scritto: The « split(‘-‘)[0] » part looks like a big code smell to me, but what should I do ? There's no need, load() should already do the split internally and search for the right thing. Maybe you just need to load "qtbase_" (or specify "_" as the

[Interest] QTranslator.load and builtin translations

2020-08-18 Thread Jérôme Laheurte
Hello. Is there a way to load the « builtin » translation, say for qtbase, without having to specify a filename ? I expected the QTranslator.load(QLocale, …) method to do just that, but alas, I still need to specify that I want to load, say, « qtbase_fr ». My problem is that I don’t see any