mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 06:38:44 -05:00
0138bb9a75
Passing `--language en', '-l en-US', or `-l en_US` now takes a special action to not load any translations using the current locale. This allows the current system UI language not to influence an translations loaded via the command line override when the native en-US is wanted.
22 lines
351 B
C++
22 lines
351 B
C++
#ifndef WSJTX_L10N_LOADER_HPP__
|
|
#define WSJTX_L10N_LOADER_HPP__
|
|
|
|
#include <QString>
|
|
#include "pimpl_h.hpp"
|
|
|
|
class QApplication;
|
|
class QLocale;
|
|
|
|
class L10nLoader final
|
|
{
|
|
public:
|
|
explicit L10nLoader (QApplication *, QLocale const&, QString const& language_override = QString {});
|
|
~L10nLoader ();
|
|
|
|
private:
|
|
class impl;
|
|
pimpl<impl> m_;
|
|
};
|
|
|
|
#endif
|