mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[StatusBarIcons] Make plugin translatable.
This commit is contained in:
parent
0c7dea70fd
commit
4d33b04310
|
@ -75,6 +75,13 @@ bool StatusBarIconsPlugin::testPlugin()
|
|||
return (QupZilla::VERSION == QLatin1String("1.5.0"));
|
||||
}
|
||||
|
||||
QTranslator *StatusBarIconsPlugin::getTranslator(const QString &locale)
|
||||
{
|
||||
QTranslator* translator = new QTranslator(this);
|
||||
translator->load(locale, ":/sbi/locale/");
|
||||
return translator;
|
||||
}
|
||||
|
||||
void StatusBarIconsPlugin::showSettings(QWidget* parent)
|
||||
{
|
||||
SBI_SettingsDialog dialog(m_manager, parent);
|
||||
|
|
|
@ -39,6 +39,7 @@ public:
|
|||
void unload();
|
||||
bool testPlugin();
|
||||
|
||||
QTranslator* getTranslator(const QString &locale);
|
||||
void showSettings(QWidget* parent = 0);
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue
Block a user