Commit 95346045f3860b5fd7e2189c001413e13edd86dd

Authored by Erickson Silva
1 parent 6c4ad994
Exists in master and in 1 other branch devel

Corrige mensagens de erro

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
src/PortGlosa.py
@@ -14,7 +14,7 @@ tradutor = TraduzSentencas() @@ -14,7 +14,7 @@ tradutor = TraduzSentencas()
14 14
15 def traduzir(texto, threads=False): 15 def traduzir(texto, threads=False):
16 if texto.isspace() or texto == "": 16 if texto.isspace() or texto == "":
17 - return "ESCOLHER TEXTO" 17 + return "ESCOLHER TEXTO CERTO"
18 18
19 elif threads: 19 elif threads:
20 return iniciar_com_threads(texto) 20 return iniciar_com_threads(texto)
src/TraduzSentencas.py
@@ -46,7 +46,7 @@ class TraduzSentencas(object): @@ -46,7 +46,7 @@ class TraduzSentencas(object):
46 46
47 if sentenca_sem_acentos: 47 if sentenca_sem_acentos:
48 return sentenca_sem_acentos.upper().encode('utf-8') 48 return sentenca_sem_acentos.upper().encode('utf-8')
49 - return "HOUVE UM ERRO. TENTE NOVAMENTE" 49 + return "TEXTO ERRADO ESCOLHER OUTRO"
50 50
51 def salvar_log(self, erro): 51 def salvar_log(self, erro):
52 logging.error(erro) 52 logging.error(erro)