aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorffuentes <ffuentes@texto-plano.xyz>2021-04-02 19:32:39 +0000
committerffuentes <ffuentes@texto-plano.xyz>2021-04-02 19:32:39 +0000
commitac7ddf335a5ec4a65be6f5ff37d2357445539145 (patch)
treea77cbaecbe3e17989d1986dc5d8be7d734fb28a0
parentf283c50fc690f963cb82ac7692bf64ac32ca6eb7 (diff)
downloadbbj-ac7ddf335a5ec4a65be6f5ff37d2357445539145.tar.gz
traducción parcial bbj
-rw-r--r--clients/urwid/main.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py
index 0227bd1..3adeeff 100644
--- a/clients/urwid/main.py
+++ b/clients/urwid/main.py
@@ -87,21 +87,21 @@ obnoxious_logo = """
8 888888888P 8 888888888P `Y888888 ' .
% %"""
-welcome = """>>> Welcome to Bulletin Butter & Jelly! ------------------@
-| BBJ is a persistent, chronologically ordered text |
-| discussion board for tildes. You may log in, |
-| register as a new user, or participate anonymously. |
+welcome = """>>> Bienvenido al BBS de Texto-Plano! ------------------@
+| BBJ es un muro de discusión persistente y ordenado |
+| temporalmente para tildes. Puedes ingresar |
+| registrar un usuario nuevo, or participar anónimamente |
|---------------------------------------------------------|
-| \033[1;31mTo go anon, just press enter. Otherwise, give me a name\033[0m |
-| \033[1;31m(registered or not)\033[0m |
+| \033[1;31mPara ser anónimo presiona ENTRAR. De lo contrario dame\033[0m |
+| \033[1;31mun usuario (registrado o no)\033[0m |
@_________________________________________________________@
"""
-anon_warn = """>>> \033[1;31mJust a reminder!\033[0m ----------------------------------@
-| You are not logged into BBJ, and are posting this |
-| message anonymously. If you do not log in, you will |
-| not be able to edit or delete this message. This |
-| warning can be disabled in the settings. |
+anon_warn = """>>> \033[1;31mSolo un recordatorio!\033[0m ----------------------------------@
+| No estás logueado en BBJ, y estás posteando |
+| tu mensaje anónimamente. Si no ingresas con usuario |
+| no podrás borrar o editar este mensaje |
+| Este aviso se puede eliminar en la configuración |
|------------------------------------------------------|
"""
@@ -2027,7 +2027,7 @@ class ExternalEditor(urwid.Terminal):
call("clear", shell=True)
print(anon_warn)
choice = paren_prompt(
- "Post anonymously?", default="yes", choices=["Yes", "no"]
+ "Publicar anónimamente?", default="si", choices=["Sí", "no"]
)
if choice == "n":
log_in(True)
@@ -2303,11 +2303,11 @@ def frilly_exit():
"".join([choice([" ", choice(punctuation)])
for x in range(width)]
))
- out = " ~~CoMeE BaCkK SooOn~~ 0000000"
+ out = " ~~Vuelve pronto~~ 0000000"
motherfucking_rainbows(out.zfill(width))
else:
call("clear", shell=True)
- motherfucking_rainbows("Come back soon! <3")
+ motherfucking_rainbows("Vuelve pronto <3")
exit()
@@ -2378,7 +2378,7 @@ def paren_prompt(text, positive=True, choices=[], function=input, default=None):
char = response.lower()[0]
if char in [c[0].lower() for c in choices]:
return char
- return paren_prompt("Invalid choice", False, choices, function)
+ return paren_prompt("Opción no válida", False, choices, function)
except EOFError:
print("")
@@ -2398,19 +2398,19 @@ def sane_value(key, prompt, positive=True, return_empty=False):
def password_loop(prompt, positive=True):
response1 = paren_prompt(prompt, positive, function=getpass)
if response1 == "":
- confprompt = "Confirm empty password"
+ confprompt = "Confirmar contraseña vacía"
else:
- confprompt = "Confirm it"
+ confprompt = "Confirma"
response2 = paren_prompt(confprompt, function=getpass)
if response1 != response2:
- return password_loop("Those didnt match. Try again", False)
+ return password_loop("No coinciden. Prueba de nuevo", False)
return response1
def nameloop(prompt, positive):
name = sane_value("user_name", prompt, positive)
if network.user_is_registered(name):
- return nameloop("%s is already registered" % name, False)
+ return nameloop("%s ya está registrado" % name, False)
return name
@@ -2421,11 +2421,11 @@ def log_in(relog=False):
curses app.
"""
if relog:
- name = sane_value("user_name", "Username", return_empty=True)
+ name = sane_value("user_name", "Usuario", return_empty=True)
else:
name = get_arg("user") \
or os.getenv("BBJ_USER") \
- or sane_value("user_name", "Username", return_empty=True)
+ or sane_value("user_name", "Usuario", return_empty=True)
if name == "":
motherfucking_rainbows("~~W3 4R3 4n0nYm0u5~~")
else:
@@ -2438,7 +2438,7 @@ def log_in(relog=False):
if not relog else ""
)
# make it easy for people who use an empty password =)
- motherfucking_rainbows("~~welcome back {}~~".format(network.user_name))
+ motherfucking_rainbows("~~bienvenido/a otra vez {}~~".format(network.user_name))
except ConnectionRefusedError:
def login_loop(prompt, positive):
@@ -2446,20 +2446,20 @@ def log_in(relog=False):
password = paren_prompt(prompt, positive, function=getpass)
network.set_credentials(name, password)
except ConnectionRefusedError:
- login_loop("// R E J E C T E D //.", False)
+ login_loop("// I N C O R R E C T O //.", False)
- login_loop("Enter your password", True)
- motherfucking_rainbows("~~welcome back {}~~".format(network.user_name))
+ login_loop("Ingresa tu contraseña", True)
+ motherfucking_rainbows("~~bienvenido/a otra vez {}~~".format(network.user_name))
except ValueError:
- motherfucking_rainbows("Nice to meet'cha, %s!" % name)
+ motherfucking_rainbows("Un gusto, %s!" % name)
response = paren_prompt(
- "Register as %s?" % name,
- choices=["yes!", "change name", "nevermind!"]
+ "Registrar como %s?" % name,
+ choices=["sí", "cambiar nombre", "no importa!"]
)
if response == "c":
- name = nameloop("Pick a new name", True)
+ name = nameloop("Elige un nuevo nombre de usuario", True)
elif response == "n":
raise InterruptedError
Un proyecto texto-plano.xyz