Skip to content

Commit

Permalink
Add missing i18n thing and channel types entries
Browse files Browse the repository at this point in the history
Signed-off-by: jsetton <jeremy.setton@gmail.com>
  • Loading branch information
jsetton committed Sep 28, 2024
1 parent 6255106 commit 6be0472
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@
addon.pushbullet.name = Pushbullet Binding
addon.pushbullet.description = The Pushbullet binding allows you to send messages to other users of the Pushbullet service.

# thing types
thing-type.pushbullet.bot.label = Pushbullet Bot
thing-type.pushbullet.bot.description = Bot to send messages with.

# thing types config
thing-type.config.pushbullet.bot.name.label = Name
thing-type.config.pushbullet.bot.name.description = Explicit Name of Bot, if wanted
thing-type.config.pushbullet.bot.token.label = Access Token
thing-type.config.pushbullet.bot.token.description = Access token obtained from the account settings page
thing-type.config.pushbullet.bot.apiUrlBase.label = API Server
thing-type.config.pushbullet.bot.apiUrlBase.description = The Pushbullet API Server to use, for local testing

# channel types
channel-type.pushbullet.recipient-channel.label = Recipient
channel-type.pushbullet.recipient-channel.description = Mail address or Channel Name
channel-type.pushbullet.title-channel.label = Title
channel-type.pushbullet.title-channel.description = Title of the message
channel-type.pushbullet.message-channel.label = Message
channel-type.pushbullet.message-channel.description = The text that is to be sent

# action
actionSendPushbulletNoteLabel = publish a Pushbullet message
actionSendPushbulletNoteDesc = Publishes a note to the given Pushbullet Recipient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">

<thing-type id="bot">
<label>Pushbullet Bot</label>
<description>Bot to send messages with.</description>
<label>@text/thing-type.pushbullet.bot.label</label>
<description>@text/thing-type.pushbullet.bot.description</description>

<channels>
<channel id="recipient" typeId="recipient-channel"/>
Expand All @@ -16,19 +16,19 @@

<config-description>
<parameter name="name" type="text" required="false">
<label>Name</label>
<description>Explicit Name of Bot, if wanted</description>
<label>@text/thing-type.config.pushbullet.bot.name.label</label>
<description>@text/thing-type.config.pushbullet.bot.name.description</description>
<advanced>true</advanced>
</parameter>

<parameter name="token" type="text" required="true">
<label>Access Token</label>
<description>Access token obtained from the account settings page</description>
<label>@text/thing-type.config.pushbullet.bot.token.label</label>
<description>@text/thing-type.config.pushbullet.bot.token.description</description>
</parameter>

<parameter name="apiUrlBase" type="text" required="true">
<label>API Server</label>
<description>The Pushbullet API Server to use, for local testing</description>
<label>@text/thing-type.config.pushbullet.bot.apiUrlBase.label</label>
<description>@text/thing-type.config.pushbullet.bot.apiUrlBase.description</description>
<default>https://api.pushbullet.com/v2</default>
<advanced>true</advanced>
</parameter>
Expand All @@ -39,20 +39,20 @@

<channel-type id="recipient-channel">
<item-type>String</item-type>
<label>Recipient</label>
<description>Mail address or Channel Name</description>
<label>@text/channel-type.pushbullet.recipient-channel.label</label>
<description>@text/channel-type.pushbullet.recipient-channel.description</description>
</channel-type>

<channel-type id="title-channel">
<item-type>String</item-type>
<label>Title</label>
<description>Title of the message</description>
<label>@text/channel-type.pushbullet.title-channel.label</label>
<description>@text/channel-type.pushbullet.title-channel.description</description>
</channel-type>

<channel-type id="message-channel">
<item-type>String</item-type>
<label>Message</label>
<description>The text that is to be sent</description>
<label>@text/channel-type.pushbullet.message-channel.label</label>
<description>@text/channel-type.pushbullet.message-channel.description</description>
</channel-type>

</thing:thing-descriptions>

0 comments on commit 6be0472

Please sign in to comment.