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:
parent
530d667328
commit
2e02f1d782
86 changed files with 6249 additions and 5299 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue