Update translation files and fix some translation related issues

This commit is contained in:
Adam Honse committed 2026-05-27 13:41:20 -05:00
1 parent 3ae14c9d70
commit a52766df76
28 files changed
+31288 -6926

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ ProfileManager::ProfileManager(const filesystem::path& config_dir)
profilemanager_settings_schema["suspend_profile"]["type"] = "profile";
profilemanager_settings_schema["suspend_profile"]["description"] = QT_TRANSLATE_NOOP("Settings", "Profile to load before system enters sleep mode");
settings_manager->RegisterSettingsSchema("ProfileManager", "Profile Manager", profilemanager_settings_schema, 1);
settings_manager->RegisterSettingsSchema("ProfileManager", QT_TRANSLATE_NOOP("Settings", "Profile Manager"), profilemanager_settings_schema, 1);
/*-----------------------------------------------------*\
| Read in profile manager settings and initialize any |
+3 -3
View File
@@ -161,7 +161,7 @@ ResourceManager::ResourceManager()
detection_settings_schema["initial_detection_delay_ms"]["type"] = "integer";
detection_settings_schema["initial_detection_delay_ms"]["description"] = QT_TRANSLATE_NOOP("Settings", "Amount of time, in milliseconds, to wait before detecting devices when started");
settings_manager->RegisterSettingsSchema("Detectors", "Detection", detection_settings_schema);
settings_manager->RegisterSettingsSchema("Detectors", QT_TRANSLATE_NOOP("Settings", "Detection"), detection_settings_schema);
/*-----------------------------------------------------*\
| Create LogManager settings schema |
@@ -199,7 +199,7 @@ ResourceManager::ResourceManager()
logmanager_settings_schema["file_count_limit"]["default"] = 10;
logmanager_settings_schema["file_count_limit"]["minimum"] = 0;
settings_manager->RegisterSettingsSchema("LogManager", "Log Manager", logmanager_settings_schema);
settings_manager->RegisterSettingsSchema("LogManager", QT_TRANSLATE_NOOP("Settings", "Log Manager"), logmanager_settings_schema);
/*-----------------------------------------------------*\
| Create Server settings schema |
@@ -224,7 +224,7 @@ ResourceManager::ResourceManager()
server_settings_schema["legacy_workaround"]["type"] = "bool";
server_settings_schema["legacy_workaround"]["description"] = QT_TRANSLATE_NOOP("Settings", "Workaround for some older SDK implementations that sent incorrect packet size for certain packets");
settings_manager->RegisterSettingsSchema("Server", "Server", server_settings_schema);
settings_manager->RegisterSettingsSchema("Server", QT_TRANSLATE_NOOP("Settings", "Server"), server_settings_schema);
/*-----------------------------------------------------*\
| Configure the log manager |
+10 -10
View File
@@ -166,7 +166,7 @@ OpenRGBDialog::OpenRGBDialog(QWidget *parent) : QMainWindow(parent), ui(new Ui::
autostart_settings_schema["custom_arguments"]["description"] = QT_TRANSLATE_NOOP("Settings", "Additional command line arguments to pass to OpenRGB when starting on login");
autostart_settings_schema["custom_arguments"]["order"] = 2;
ResourceManager::get()->GetSettingsManager()->RegisterSettingsSchema("AutoStart", "Start at Login", autostart_settings_schema, 2);
ResourceManager::get()->GetSettingsManager()->RegisterSettingsSchema("AutoStart", QT_TRANSLATE_NOOP("Settings", "Start at Login"), autostart_settings_schema, 2);
/*-----------------------------------------------------*\
| Create UserInterface settings schema |
@@ -251,7 +251,7 @@ OpenRGBDialog::OpenRGBDialog(QWidget *parent) : QMainWindow(parent), ui(new Ui::
ui_settings_schema["geometry"]["properties"]["height"]["type"] = "integer";
ui_settings_schema["geometry"]["properties"]["height"]["order"] = 5;
ResourceManager::get()->GetSettingsManager()->RegisterSettingsSchema("UserInterface", "User Interface", ui_settings_schema, 0);
ResourceManager::get()->GetSettingsManager()->RegisterSettingsSchema("UserInterface", QT_TRANSLATE_NOOP("Settings", "User Interface"), ui_settings_schema, 0);
#if defined(_WIN32) || defined(_MACOSX_X86_X64)
/*-----------------------------------------------------*\
@@ -276,7 +276,7 @@ OpenRGBDialog::OpenRGBDialog(QWidget *parent) : QMainWindow(parent), ui(new Ui::
drivers_settings_schema["amd_smbus_reduce_cpu"]["type"] = "bool";
#endif
ResourceManager::get()->GetSettingsManager()->RegisterSettingsSchema("Drivers", "Drivers", drivers_settings_schema);
ResourceManager::get()->GetSettingsManager()->RegisterSettingsSchema("Drivers", QT_TRANSLATE_NOOP("Settings", "Drivers"), drivers_settings_schema);
#endif
/*-----------------------------------------------------*\
@@ -650,7 +650,7 @@ void OpenRGBDialog::AddPluginsPage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* PluginTabLabel = new TabLabel(OpenRGBFont::extension, (char *)"Plugins", (char *)context, true);
TabLabel* PluginTabLabel = new TabLabel(OpenRGBFont::extension, (char *)QT_TR_NOOP("Plugins"), (char *)context, true);
ui->SettingsTabBar->tabBar()->setTabButton(ui->SettingsTabBar->tabBar()->count() - 1, QTabBar::LeftSide, PluginTabLabel);
}
@@ -667,7 +667,7 @@ void OpenRGBDialog::AddSoftwareInfoPage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* SoftwareTabLabel = new TabLabel(OpenRGBFont::info, (char *)"About OpenRGB", (char *)context, true);
TabLabel* SoftwareTabLabel = new TabLabel(OpenRGBFont::info, (char *)QT_TR_NOOP("About OpenRGB"), (char *)context, true);
ui->InformationTabBar->tabBar()->setTabButton(ui->InformationTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SoftwareTabLabel);
}
@@ -684,7 +684,7 @@ void OpenRGBDialog::AddSupportedDevicesPage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* SupportedTabLabel = new TabLabel(OpenRGBFont::controller, (char *)"Supported Devices", (char *)context, true);
TabLabel* SupportedTabLabel = new TabLabel(OpenRGBFont::controller, (char *)QT_TR_NOOP("Supported Devices"), (char *)context, true);
ui->SettingsTabBar->tabBar()->setTabButton(ui->SettingsTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SupportedTabLabel);
}
@@ -701,7 +701,7 @@ void OpenRGBDialog::AddSettingsPage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* SettingsTabLabel = new TabLabel(OpenRGBFont::options, (char *)"General Settings", (char *)context, true);
TabLabel* SettingsTabLabel = new TabLabel(OpenRGBFont::options, (char *)QT_TR_NOOP("General Settings"), (char *)context, true);
ui->SettingsTabBar->tabBar()->setTabButton(ui->SettingsTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SettingsTabLabel);
}
@@ -718,7 +718,7 @@ void OpenRGBDialog::AddManualDevicesSettingsPage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* SettingsTabLabel = new TabLabel(OpenRGBFont::bulb, (char *)"Manually Added Devices", (char *)context, true);
TabLabel* SettingsTabLabel = new TabLabel(OpenRGBFont::bulb, (char *)QT_TR_NOOP("Manually Added Devices"), (char *)context, true);
ui->SettingsTabBar->tabBar()->setTabButton(ui->SettingsTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SettingsTabLabel);
}
@@ -881,7 +881,7 @@ void OpenRGBDialog::AddI2CToolsPage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* SMBusToolsTabLabel = new TabLabel(OpenRGBFont::toolbox, (char *)"SMBus Tools", (char *)context, true);
TabLabel* SMBusToolsTabLabel = new TabLabel(OpenRGBFont::toolbox, (char *)QT_TR_NOOP("SMBus Tools"), (char *)context, true);
ui->InformationTabBar->tabBar()->setTabButton(ui->InformationTabBar->tabBar()->count() - 1, QTabBar::LeftSide, SMBusToolsTabLabel);
}
@@ -2088,7 +2088,7 @@ void OpenRGBDialog::AddConsolePage()
/*-----------------------------------------------------*\
| Create the tab label |
\*-----------------------------------------------------*/
TabLabel* ConsoleTabLabel = new TabLabel(OpenRGBFont::terminal, (char *)"Log Console", (char *)context, true);
TabLabel* ConsoleTabLabel = new TabLabel(OpenRGBFont::terminal, (char *)QT_TR_NOOP("Log Console"), (char *)context, true);
ui->InformationTabBar->tabBar()->setTabButton(ui->InformationTabBar->tabBar()->count() - 1, QTabBar::LeftSide, ConsoleTabLabel);
}
@@ -91,13 +91,13 @@ OpenRGBDynamicSettingsWidget::OpenRGBDynamicSettingsWidget(std::string key, nloh
/*---------------------------------------------*\
| Create the groupbox and layout |
\*---------------------------------------------*/
QGroupBox* groupbox = new QGroupBox(QString::fromStdString(title));
left_widget = (QGroupBox*)new QGroupBox(QString::fromStdString(title));
QVBoxLayout* groupbox_layout = new QVBoxLayout();
nlohmann::json& properties_json = schema["properties"];
std::vector<ordered_settings_t> setting_entries;
nlohmann::json& settings_json = settings[key];
groupbox->setLayout(groupbox_layout);
((QGroupBox*)left_widget)->setLayout(groupbox_layout);
/*---------------------------------------------*\
| Loop through the schema and build a vector |
@@ -152,7 +152,9 @@ OpenRGBDynamicSettingsWidget::OpenRGBDynamicSettingsWidget(std::string key, nloh
groupbox_layout->addWidget(item_widget);
}
layout->addWidget(groupbox);
layout->addWidget((QGroupBox*)left_widget);
UpdateLabels();
}
/*-------------------------------------------------*\
| Otherwise, create a single settings entry |
@@ -483,6 +485,15 @@ void OpenRGBDynamicSettingsWidget::UpdateLabels()
((QLabel*)left_widget)->setText(app->translate("Settings", title.c_str()) + ":");
}
setToolTip(app->translate("Settings", description.c_str()));
}
else
{
if(left_widget)
{
((QGroupBox*)left_widget)->setTitle(app->translate("Settings", title.c_str()));
}
setToolTip(app->translate("Settings", description.c_str()));
}
}
+2 -2
View File
@@ -51,7 +51,7 @@
<string notr="true">Icon</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
@@ -183,7 +183,7 @@
<item row="6" column="2">
<widget class="QLabel" name="APIVersionValue">
<property name="text">
<string>API Version Value</string>
<string notr="true">API Version Value</string>
</property>
</widget>
</item>
@@ -19,6 +19,26 @@ OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) :
ui(new Ui::OpenRGBSoftwareInfoPage)
{
ui->setupUi(this);
UpdateInterface();
}
OpenRGBSoftwareInfoPage::~OpenRGBSoftwareInfoPage()
{
delete ui;
}
void OpenRGBSoftwareInfoPage::changeEvent(QEvent *event)
{
if(event->type() == QEvent::LanguageChange)
{
ui->retranslateUi(this);
UpdateInterface();
}
}
void OpenRGBSoftwareInfoPage::UpdateInterface()
{
if(ResourceManager::get()->IsLocalClient())
{
ui->ModeValue->setText(tr("Local Client"));
@@ -37,21 +57,8 @@ OpenRGBSoftwareInfoPage::OpenRGBSoftwareInfoPage(QWidget *parent) :
ui->GitBranchValue->setText(GIT_BRANCH);
ui->OsVersionValue->setText(QSysInfo::prettyProductName());
#if(HID_HOTPLUG_ENABLED)
ui->HIDHotplugValue->setText("Supported");
ui->HIDHotplugValue->setText(tr("Supported"));
#else
ui->HIDHotplugValue->setText("Unsupported");
ui->HIDHotplugValue->setText(tr("Unsupported"));
#endif
}
OpenRGBSoftwareInfoPage::~OpenRGBSoftwareInfoPage()
{
delete ui;
}
void OpenRGBSoftwareInfoPage::changeEvent(QEvent *event)
{
if(event->type() == QEvent::LanguageChange)
{
ui->retranslateUi(this);
}
}
@@ -27,6 +27,8 @@ public:
private:
Ui::OpenRGBSoftwareInfoPage *ui;
void UpdateInterface();
private slots:
void changeEvent(QEvent *event);
};
+1658 -372
View File
File diff suppressed because it is too large. Load diff
+1675 -314
View File
File diff suppressed because it is too large. Load diff
+1646 -371
View File
File diff suppressed because it is too large. Load diff
+1176 -383
View File
File diff suppressed because it is too large. Load diff
+1176 -383
View File
File diff suppressed because it is too large. Load diff
+1082 -289
View File
File diff suppressed because it is too large. Load diff
+1673 -314
View File
File diff suppressed because it is too large. Load diff
+1737 -390
View File
File diff suppressed because it is too large. Load diff
+1648 -389
View File
File diff suppressed because it is too large. Load diff
+1666 -295
View File
File diff suppressed because it is too large. Load diff
+1648 -348
View File
File diff suppressed because it is too large. Load diff
+1647 -346
View File
File diff suppressed because it is too large. Load diff
+1647 -383
View File
File diff suppressed because it is too large. Load diff
+1672 -317
View File
File diff suppressed because it is too large. Load diff
+1638 -390
View File
File diff suppressed because it is too large. Load diff
+1666 -295
View File
File diff suppressed because it is too large. Load diff
+1208 -224
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="en_US">
<TS version="2.1" language="tr_TR">
<context>
<name>DMXSettingsEntry</name>
<message>
+1673 -314
View File
File diff suppressed because it is too large. Load diff
+1668 -321
View File
File diff suppressed because it is too large. Load diff
+1629 -453
View File
File diff suppressed because it is too large. Load diff