diff --git a/mea.pro b/mea.pro index 7f3fe3e2..e5e1b069 100644 --- a/mea.pro +++ b/mea.pro @@ -4,8 +4,6 @@ SUBDIRS = libnymea-common mea libnymea-common.subdir = libnymea-common mea.subdir = mea -mea.depends = libnymea-common - # Building a Windows installer: # Install Visual Studio, Qt and NSIS on Windows. Make sure NSIS is in your path. @@ -30,5 +28,10 @@ wininstaller.commands += binarycreator -c $${PACKAGE_DIR}\config\config.xml -p $ QMAKE_EXTRA_TARGETS += wininstaller -target.depends += wininstaller +TRANSLATIONS += $$files(mea/translations/*.ts, true) +lrelease.commands = lrelease $$_FILE_ +lrelease-make_first.commands = lrelease $$_FILE_ +lrelease-qmake_all.commands = lrelease $$_FILE_ +QMAKE_EXTRA_TARGETS += lrelease lrelease-make_first lrelease-qmake_all lrelease-install_subtargets +mea.depends = libnymea-common lrelease diff --git a/mea/main.cpp b/mea/main.cpp index f99dad3a..4c68bfce 100644 --- a/mea/main.cpp +++ b/mea/main.cpp @@ -82,6 +82,16 @@ int main(int argc, char *argv[]) applicationFont.setWeight(QFont::Normal); QGuiApplication::setFont(applicationFont); + QTranslator qtTranslator; + qtTranslator.load("qt_" + QLocale::system().name(), + QLibraryInfo::location(QLibraryInfo::TranslationsPath)); + application.installTranslator(&qtTranslator); + + QTranslator meaTranslator; + qDebug() << "Loading translation file:" << ":/translations/mea-" + QLocale::system().name(); + meaTranslator.load(":/translations/mea-" + QLocale::system().name()); + application.installTranslator(&meaTranslator); + const char uri[] = "Mea"; qDebug() << "Running on" << QSysInfo::machineHostName() << QSysInfo::prettyProductName() << QSysInfo::productType() << QSysInfo::productVersion(); diff --git a/mea/resources.qrc b/mea/resources.qrc index d920b536..a1f26b81 100644 --- a/mea/resources.qrc +++ b/mea/resources.qrc @@ -160,5 +160,7 @@ ui/images/nm-signal-100.svg ui/images/nm-signal-100-secure.svg ui/images/network-vpn.svg + translations/mea-de_DE.qm + translations/mea-en_US.qm diff --git a/mea/translations/mea-de_DE.ts b/mea/translations/mea-de_DE.ts new file mode 100644 index 00000000..1c2c5e14 --- /dev/null +++ b/mea/translations/mea-de_DE.ts @@ -0,0 +1,1201 @@ + + + + + ApplicationWindow + + Maveo Pro Box Dashboard + + + + + BluetoothDevice + + Connecting to %1... + + + + Connected to %1 + + + + Disconnecting from %1... + + + + Discovering services of %1... + + + + %1 connected and discovered. + + + + %1 disconnected. + + + + + BluetoothDiscoveryPage + + Bluetooth discovery + + + + + BluetoothLoadingPage + + Establish bluetooth connection + + + + Initialize services... + + + + + ButtonDevicePage + + This button has been pressed %1 times in the last 24 hours. + + + + + ComposeEventDescriptorPage + + Select event + + + + A specific thing + + + + A group of things + + + + + ConfigureThingPage + + Delete Thing + + + + Rename Thing + + + + Remove device error: %1 + + + + Thing parameters + + + + This thing is currently used in one or more rules: + + + + Remove all those rules + + + + Update rules, removing this thing + + + + Don't remove this thing + + + + + ConnectPage + + Connect %1 + + + + Manual connect + + + + Wireless setup + + + + Oh, look! + Oh, sieh an! + + + Just a moment... + Nur einen Moment... + + + Uh oh + Oh oh + + + There are %1 %2 boxes in your network! Which one would you like to use? + Es befinden sich %1 %2 Boxen in Ihrem Netzwerk! Welche möchten Sie benutzen? + + + We haven't found any %1 boxes in your network yet. + Wir haben noch keine %1 Boxen in Ihrem Netzwerk gefunden. + + + There doesn't seem to be a %1 box installed in your network. Please make sure your %1 box is correctly set up and connected. + Es scheint keine %1 box in Ihrem Netzwerk installiert zu sein. Bitte stellen Sie sicher, dass Ihre %1 box korrekt installiert und verbunden ist. + + + Searching for %1 boxes... + + + + Not the ones you're looking for? We're looking for more! + + + + Manual connection + + + + Protocol + + + + TCP + + + + Websocket + + + + Address: + + + + Port: + + + + Encrypted connection: + + + + Connect + + + + Trying to connect... + + + + Cancel + + + + Warning + + + + The authenticity of this %1 box cannot be verified. + + + + If this is the first time you connect to this box, this is expected. Once you trust a box, you should never see this message again for that one. If you see this message multiple times for the same box, something suspicious is going on! + + + + Fingerprint: + + + + Do you want to trust this device? + + + + + DevicePageBase + + Thing is not connected! + + + + Thing runs out of battery! + + + + + DeviceRulesPage + + Magic involving %1 + + + + There's no magic involving %1. + + + + Add some using the wizard stick! + + + + + DevicesPage + + All off + + + + %1 on + + + + + EditDevicesPage + + Configure Things + + + + + EditRulePage + + New rule + + + + Rule name + + + + This rule is enabled + + + + Events triggering this rule + + + + %1 - %2 + + + + Add an event... + + + + Add another event... + + + + Conditions to be met + + + + Add a condition + + + + Active state enter actions + + + + Actions to execute + + + + value from event + + + + Add an action... + + + + Add another action... + + + + Active state exit actions + + + + + EditStateEvaluatorPage + + Conditions + + + + + ErrorDialog + + Error + + + + + GenericDeviceListPage + + My %1 things + + + + All my things + + + + + GenericTypeLogView + + Data: + + + + + Graph + + Sorry, there isn't enough data to display a graph here yet! + + + + + InputTriggerDevicePage + + This event has appeared %1 times in the last 24 hours. + + + + + InterfacesModels + + Battery level + + + + Battery level changed + + + + Battery critical + + + + Battery critical changed + + + + + LightsDeviceListPage + + Lights + + + + All + + + + off + + + + + LogViewerPage + + Log viewer + + + + Time + + + + Type + + + + Thing + + + + Object + + + + Value + + + + %1 Server + + + + Active changed + + + + + LoginPage + + Welcome to %1! + + + + Sorry, that wasn't right. Try again please. + + + + The email you've entered isn't valid. + + + + The password you've chose is too weak. + + + + An error happened creating the user. + + + + In order to use your %1 system, please enter your email address and set a password for your nymea box. + + + + In order to use your %1 system, please log in. + + + + Your e-mail address: + + + + Password: + + + + Confirm password: + + + + This password isn't long enought to be secure, add some more characters please. + + + + The passwords don't match. + + + + OK + + + + + MainPage + + My things + + + + Configure things + + + + Add a new thing + + + + Magic + + + + Settings + + + + System information + + + + Loading data... + + + + Welcome to %1! + + + + There are no things set up yet. You can start with adding your things by using the menu on the upper left and selecting "Add a new thing". + + + + + NewDeviceWizard + + Set up new thing + + + + Searching for things... + + + + Too bad... + + + + No things of this kind could be found... + + + + Make sure your things are set up and connected, try searching again or go back and pick a different kind of thing. + + + + Try again! + + + + + NotificationsView + + Send a notification now: + + + + Title + + + + Text + + + + Send + + + + + NymeaConnection + + Common Name: + + + + Oragnisation: + + + + Locality: + + + + Oragnisational Unit: + + + + Country: + + + + + ParamDescriptorDelegate + + is + + + + is not + + + + is greater + + + + is smaller + + + + is greater or equal + + + + is smaller or equal + + + + + PluginParamsPage + + %1 settings + + + + Error saving params: + + + + + PluginsPage + + Plugins + + + + + PushButtonAuthPage + + Welcome to %1! + + + + Sorry, something went wrong during the setup. Try again please. + + + + Authentication required + + + + Please press the button on your %1 box to authenticate this device. + + + + + SelectActionPage + + Switch lights... + + + + Control media playback... + + + + Mute media playback... + + + + Notify me... + + + + Manually configure an action... + + + + Select device + + + + Select action + + + + params + + + + OK + + + + Switch lights + + + + Set selected lights power to + + + + Send notification + + + + Notification text + + + + + SelectEventDescriptorPage + + When it's freezing... + + + + When the device runs out of battery... + + + + When it starts raining... + + + + + SelectEventDescriptorParamsPage + + Only consider event if + + + + + SelectRuleActionParamsPage + + Use static value as parameter + + + + Use event parameter + + + + OK + + + + + SelectStateDescriptorParamsPage + + params + + + + OK + + + + + SelectThingPage + + Select a thing + + + + A specific thing + + + + A group of things + + + + + SensorView + + 6 h + + + + 24 h + + + + 7 d + + + + + SettingsPage + + Settings + + + + Application + + + + View mode + + + + Windowed + + + + Maximized + + + + Fullscreen + + + + Return to home on idle + + + + Graph style + + + + Bars + + + + Lines + + + + System + + + + Server name + + + + Debug server enabled + + + + Open debug interface + + + + Plugins + + + + Style changed + + + + The application needs to be restarted for style changes to take effect. + + + + + SimpleStateEvaluatorDelegate + + Press to edit condition + + + + %1: %2 %3 %4 + + + + %1 %2: %3 %4 %5%6 + + + + + StateEvaluatorDelegate + + and all of those + + + + or any of those + + + + Add a condition + + + + + StateLogPage + + History + + + + %1, %2 has changed %3 times in the last 24h + + + + + SystemInfoPage + + System information + + + + Connected to: + + + + Disconnect + + + + Log viewer + + + + + WeatherView + + N + + + + NE + + + + E + + + + SE + + + + S + + + + SW + + + + W + + + + NW + + + + + WirelessControlerPage + + Wireless network + + + + Unknown status. + + + + Asleep. + + + + Disconnected. + + + + Disconnecting... + + + + Connecting... + + + + Connected local. + + + + Connected site. + + + + Online. + + + + Network unmanaged. + + + + Network unavailable. + + + + Prepare connection... + + + + Configure network... + + + + Authentication needed + + + + Configuration IP... + + + + Check IP... + + + + Secondaries... + + + + Network connected. + + + + Network disconnecting... + + + + Network connection failed. + + + + Disconnect + + + + Wireless authentication + + + + Please enter the password for the Wifi network. + + + + Show password + + + + Hide password + + + + Connect + + + + Network settings + + + + Networking + + + + Wireless networking + + + + Bluetooth device information + + + + System UUID + + + + Manufacturer + + + + Software revision + + + + Firmware revision + + + + Hardware revision + + + + + WirelessSetupManager + + Invalid value. + + + + There is no networkmanager available on the device. + + + + There is no wireless device available on the device. + + + + Invalid command. + + + + Invalid parameters. + + + + The wireless networking is disabled on the device. + + + + The networking is disabled on the device. + + + + + main + + Lighting + + + + Weather + + + + Sensors + + + + Media + + + + Switches + + + + Gateways + + + + Notifications + + + + Temperature + + + + Humidity + + + + Incoming Events + + + + Events + + + + Connection error + + + + Sorry, the version of the %1 box you are trying to connect to is too old. This app requires at least version %2 but the %1 box only supports %3 + + + + OK + + + + diff --git a/translations/mea-en_US.ts b/mea/translations/mea-en_US.ts similarity index 56% rename from translations/mea-en_US.ts rename to mea/translations/mea-en_US.ts index 0e2c1863..3747383d 100644 --- a/translations/mea-en_US.ts +++ b/mea/translations/mea-en_US.ts @@ -2,50 +2,35 @@ - ActionDelegateFallback + ApplicationWindow - - Note: This action type has not been implemented yet - - - - - ActionDelegateNoParams - - - Do it! + Maveo Pro Box Dashboard BluetoothDevice - Connecting to %1... - Connected to %1 - Disconnecting from %1... - Discovering services of %1... - %1 connected and discovered. - %1 disconnected. @@ -53,7 +38,6 @@ BluetoothDiscoveryPage - Bluetooth discovery @@ -61,12 +45,10 @@ BluetoothLoadingPage - - Establish bluetooth LE connection + Establish bluetooth connection - Initialize services... @@ -74,51 +56,21 @@ ButtonDevicePage - - - When this switch is pressed... - - - - - Multiple actions - - - - - %1: Set %2 to %3 - - - - - %1: Call %2 - - - - - No actions configured for this switch. You may add some actions for this switch by using the "Add action" button at the bottom. - - - - - Add an action + This button has been pressed %1 times in the last 24 hours. ComposeEventDescriptorPage - Select event - A specific thing - A group of things @@ -126,140 +78,141 @@ ConfigureThingPage - Delete Thing - Rename Thing - - Remove device error: + Remove device error: %1 - Thing parameters + + This thing is currently used in one or more rules: + + + + Remove all those rules + + + + Update rules, removing this thing + + + + Don't remove this thing + + ConnectPage - - Connect nymea + Connect %1 - Manual connect - Wireless setup - Oh, look! - + Just a moment... + + + Uh oh - - There are %1 nymea boxes in your network! Which one would you like to use? + There are %1 %2 boxes in your network! Which one would you like to use? - - There doesn't seem to be a nymea box installed in your network. Please make sure your nymea box is correctly set up and connected. + We haven't found any %1 boxes in your network yet. - - Searching for nymea boxes... + There doesn't seem to be a %1 box installed in your network. Please make sure your %1 box is correctly set up and connected. + + + + Searching for %1 boxes... - Not the ones you're looking for? We're looking for more! - - Manual connect to nymea + Manual connection + + + + Protocol - TCP - Websocket - Address: - Port: - Encrypted connection: - Connect - - Connecting to your nymea box... + Trying to connect... - Cancel - Warning - - The authenticity of this nymea box cannot be verified. + The authenticity of this %1 box cannot be verified. - If this is the first time you connect to this box, this is expected. Once you trust a box, you should never see this message again for that one. If you see this message multiple times for the same box, something suspicious is going on! - Fingerprint: - Do you want to trust this device? @@ -267,12 +220,10 @@ DevicePageBase - Thing is not connected! - Thing runs out of battery! @@ -280,17 +231,14 @@ DeviceRulesPage - Magic involving %1 - There's no magic involving %1. - Add some using the wizard stick! @@ -298,12 +246,10 @@ DevicesPage - All off - %1 on @@ -311,7 +257,6 @@ EditDevicesPage - Configure Things @@ -319,81 +264,62 @@ EditRulePage - New rule - Rule name - This rule is enabled - Events triggering this rule - - - %1 - %2 - Add an event... - Add another event... - Conditions to be met - Add a condition - Active state enter actions - Actions to execute - value from event - - Add an action... - - Add another action... - Active state exit actions @@ -401,7 +327,6 @@ EditStateEvaluatorPage - Conditions @@ -409,7 +334,6 @@ ErrorDialog - Error @@ -417,12 +341,10 @@ GenericDeviceListPage - My %1 things - All my things @@ -430,7 +352,6 @@ GenericTypeLogView - Data: @@ -438,7 +359,6 @@ Graph - Sorry, there isn't enough data to display a graph here yet! @@ -446,7 +366,6 @@ InputTriggerDevicePage - This event has appeared %1 times in the last 24 hours. @@ -454,22 +373,18 @@ InterfacesModels - Battery level - Battery level changed - Battery critical - Battery critical changed @@ -477,17 +392,14 @@ LightsDeviceListPage - Lights - All - off @@ -495,42 +407,34 @@ LogViewerPage - Log viewer - Time - Type - Thing - Object - Value - - Nymea Server + %1 Server - Active changed @@ -538,67 +442,54 @@ LoginPage - - Welcome to nymea! + Welcome to %1! - Sorry, that wasn't right. Try again please. - The email you've entered isn't valid. - The password you've chose is too weak. - An error happened creating the user. - - In order to use your nymea system, please enter your email address and set a password for your nymea box. + In order to use your %1 system, please enter your email address and set a password for your nymea box. - - In order to use your nymea system, please log in. + In order to use your %1 system, please log in. - Your e-mail address: - Password: - Confirm password: - This password isn't long enought to be secure, add some more characters please. - The passwords don't match. - OK @@ -606,47 +497,38 @@ MainPage - My things - Configure things - Add a new thing - Magic - Settings - System information - Loading data... - - Welcome to nymea! + Welcome to %1! - There are no things set up yet. You can start with adding your things by using the menu on the upper left and selecting "Add a new thing". @@ -654,119 +536,45 @@ NewDeviceWizard - Set up new thing - Searching for things... - Too bad... - No things of this kind could be found... - Make sure your things are set up and connected, try searching again or go back and pick a different kind of thing. - Try again! - - NewThingMagicPage - - - - When it's freezing... - - - - - When the device runs out of battery... - - - - - When it starts raining... - - - - - Switch light when... - - - - - Dim light when... - - - - - Set light color when... - - - - - Pause playback when... - - - - - Resume playback when... - - - - - Set volume... - - - - - Mute when... - - - - - Unmute when... - - - - - Notify me when... - - - NotificationsView - Send a notification now: - Title - Text - Send @@ -774,68 +582,49 @@ NymeaConnection - Common Name: - Oragnisation: - Locality: - Oragnisational Unit: - Country: - ParamDescriptorDelegateBase + ParamDescriptorDelegate - - - is - - - is not - - is greater - - is smaller - - is greater or equal - - is smaller or equal @@ -843,12 +632,10 @@ PluginParamsPage - %1 settings - Error saving params: @@ -856,7 +643,6 @@ PluginsPage - Plugins @@ -864,92 +650,73 @@ PushButtonAuthPage - - Welcome to nymea! + Welcome to %1! - Sorry, something went wrong during the setup. Try again please. - Authentication required - - Please press the button on your nymea box to authenticate this device. + Please press the button on your %1 box to authenticate this device. SelectActionPage - Switch lights... - Control media playback... - Mute media playback... - Notify me... - Manually configure an action... - Select device - Select action - params - - - OK - Switch lights - Set selected lights power to - Send notification - Notification text @@ -957,17 +724,14 @@ SelectEventDescriptorPage - When it's freezing... - When the device runs out of battery... - When it starts raining... @@ -975,7 +739,6 @@ SelectEventDescriptorParamsPage - Only consider event if @@ -983,17 +746,14 @@ SelectRuleActionParamsPage - Use static value as parameter - Use event parameter - OK @@ -1001,12 +761,10 @@ SelectStateDescriptorParamsPage - params - OK @@ -1014,17 +772,14 @@ SelectThingPage - Select a thing - A specific thing - A group of things @@ -1032,17 +787,14 @@ SensorView - 6 h - 24 h - 7 d @@ -1050,100 +802,85 @@ SettingsPage - Settings - Application - View mode - Windowed - Maximized - Fullscreen - - Dark theme - - - - Return to home on idle - Graph style - Bars - Lines - System - Server name - Debug server enabled - Open debug interface - Plugins + + Style changed + + + + The application needs to be restarted for style changes to take effect. + + SimpleStateEvaluatorDelegate - Press to edit condition - %1: %2 %3 %4 - %1 %2: %3 %4 %5%6 @@ -1151,17 +888,14 @@ StateEvaluatorDelegate - and all of those - or any of those - Add a condition @@ -1169,12 +903,10 @@ StateLogPage - History - %1, %2 has changed %3 times in the last 24h @@ -1182,22 +914,18 @@ SystemInfoPage - System information - Connected to: - Disconnect - Log viewer @@ -1205,43 +933,34 @@ WeatherView - - N - NE - E - SE - S - SW - W - NW @@ -1249,72 +968,142 @@ WirelessControlerPage - Wireless network - - Network status: + Unknown status. - - Wireless status: + Asleep. + + + + Disconnected. + + + + Disconnecting... + + + + Connecting... + + + + Connected local. + + + + Connected site. + + + + Online. + + + + Network unmanaged. + + + + Network unavailable. + + + + Prepare connection... + + + + Configure network... + + + + Authentication needed + + + + Configuration IP... + + + + Check IP... + + + + Secondaries... + + + + Network connected. + + + + Network disconnecting... + + + + Network connection failed. + + + + Disconnect - Wireless authentication - Please enter the password for the Wifi network. - + Show password + + + + Hide password + + + Connect - - Network manager settings + Network settings - Networking - Wireless networking - + Bluetooth device information + + + System UUID - Manufacturer - Software revision - Firmware revision - Hardware revision @@ -1322,178 +1111,89 @@ WirelessSetupManager - - - Unknown + Invalid value. - - Asleep + There is no networkmanager available on the device. - - - Disconnected + There is no wireless device available on the device. - - Disconnecting... + Invalid command. - - Connecting... + Invalid parameters. - - Connected local. + The wireless networking is disabled on the device. - - Connected site. - - - - - Connected global. - - - - - - - - - - - - Unmanaged - - - - - Unavailable - - - - - Prepare - - - - - Configure - - - - - Authentication needed - - - - - IP configuration - - - - - IP check - - - - - Secondaries - - - - - Connected - - - - - Deactivating - - - - - failed + The networking is disabled on the device. main - Lighting - Weather - Sensors - Media - Switches - Gateways - Notifications - Temperature - Humidity - Incoming Events - Events - Connection error - - Sorry, the version of the nymea box you are trying to connect to is too old. This app requires at least version %1 but the nymea box only supports %2 + Sorry, the version of the %1 box you are trying to connect to is too old. This app requires at least version %2 but the %1 box only supports %3 - OK