mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[windcentrale] Add default translations (#11596)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
parent
bf5cea09ed
commit
0165ea7659
@ -17,7 +17,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
/**
|
||||
* The configuration of a Mill thing.
|
||||
*
|
||||
* @author Wouter Born - Add Mill configuration object
|
||||
* @author Wouter Born - Initial contribution, add Mill configuration object
|
||||
*/
|
||||
@NonNullByDefault
|
||||
public class MillConfig {
|
||||
|
@ -109,9 +109,10 @@ public class WindcentraleHandler extends BaseThingHandler {
|
||||
@Override
|
||||
public void dispose() {
|
||||
logger.debug("Disposing Windcentrale handler '{}'", getThing().getUID());
|
||||
final ScheduledFuture<?> pollingJob = this.pollingJob;
|
||||
if (pollingJob != null) {
|
||||
pollingJob.cancel(true);
|
||||
pollingJob = null;
|
||||
this.pollingJob = null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -159,7 +160,7 @@ public class WindcentraleHandler extends BaseThingHandler {
|
||||
} catch (final RuntimeException e) {
|
||||
logger.debug("Failed to process windmill data", e);
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.OFFLINE.COMMUNICATION_ERROR,
|
||||
"Failed to process mill data");
|
||||
"@text/offline.mill-data-error");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,45 @@
|
||||
# binding
|
||||
|
||||
binding.windcentrale.name = Windcentrale Binding
|
||||
binding.windcentrale.description = Binding for Windcentrale windmills
|
||||
|
||||
# thing types
|
||||
|
||||
thing-type.windcentrale.mill.label = Windcentrale Windmill
|
||||
|
||||
# thing types config
|
||||
|
||||
thing-type.config.windcentrale.mill.millId.label = Windmill
|
||||
thing-type.config.windcentrale.mill.millId.option.1 = De Grote Geert
|
||||
thing-type.config.windcentrale.mill.millId.option.2 = De Jonge Held
|
||||
thing-type.config.windcentrale.mill.millId.option.31 = Het Rode Hert
|
||||
thing-type.config.windcentrale.mill.millId.option.41 = De Ranke Zwaan
|
||||
thing-type.config.windcentrale.mill.millId.option.51 = De Witte Juffer
|
||||
thing-type.config.windcentrale.mill.millId.option.111 = De Bonte Hen
|
||||
thing-type.config.windcentrale.mill.millId.option.121 = De Trouwe Wachter
|
||||
thing-type.config.windcentrale.mill.millId.option.131 = De Blauwe Reiger
|
||||
thing-type.config.windcentrale.mill.millId.option.141 = De Vier Winden
|
||||
thing-type.config.windcentrale.mill.millId.option.201 = De Boerenzwaluw
|
||||
thing-type.config.windcentrale.mill.refreshInterval.label = Refresh Interval
|
||||
thing-type.config.windcentrale.mill.refreshInterval.description = Refresh interval for refreshing the data in seconds
|
||||
thing-type.config.windcentrale.mill.wd.label = Wind Shares
|
||||
thing-type.config.windcentrale.mill.wd.description = Number of wind shares ("Winddelen")
|
||||
|
||||
# channel types
|
||||
|
||||
channel-type.windcentrale.kwh.label = Energy
|
||||
channel-type.windcentrale.kwhForecast.label = Energy Forecast
|
||||
channel-type.windcentrale.powerAbsTot.label = Total Power
|
||||
channel-type.windcentrale.powerAbsWd.label = Wind Shares Power
|
||||
channel-type.windcentrale.powerRel.label = Relative Power
|
||||
channel-type.windcentrale.runPercentage.label = Run Percentage
|
||||
channel-type.windcentrale.runPercentage.description = Run percentage this year
|
||||
channel-type.windcentrale.runTime.label = Run Time
|
||||
channel-type.windcentrale.runTime.description = Run time this year
|
||||
channel-type.windcentrale.timestamp.label = Last Updated
|
||||
channel-type.windcentrale.windDirection.label = Wind Direction
|
||||
channel-type.windcentrale.windSpeed.label = Wind Speed
|
||||
|
||||
# status messages
|
||||
|
||||
offline.mill-data-error = Failed to process mill data
|
@ -4,6 +4,17 @@ binding.windcentrale.description = Binding voor Windcentrale windmolens
|
||||
|
||||
# thing types
|
||||
thing-type.windcentrale.mill.label = Windcentrale windmolen
|
||||
thing-type.config.windcentrale.mill.millId.option.1 = De Grote Geert
|
||||
thing-type.config.windcentrale.mill.millId.option.2 = De Jonge Held
|
||||
thing-type.config.windcentrale.mill.millId.option.31 = Het Rode Hert
|
||||
thing-type.config.windcentrale.mill.millId.option.41 = De Ranke Zwaan
|
||||
thing-type.config.windcentrale.mill.millId.option.51 = De Witte Juffer
|
||||
thing-type.config.windcentrale.mill.millId.option.111 = De Bonte Hen
|
||||
thing-type.config.windcentrale.mill.millId.option.121 = De Trouwe Wachter
|
||||
thing-type.config.windcentrale.mill.millId.option.131 = De Blauwe Reiger
|
||||
thing-type.config.windcentrale.mill.millId.option.141 = De Vier Winden
|
||||
thing-type.config.windcentrale.mill.millId.option.201 = De Boerenzwaluw
|
||||
|
||||
thing-type.config.windcentrale.mill.millId.label = Windmolen
|
||||
thing-type.config.windcentrale.mill.wd.label = Aantal Winddelen
|
||||
thing-type.config.windcentrale.mill.wd.description = Aantal Winddelen in bezit
|
||||
@ -23,3 +34,7 @@ channel.windcentrale.runPercentage.description = Molen productie percentage dit
|
||||
channel.windcentrale.runTime.label = Molen productietijd
|
||||
channel.windcentrale.runTime.description = Molen productietijd dit jaar
|
||||
channel.windcentrale.timestamp.label = Ververs tijdstip
|
||||
|
||||
# status messages
|
||||
|
||||
offline.mill-data-error = Fout bij het verwerken van de molen data
|
||||
|
Loading…
Reference in New Issue
Block a user