Skip to content

Commit

Permalink
added changelog handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatito committed Jan 9, 2018
1 parent 282130b commit d145c48
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -1156,3 +1156,7 @@ msgstr ""
msgctxt "#30354"
msgid "Could not start Torrent client. Please report to github with the Kodi log file!"
msgstr ""

msgctxt "#30355"
msgid "Changelog"
msgstr ""
4 changes: 4 additions & 0 deletions resources/language/Russian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -1164,3 +1164,7 @@ msgstr "Автоматически назначать сетевой порт"
msgctxt "#30354"
msgid "Could not start Torrent client. Please report to github with the Kodi log file!"
msgstr "Невозможно создать Торрент клиент. Пожалуйста, сообщите об ошибке в github с логом Kodi!"

msgctxt "#30355"
msgid "Changelog"
msgstr "Изменения"
4 changes: 4 additions & 0 deletions resources/language/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1160,3 +1160,7 @@ msgstr ""
msgctxt "#30354"
msgid "Could not start Torrent client. Please report to github with the Kodi log file!"
msgstr ""

msgctxt "#30355"
msgid "Changelog"
msgstr ""
19 changes: 19 additions & 0 deletions resources/site-packages/elementum/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,25 @@ def Dialog_Select_Large(self, title, subject, items):

return retval

def Dialog_Text(self, title, text):
title_encoded = getLocalizedLabel(title)

id = 10147
xbmc.executebuiltin('ActivateWindow(%d)' % id)
xbmc.sleep(500)
win = xbmcgui.Window(id)
retry = 50
while (retry > 0):
try:
xbmc.sleep(10)
retry -= 1
win.getControl(1).setLabel(title_encoded)
win.getControl(5).setText(text)
quit()
return
except:
return

def Player_Open(self, item):
return XBMC_PLAYER.play(item)

Expand Down
7 changes: 7 additions & 0 deletions whatsnew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[COLOR springgreen]Elementum Addon changelog:[/COLOR]

[COLOR red]-------------------------------------------------------------------------------------------------------[/COLOR]

[B][COLOR red]2087/01/09[/COLOR][/B]
v0.0.26
- Added Changelog

0 comments on commit d145c48

Please sign in to comment.