diff --git a/OpenRGB.pro b/OpenRGB.pro index 41402756..a84e801b 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -1159,12 +1159,14 @@ contains(QMAKE_PLATFORM, freebsd) { RESOURCES += \ qt/resources.qrc \ -TRANSLATIONS += \ - qt/i18n/OpenRGB_en.ts \ - qt/i18n/OpenRGB_de.ts \ - qt/i18n/OpenRGB_es.ts \ - qt/i18n/OpenRGB_fr.ts \ - qt/i18n/OpenRGB_ru.ts \ +TRANSLATIONS += \ + qt/i18n/OpenRGB_en.ts \ + qt/i18n/OpenRGB_en_AU.ts \ + qt/i18n/OpenRGB_en_GB.ts \ + qt/i18n/OpenRGB_de.ts \ + qt/i18n/OpenRGB_es.ts \ + qt/i18n/OpenRGB_fr.ts \ + qt/i18n/OpenRGB_ru.ts \ FORMS += \ qt/OpenRGBClientInfoPage.ui \ diff --git a/main.cpp b/main.cpp index af1cb847..04f14381 100644 --- a/main.cpp +++ b/main.cpp @@ -356,29 +356,24 @@ int main(int argc, char* argv[]) \*---------------------------------------------------------*/ QTranslator translator; - QString defaultLocale = QLocale::system().name(); - defaultLocale.truncate(defaultLocale.lastIndexOf('_')); - - // For local tests without changing the PC locale, override this value. - //defaultLocale="fr"; - - QLocale locale = QLocale(defaultLocale); + QLocale locale = QLocale(QLocale::system()); QLocale::setDefault(locale); - QString languageName = QLocale::languageToString(locale.language()); + // For local tests without changing the PC locale, override this value. + //locale = QLocale(QLocale::French, QLocale::France); a.removeTranslator(&translator); QString path = ":/i18n/"; - if(translator.load(path + QString("OpenRGB_%1.qm").arg(defaultLocale))) + if(translator.load(path + QString("OpenRGB_%1.qm").arg(locale.name()))) { a.installTranslator(&translator); - printf("Current Language changed to %s\n", languageName.toStdString().c_str()); + printf("Current Language changed to %s\n", locale.name().toStdString().c_str()); } else { - printf("Failed to load translation file for default locale '%s'\n", defaultLocale.toStdString().c_str()); + printf("Failed to load translation file for default locale '%s'\n", locale.name().toStdString().c_str()); } /*---------------------------------------------------------*\ diff --git a/qt/i18n/OpenRGB_en_AU.ts b/qt/i18n/OpenRGB_en_AU.ts new file mode 100644 index 00000000..f8b9384e --- /dev/null +++ b/qt/i18n/OpenRGB_en_AU.ts @@ -0,0 +1,1284 @@ + + + + + DetectorTableModel + + Name + + + + Enabled + + + + + OpenRGBClientInfoPageUi + + Client info page + + + + Port: + + + + Connect + + + + IP: + + + + + OpenRGBConsolePageUi + + Log console page + + + + Log level + + + + Refresh logs + + + + Clear log + + + + + OpenRGBDeviceInfoPageUi + + Device info page + + + + Name: + + + + Vendor: + + + + Type: + + + + Description: + + + + Version: + + + + Location: + + + + Serial: + + + + + OpenRGBDevicePageUi + + Device page + + + + G: + + + + H: + + + + Speed: + + + + Random + + + + B: + + + + LED: + + + + Mode-Specific + + + + R: + + + + Dir: + + + + S: + + + + Select All + + + + Per-LED + + + + Zone: + + + + <html><head/><body><p align="justify">Sets all devices to<br/><b>Static</b> mode and<br/>applies the selected color.</p></body></html> + <html><head/><body><p align="justify">Sets all devices to<br/><b>Static</b> mode and<br/>applies the selected colour.</p></body></html> + + + Apply All Devices + + + + Colors: + Colours: + + + V: + + + + Apply Colors To Selection + Apply Colours To Selection + + + Resize + + + + Mode: + + + + Brightness: + + + + Save To Device + + + + + OpenRGBDialog2Ui + + OpenRGB + + + + Devices + + + + Information + + + + Settings + + + + Toggle LED View + + + + Rescan Devices + + + + Save Profile + + + + Delete Profile + + + + Load Profile + + + + OpenRGB is detecting devices... + + + + Cancel + + + + Save Profile As... + + + + Save Profile with custom name + + + + + OpenRGBDialogUi + + OpenRGB + + + + Device + + + + Red + + + + Green + + + + Blue + + + + Mode + + + + Set All + + + + Set Device + + + + Zone + + + + Set Zone + + + + Set LED + + + + LED + + + + + OpenRGBE131SettingsEntryUi + + E131 settings entry + + + + Start Channel: + + + + Number of LEDs: + + + + Start Universe: + + + + Name: + + + + Matrix Order: + + + + Matrix Height: + + + + Matrix Width: + + + + Type: + + + + IP (Unicast): + + + + Universe Size: + + + + Keepalive Time: + + + + RGB Order: + + + + + OpenRGBE131SettingsPageUi + + E131 settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBPhilipsHueSettingsEntryUi + + Philips Hue settings entry + + + + IP: + + + + Entertainment Mode: + + + + Username: + + + + Client Key: + + + + Unpair Bridge + + + + MAC: + + + + + OpenRGBPhilipsHueSettingsPageUi + + Philips Hue settings page + + + + Remove + + + + Add + + + + Save + + + + After adding a Hue entry and saving, restart OpenRGB and press the Sync button on your Hue bridge to pair it. + + + + + OpenRGBPhilipsWizSettingsEntryUi + + Philips WIZ settings entry + + + + IP: + + + + + OpenRGBPhilipsWizSettingsPageUi + + Philips WIZ settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBPluginContainerUi + + Plugin container + + + + + OpenRGBPluginsEntryUi + + Plugins entry + + + + Version: + + + + Name: + + + + Description: + + + + URL: + + + + Path: + + + + Enabled + + + + Commit: + + + + Icon + + + + + OpenRGBPluginsPageUi + + Plugins page + + + + Install Plugin + + + + Remove Plugin + + + + + OpenRGBProfileSaveDialogUi + + Profile Name + + + + New Profile Name: + + + + + OpenRGBQMKORGBSettingsEntryUi + + QMK settings entry + + + + Name: + + + + USB PID: + + + + USB VID: + + + + + OpenRGBQMKORGBSettingsPageUi + + QMK Settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBSerialSettingsEntryUi + + Serial settings entry + + + + Baud: + + + + Name: + + + + Number of LEDs: + + + + Port: + + + + Protocol: + + + + + OpenRGBSerialSettingsPageUi + + Serial settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBServerInfoPageUi + + Server info page + + + + Stop Server + + + + Server Port: + + + + Start Server + + + + Server Status: + + + + Offline + + + + Connected Clients: + + + + + OpenRGBSettingsPageUi + + Settings page + + + + Load Window Geometry + + + + 90000 + + + + Run zone checks on rescan + + + + Start Server + + + + Start Minimized + Start Minimised + + + User Interface Settings: + + + + Start At Login + + + + Minimize On Close + Minimise On Close + + + Save Geometry On Close + + + + Start Client + + + + Load Profile + + + + Set Server Port + + + + Theme (restart required) + + + + Enable Log Console (restart required) + + + + Custom Arguments + + + + Log Manager Settings: + + + + Start at Login Status + + + + Start At Login Settings: + + + + Open Settings Folder + + + + + OpenRGBSoftwareInfoPageUi + + Software info page + + + + Build Date: + + + + Git Commit ID: + + + + Git Commit Date: + + + + Git Branch: + + + + Version: + + + + Gitlab page + + + + Website + + + + <a href="https://openrgb.org">https://openrgb.org</a> + + + + <a href="https://gitlab.com/CalcProgrammer1/OpenRGB">https://gitlab.com/CalcProgrammer1/OpenRGB</a> + + + + + OpenRGBSupportedDevicesPageUi + + Supported devices + + + + Filter: + + + + Enable/Disable all + + + + Apply changes + + + + + OpenRGBSystemInfoPageUi + + System info page + + + + SMBus Adapters: + + + + Address: + + + + Read Device + + + + SMBus Dumper: + + + + 0x + + + + SMBus Detector: + + + + Detection Mode: + + + + Detect Devices + + + + Dump Device + + + + SMBus Reader: + + + + Addr: + + + + Reg: + + + + Size: + + + + + OpenRGBYeelightSettingsEntryUi + + Yeelight settings entry + + + + IP: + + + + ? + + + + Music Mode: + + + + Override host IP: + + + + Left blank for auto discovering host ip + + + + + OpenRGBYeelightSettingsPageUi + + Yeelight settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBZoneResizeDialogUi + + Resize Zone + + + + + OpenRGBZonesBulkResizerUi + + Zones resizer + + + + <html><head/><body><p>One or more resizable zones have not been configured. Resizable zones are most commonly used for addressable RGB headers where the size of the connected device cannot be detected automatically.</p><p>Please enter the number of LEDs in each zone below.</p><p>For more information about calcuating the correct size, please check <a href="https://openrgb.org/resize"><span style=" text-decoration: underline; color:#0000ff;">this link.</span></a></p></body></html> + + + + Do not show again + + + + Save and close + + + + Ignore + + + + + TabLabelUi + + Tab Label + + + + device name + + + + + Ui::OpenRGBClientInfoPage + + Connected Clients + + + + Protocol Version + + + + Save Connection + + + + Disconnect + + + + + Ui::OpenRGBDevicePage + + Set individual LEDs to static colors. Safe for use with software-driven effects. + Set individual LEDs to static colours. Safe for use with software-driven effects. + + + Set individual LEDs to static colors. Not safe for use with software-driven effects. + Set individual LEDs to static colours. Not safe for use with software-driven effects. + + + Sets the entire device or a zone to a single color. + Sets the entire device or a zone to a single colour. + + + Gradually fades between fully off and fully on. + + + + Abruptly changes between fully off and fully on. + + + + Gradually cycles through the entire color spectrum. All lights on the device are the same color. + Gradually cycles through the entire colour spectrum. All lights on the device are the same colour. + + + Gradually cycles through the entire color spectrum. Produces a rainbow pattern that moves. + Gradually cycles through the entire colour spectrum. Produces a rainbow pattern that moves. + + + Flashes lights when keys or buttons are pressed. + + + + Entire Device + + + + Entire Zone + + + + Left + + + + Right + + + + Up + + + + Down + + + + Horizontal + + + + Vertical + + + + Saved To Device + + + + Save To Device + + + + Saving Not Supported + + + + All Zones + + + + Mode Specific + + + + + Ui::OpenRGBDialog2 + + Show/Hide + + + + Profiles + + + + Quick Colors + Quick Colours + + + Red + + + + Yellow + + + + Green + + + + Cyan + + + + Blue + + + + Magenta + + + + White + + + + Lights Off + + + + Exit + + + + Plugins + + + + Software + + + + Supported Devices + + + + General Settings + + + + E1.31 Devices + + + + Philips Hue Devices + + + + Philips Wiz Devices + + + + OpenRGB QMK Protocol + + + + Serial Devices + + + + Yeelight Devices + + + + SMBus Tools + + + + SDK Client + + + + SDK Server + + + + Delete Profile + + + + Do you really want to delete this profile? + + + + Log Console + + + + + Ui::OpenRGBE131SettingsEntry + + Single + + + + Linear + + + + Matrix + + + + Horizontal Top Left + + + + Horizontal Top Right + + + + Horizontal Bottom Left + + + + Horizontal Bottom Right + + + + Vertical Top Left + + + + Vertical Top Right + + + + Vertical Bottom Left + + + + Vertical Bottom Right + + + + + Ui::OpenRGBPluginsPage + + Install OpenRGB Plugin + + + + Plugin files (*.dll; *.dylib; *.so; *.so.*) + + + + Replace Plugin + + + + A plugin with this filename is already installed. Are you sure you want to replace this plugin? + + + + Remove Plugin + + + + Are you sure you want to remove this plugin? + + + + + Ui::OpenRGBServerInfoPage + + Stopping... + + + + Online + + + + Offline + + + + Client IP + + + + Protocol Version + + + + Client Name + + + + + Ui::OpenRGBSettingsPage + + A problem occurred enabling Start At Login. + + + + + Ui::OpenRGBYeelightSettingsEntry + + Choose an IP... + + + + Choose the correct IP for the host + + + + + Ui::OpenRGBZonesBulkResizer + + Resize the zones + + + + Controller + + + + Zone + + + + Size + + + + diff --git a/qt/i18n/OpenRGB_en_GB.ts b/qt/i18n/OpenRGB_en_GB.ts new file mode 100644 index 00000000..7854f2f0 --- /dev/null +++ b/qt/i18n/OpenRGB_en_GB.ts @@ -0,0 +1,1284 @@ + + + + + DetectorTableModel + + Name + + + + Enabled + + + + + OpenRGBClientInfoPageUi + + Client info page + + + + Port: + + + + Connect + + + + IP: + + + + + OpenRGBConsolePageUi + + Log console page + + + + Log level + + + + Refresh logs + + + + Clear log + + + + + OpenRGBDeviceInfoPageUi + + Device info page + + + + Name: + + + + Vendor: + + + + Type: + + + + Description: + + + + Version: + + + + Location: + + + + Serial: + + + + + OpenRGBDevicePageUi + + Device page + + + + G: + + + + H: + + + + Speed: + + + + Random + + + + B: + + + + LED: + + + + Mode-Specific + + + + R: + + + + Dir: + + + + S: + + + + Select All + + + + Per-LED + + + + Zone: + + + + <html><head/><body><p align="justify">Sets all devices to<br/><b>Static</b> mode and<br/>applies the selected color.</p></body></html> + <html><head/><body><p align="justify">Sets all devices to<br/><b>Static</b> mode and<br/>applies the selected colour.</p></body></html> + + + Apply All Devices + + + + Colors: + Colours: + + + V: + + + + Apply Colors To Selection + Apply Colours To Selection + + + Resize + + + + Mode: + + + + Brightness: + + + + Save To Device + + + + + OpenRGBDialog2Ui + + OpenRGB + + + + Devices + + + + Information + + + + Settings + + + + Toggle LED View + + + + Rescan Devices + + + + Save Profile + + + + Delete Profile + + + + Load Profile + + + + OpenRGB is detecting devices... + + + + Cancel + + + + Save Profile As... + + + + Save Profile with custom name + + + + + OpenRGBDialogUi + + OpenRGB + + + + Device + + + + Red + + + + Green + + + + Blue + + + + Mode + + + + Set All + + + + Set Device + + + + Zone + + + + Set Zone + + + + Set LED + + + + LED + + + + + OpenRGBE131SettingsEntryUi + + E131 settings entry + + + + Start Channel: + + + + Number of LEDs: + + + + Start Universe: + + + + Name: + + + + Matrix Order: + + + + Matrix Height: + + + + Matrix Width: + + + + Type: + + + + IP (Unicast): + + + + Universe Size: + + + + Keepalive Time: + + + + RGB Order: + + + + + OpenRGBE131SettingsPageUi + + E131 settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBPhilipsHueSettingsEntryUi + + Philips Hue settings entry + + + + IP: + + + + Entertainment Mode: + + + + Username: + + + + Client Key: + + + + Unpair Bridge + + + + MAC: + + + + + OpenRGBPhilipsHueSettingsPageUi + + Philips Hue settings page + + + + Remove + + + + Add + + + + Save + + + + After adding a Hue entry and saving, restart OpenRGB and press the Sync button on your Hue bridge to pair it. + + + + + OpenRGBPhilipsWizSettingsEntryUi + + Philips WIZ settings entry + + + + IP: + + + + + OpenRGBPhilipsWizSettingsPageUi + + Philips WIZ settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBPluginContainerUi + + Plugin container + + + + + OpenRGBPluginsEntryUi + + Plugins entry + + + + Version: + + + + Name: + + + + Description: + + + + URL: + + + + Path: + + + + Enabled + + + + Commit: + + + + Icon + + + + + OpenRGBPluginsPageUi + + Plugins page + + + + Install Plugin + + + + Remove Plugin + + + + + OpenRGBProfileSaveDialogUi + + Profile Name + + + + New Profile Name: + + + + + OpenRGBQMKORGBSettingsEntryUi + + QMK settings entry + + + + Name: + + + + USB PID: + + + + USB VID: + + + + + OpenRGBQMKORGBSettingsPageUi + + QMK Settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBSerialSettingsEntryUi + + Serial settings entry + + + + Baud: + + + + Name: + + + + Number of LEDs: + + + + Port: + + + + Protocol: + + + + + OpenRGBSerialSettingsPageUi + + Serial settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBServerInfoPageUi + + Server info page + + + + Stop Server + + + + Server Port: + + + + Start Server + + + + Server Status: + + + + Offline + + + + Connected Clients: + + + + + OpenRGBSettingsPageUi + + Settings page + + + + Load Window Geometry + + + + 90000 + + + + Run zone checks on rescan + + + + Start Server + + + + Start Minimized + Start Minimised + + + User Interface Settings: + + + + Start At Login + + + + Minimize On Close + Minimise On Close + + + Save Geometry On Close + + + + Start Client + + + + Load Profile + + + + Set Server Port + + + + Theme (restart required) + + + + Enable Log Console (restart required) + + + + Custom Arguments + + + + Log Manager Settings: + + + + Start at Login Status + + + + Start At Login Settings: + + + + Open Settings Folder + + + + + OpenRGBSoftwareInfoPageUi + + Software info page + + + + Build Date: + + + + Git Commit ID: + + + + Git Commit Date: + + + + Git Branch: + + + + Version: + + + + Gitlab page + + + + Website + + + + <a href="https://openrgb.org">https://openrgb.org</a> + + + + <a href="https://gitlab.com/CalcProgrammer1/OpenRGB">https://gitlab.com/CalcProgrammer1/OpenRGB</a> + + + + + OpenRGBSupportedDevicesPageUi + + Supported devices + + + + Filter: + + + + Enable/Disable all + + + + Apply changes + + + + + OpenRGBSystemInfoPageUi + + System info page + + + + SMBus Adapters: + + + + Address: + + + + Read Device + + + + SMBus Dumper: + + + + 0x + + + + SMBus Detector: + + + + Detection Mode: + + + + Detect Devices + + + + Dump Device + + + + SMBus Reader: + + + + Addr: + + + + Reg: + + + + Size: + + + + + OpenRGBYeelightSettingsEntryUi + + Yeelight settings entry + + + + IP: + + + + ? + + + + Music Mode: + + + + Override host IP: + + + + Left blank for auto discovering host ip + + + + + OpenRGBYeelightSettingsPageUi + + Yeelight settings page + + + + Add + + + + Remove + + + + Save + + + + + OpenRGBZoneResizeDialogUi + + Resize Zone + + + + + OpenRGBZonesBulkResizerUi + + Zones resizer + + + + <html><head/><body><p>One or more resizable zones have not been configured. Resizable zones are most commonly used for addressable RGB headers where the size of the connected device cannot be detected automatically.</p><p>Please enter the number of LEDs in each zone below.</p><p>For more information about calcuating the correct size, please check <a href="https://openrgb.org/resize"><span style=" text-decoration: underline; color:#0000ff;">this link.</span></a></p></body></html> + + + + Do not show again + + + + Save and close + + + + Ignore + + + + + TabLabelUi + + Tab Label + + + + device name + + + + + Ui::OpenRGBClientInfoPage + + Connected Clients + + + + Protocol Version + + + + Save Connection + + + + Disconnect + + + + + Ui::OpenRGBDevicePage + + Set individual LEDs to static colors. Safe for use with software-driven effects. + Set individual LEDs to static colours. Safe for use with software-driven effects. + + + Set individual LEDs to static colors. Not safe for use with software-driven effects. + Set individual LEDs to static colours. Not safe for use with software-driven effects. + + + Sets the entire device or a zone to a single color. + Sets the entire device or a zone to a single colour. + + + Gradually fades between fully off and fully on. + + + + Abruptly changes between fully off and fully on. + + + + Gradually cycles through the entire color spectrum. All lights on the device are the same color. + Gradually cycles through the entire colour spectrum. All lights on the device are the same colour. + + + Gradually cycles through the entire color spectrum. Produces a rainbow pattern that moves. + Gradually cycles through the entire colour spectrum. Produces a rainbow pattern that moves. + + + Flashes lights when keys or buttons are pressed. + + + + Entire Device + + + + Entire Zone + + + + Left + + + + Right + + + + Up + + + + Down + + + + Horizontal + + + + Vertical + + + + Saved To Device + + + + Save To Device + + + + Saving Not Supported + + + + All Zones + + + + Mode Specific + + + + + Ui::OpenRGBDialog2 + + Show/Hide + + + + Profiles + + + + Quick Colors + Quick Colours + + + Red + + + + Yellow + + + + Green + + + + Cyan + + + + Blue + + + + Magenta + + + + White + + + + Lights Off + + + + Exit + + + + Plugins + + + + Software + + + + Supported Devices + + + + General Settings + + + + E1.31 Devices + + + + Philips Hue Devices + + + + Philips Wiz Devices + + + + OpenRGB QMK Protocol + + + + Serial Devices + + + + Yeelight Devices + + + + SMBus Tools + + + + SDK Client + + + + SDK Server + + + + Delete Profile + + + + Do you really want to delete this profile? + + + + Log Console + + + + + Ui::OpenRGBE131SettingsEntry + + Single + + + + Linear + + + + Matrix + + + + Horizontal Top Left + + + + Horizontal Top Right + + + + Horizontal Bottom Left + + + + Horizontal Bottom Right + + + + Vertical Top Left + + + + Vertical Top Right + + + + Vertical Bottom Left + + + + Vertical Bottom Right + + + + + Ui::OpenRGBPluginsPage + + Install OpenRGB Plugin + + + + Plugin files (*.dll; *.dylib; *.so; *.so.*) + + + + Replace Plugin + + + + A plugin with this filename is already installed. Are you sure you want to replace this plugin? + + + + Remove Plugin + + + + Are you sure you want to remove this plugin? + + + + + Ui::OpenRGBServerInfoPage + + Stopping... + + + + Online + + + + Offline + + + + Client IP + + + + Protocol Version + + + + Client Name + + + + + Ui::OpenRGBSettingsPage + + A problem occurred enabling Start At Login. + + + + + Ui::OpenRGBYeelightSettingsEntry + + Choose an IP... + + + + Choose the correct IP for the host + + + + + Ui::OpenRGBZonesBulkResizer + + Resize the zones + + + + Controller + + + + Zone + + + + Size + + + +