Adding ability to switch language files at runtime to resolve #2743

* Removing .qm files from Windows build as they are inbuilt as of a7adfe251
* Moving translation change code to the OpenRGBSettingsPage
* Adding a changeEvent() to applicable Widgets to facilitate language updates
* Workaround added to TabLabel to accomodate translation context origin
* Added zh_TW locale to OpenRGB.pro
* Updated all translations to include the latest untranslated strings
This commit is contained in:
Chris 2022-11-27 00:10:59 +11:00 committed by Adam Honse
parent 530d667328
commit 2e02f1d782
86 changed files with 6249 additions and 5299 deletions

View file

@ -30,6 +30,14 @@ Ui::OpenRGBPluginsPage::~OpenRGBPluginsPage()
delete ui;
}
void Ui::OpenRGBPluginsPage::changeEvent(QEvent *event)
{
if(event->type() == QEvent::LanguageChange)
{
ui->retranslateUi(this);
}
}
void Ui::OpenRGBPluginsPage::RefreshList()
{
ui->PluginsList->clear();