> Le 18 août 2020 à 17:06, Giuseppe D'Angelo via Interest 
> <interest@qt-project.org> 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 for 
> the right thing. Maybe you just need to load "qtbase_" (or specify "_" as the 
> prefix string). See
> 
>> https://doc.qt.io/qt-5/internationalization.html#example-basic-qt-modules

This. How the hell did I miss this after two hours of googling. Still had to 
explicitely specify the path to QLibraryInfo.TranslationsPath; the example 
could be a little better, but everything’s fine now.

Thanks!

Best regards
Jérôme Laheurte

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to