Translate plex.tv login status in PKC settings

This commit is contained in:
tomkat83 2017-05-29 10:51:26 +02:00
parent 4af5080f31
commit 55d75d3d51
4 changed files with 14 additions and 4 deletions

View file

@ -1705,6 +1705,16 @@ msgctxt "#39225"
msgid "Missing only"
msgstr ""
# Message in the PKC settings if user has not logged in to plex.tv
msgctxt "#39226"
msgid "Not logged in to plex.tv"
msgstr ""
# Message in the PKC settings if user is logged in to plex.tv
msgctxt "#39227"
msgid "Logged in to plex.tv"
msgstr ""
# Plex Artwork.py
msgctxt "#39250"

View file

@ -208,7 +208,7 @@ class PlexAPI():
settings('plexHomeSize', homeSize)
# Let Kodi log into plex.tv on startup from now on
settings('myplexlogin', 'true')
settings('plex_status', value='Logged in to plex.tv')
settings('plex_status', value=lang(39227))
return result
def CheckPlexTvSignin(self, identifier):

View file

@ -78,7 +78,7 @@ def togglePlexTV():
settings('plexid', value="")
settings('plexHomeSize', value="1")
settings('plexAvatar', value="")
settings('plex_status', value="Not logged in to plex.tv")
settings('plex_status', value=lang(39226))
window('plex_token', clear=True)
plex_command('PLEX_TOKEN', '')

View file

@ -82,7 +82,7 @@ class InitialSetup():
answer = False
else:
log.info('plex.tv connection with token successful')
settings('plex_status', value='Logged in to plex.tv')
settings('plex_status', value=lang(39227))
# Refresh the info from Plex.tv
xml = self.doUtils('https://plex.tv/users/account',
authenticate=False,
@ -413,7 +413,7 @@ class InitialSetup():
# Optionally sign into plex.tv. Will not be called on very first run
# as plexToken will be ''
settings('plex_status', value='Not logged in to plex.tv')
settings('plex_status', value=lang(39226))
if self.plexToken and self.myplexlogin:
self.CheckPlexTVSignIn()