put all strings in strings.xml

This commit is contained in:
Rob Weber 2017-01-31 08:16:54 -06:00
parent 49f6ae5270
commit b1d16df817
3 changed files with 9 additions and 6 deletions

View File

@ -9,15 +9,15 @@ if(utils.getSetting('remote_selection') == '2'):
authorizer = DropboxAuthorizer()
if(authorizer.authorize()):
xbmcgui.Dialog().ok("Backup","Dropbox is authorized")
xbmcgui.Dialog().ok("Backup",utils.getString(30027) + ' ' + utils.getString(30106))
else:
xbmcgui.Dialog().ok("Backup","Error Authorizing Dropbox")
xbmcgui.Dialog().ok("Backup",utils.getString(30107) + ' ' + utils.getString(30027))
#google drive
elif(utils.getSetting('remote_selection') == '3'):
authorizer = GoogleDriveAuthorizer()
if(authorizer.authorize()):
xbmcgui.Dialog().ok("Backup","Google Drive is authorized")
xbmcgui.Dialog().ok("Backup",utils.getString(30098) + ' ' + utils.getString(30106))
else:
xbmcgui.Dialog().ok("Backup","Error Authorizing Google Drive")
xbmcgui.Dialog().ok("Backup",utils.getString(30107) + ' ' + utils.getString(30098))

View File

@ -96,4 +96,7 @@
<string id="30102">Click OK to enter code</string>
<string id="30103">Google Drive Validation Code</string>
<string id="30104">Authorize Now</string>
<string id="30105">Authorize this remote service in the settings first</string>
<string id="30106">is authorized</string>
<string id="30107">error authorizing</string>
</strings>

View File

@ -130,7 +130,7 @@ class DropboxFileSystem(Vfs):
self.client = authorizer.getClient()
else:
#tell the user to go back and run the authorizer
xbmcgui.Dialog().ok(utils.getString(30010),"Authorize this remote service in the settings first")
xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30105))
sys.exit()
def listdir(self,directory):
@ -243,7 +243,7 @@ class GoogleDriveFilesystem(Vfs):
self.drive = authorizer.getClient()
else:
#tell the user to go back and run the authorizer
xbmcgui.Dialog().ok(utils.getString(30010),"Authorize this remote service in the settings first")
xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30105))
sys.exit()
#make sure we have the folder we need