1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[StatusBarIcons] Make plugin translatable.

This commit is contained in:
nowrep 2013-06-02 17:50:28 +02:00
parent 0c7dea70fd
commit 4d33b04310
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -39,6 +39,7 @@ public:
void unload();
bool testPlugin();
QTranslator* getTranslator(const QString &locale);
void showSettings(QWidget* parent = 0);
private: