mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
put all strings in strings.xml
This commit is contained in:
parent
49f6ae5270
commit
b1d16df817
@ -9,15 +9,15 @@ if(utils.getSetting('remote_selection') == '2'):
|
|||||||
authorizer = DropboxAuthorizer()
|
authorizer = DropboxAuthorizer()
|
||||||
|
|
||||||
if(authorizer.authorize()):
|
if(authorizer.authorize()):
|
||||||
xbmcgui.Dialog().ok("Backup","Dropbox is authorized")
|
xbmcgui.Dialog().ok("Backup",utils.getString(30027) + ' ' + utils.getString(30106))
|
||||||
else:
|
else:
|
||||||
xbmcgui.Dialog().ok("Backup","Error Authorizing Dropbox")
|
xbmcgui.Dialog().ok("Backup",utils.getString(30107) + ' ' + utils.getString(30027))
|
||||||
|
|
||||||
#google drive
|
#google drive
|
||||||
elif(utils.getSetting('remote_selection') == '3'):
|
elif(utils.getSetting('remote_selection') == '3'):
|
||||||
authorizer = GoogleDriveAuthorizer()
|
authorizer = GoogleDriveAuthorizer()
|
||||||
|
|
||||||
if(authorizer.authorize()):
|
if(authorizer.authorize()):
|
||||||
xbmcgui.Dialog().ok("Backup","Google Drive is authorized")
|
xbmcgui.Dialog().ok("Backup",utils.getString(30098) + ' ' + utils.getString(30106))
|
||||||
else:
|
else:
|
||||||
xbmcgui.Dialog().ok("Backup","Error Authorizing Google Drive")
|
xbmcgui.Dialog().ok("Backup",utils.getString(30107) + ' ' + utils.getString(30098))
|
||||||
|
@ -96,4 +96,7 @@
|
|||||||
<string id="30102">Click OK to enter code</string>
|
<string id="30102">Click OK to enter code</string>
|
||||||
<string id="30103">Google Drive Validation Code</string>
|
<string id="30103">Google Drive Validation Code</string>
|
||||||
<string id="30104">Authorize Now</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>
|
</strings>
|
||||||
|
@ -130,7 +130,7 @@ class DropboxFileSystem(Vfs):
|
|||||||
self.client = authorizer.getClient()
|
self.client = authorizer.getClient()
|
||||||
else:
|
else:
|
||||||
#tell the user to go back and run the authorizer
|
#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()
|
sys.exit()
|
||||||
|
|
||||||
def listdir(self,directory):
|
def listdir(self,directory):
|
||||||
@ -243,7 +243,7 @@ class GoogleDriveFilesystem(Vfs):
|
|||||||
self.drive = authorizer.getClient()
|
self.drive = authorizer.getClient()
|
||||||
else:
|
else:
|
||||||
#tell the user to go back and run the authorizer
|
#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()
|
sys.exit()
|
||||||
|
|
||||||
#make sure we have the folder we need
|
#make sure we have the folder we need
|
||||||
|
Loading…
Reference in New Issue
Block a user