main
Bob Mottram 2021-03-18 17:30:47 +00:00
parent c9e36e8577
commit dbb2c39632
2 changed files with 5 additions and 5 deletions

View File

@ -948,9 +948,6 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
sayStr = indent + 'Notification sounds off'
_sayCommand(sayStr, sayStr, screenreader,
systemLanguage, espeak)
sayStr = indent + '/q or /quit to exit'
_sayCommand(sayStr, sayStr, screenreader,
systemLanguage, espeak)
currTimeline = 'inbox'
pageNumber = 1
@ -981,7 +978,7 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
newDMsExist = False
pgpKeyUpload = False
sayStr = indent + 'Loading translations file...'
sayStr = indent + 'Loading translations file'
_sayCommand(sayStr, sayStr, screenreader,
systemLanguage, espeak)
translate, systemLanguage = \
@ -991,6 +988,10 @@ def runDesktopClient(baseDir: str, proxyType: str, httpPrefix: str,
_sayCommand(sayStr, sayStr, screenreader,
systemLanguage, espeak)
session = createSession(proxyType)
sayStr = indent + '/q or /quit to exit'
_sayCommand(sayStr, sayStr, screenreader,
systemLanguage, espeak)
prevTimelineFirstId = ''
while (1):
if not pgpKeyUpload:

View File

@ -2177,5 +2177,4 @@ def loadTranslationsFromFile(baseDir: str, language: str) -> ({}, str):
systemLanguage = 'en'
translationsFile = baseDir + '/translations/' + \
systemLanguage + '.json'
print('System language: ' + systemLanguage)
return loadJson(translationsFile), systemLanguage