diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-18 20:17:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-18 20:17:13 -0300 |
commit | 625020106a02990105e80483f1665e4ad90e9f88 (patch) | |
tree | 8b2ceca5f81dc3511f0689824ee408abb96b1103 /game/update.rpy | |
parent | 6df41190f249202e3832a3c7125be593099dcf32 (diff) | |
download | renpy-625020106a02990105e80483f1665e4ad90e9f88.tar.gz renpy-625020106a02990105e80483f1665e4ad90e9f88.tar.bz2 renpy-625020106a02990105e80483f1665e4ad90e9f88.tar.xz renpy-625020106a02990105e80483f1665e4ad90e9f88.zip |
Fix a few strings not being properly localized
Diffstat (limited to 'game/update.rpy')
-rw-r--r-- | game/update.rpy | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/game/update.rpy b/game/update.rpy index 81ce586..b4c5c66 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -67,7 +67,7 @@ init python: ## If we reached here, then everything is likely fine ## We can now build the persistent data - status_update("Fetching server list and assets...", 20) + status_update(_("Fetching server list and assets..."), 20) persistent.serverlist = [] slist=len(j) for server in j: @@ -127,7 +127,7 @@ init python: ## Maybe you're offline but in any case: ## Seek a new mirror and update server list accordingly. if persistent.host is None: - status_update("Welcome to the Mana Launcher.\nBuilding user data, please wait...", 1) + status_update(_("Welcome to the Mana Launcher.\nBuilding user data, please wait..."), 1) time.sleep(1.0) # Determine from where we should fetch updates @@ -143,7 +143,7 @@ init python: ## If we don't have a host - DIE HARD if (persistent.host is None): stdout("No mirror could be found.", True) - status_update("{color=#f00}{b}ERROR: No active mirror found.\nMana Launcher needs to be updated.{/b}{/color}") + status_update(_("{color=#f00}{b}ERROR: No active mirror found.\nMana Launcher needs to be updated.{/b}{/color}")) responsive=False return @@ -152,7 +152,7 @@ init python: ######################################################################### # Check for clients, this block is 60~80% - status_update("Checking for installed clients...", 60) + status_update(_("Checking for installed clients..."), 60) r=handle_client() @@ -161,7 +161,7 @@ init python: time.sleep(0.4) responsive = False time.sleep(2.6) - status_update("{color=#F00}ERROR: \"%s\" client is NOT supported!{/color}" % persistent.client, 70) + status_update(_("{color=#F00}ERROR: \"%s\" client is NOT supported!{/color}" % persistent.client), 70) return @@ -172,14 +172,14 @@ init python: ######################################################################### # Before starting, we must check for Vault or Steam credentials # This block is 1~20% - status_update("Verifying credentials...", 80) + status_update(_("Verifying credentials..."), 80) try: if not persistent.steam: raise Exception("Steam login was disabled!") stdout("Steam Status: %s" % str(steam.initialized)) if steam.init() != True: raise Exception("Steam is not running!") - status_update("Attempting Steam authentication...", 81) + status_update(_("Attempting Steam authentication..."), 81) accId = steam.get_account_id() stdout("Steam login active, user %d" % accId) @@ -187,26 +187,26 @@ init python: token = steam.get_session_ticket() auth = {"accId": accId, "token": base64.b64encode(token)} time.sleep(1.0) - status_update("Waiting for Vault reply...", 85) + status_update(_("Waiting for Vault reply..."), 85) ## Request the Vault for the ticket validation r = vault.post(VAULT_HOST+"/steam_auth", json=auth, timeout=15.0) ## Ticket error, we die here. if (r.status_code == 406): - status_update("{color=#f00}{b}STEAM AUTHENTICATION ERROR.\nSteam refused authentication. Try restarting the app.{/b}{/color}") + status_update(_("{color=#f00}{b}STEAM AUTHENTICATION ERROR.\nSteam refused authentication. Try restarting the app.{/b}{/color}")) responsive=False return ## Intercept rate-limiting (429) and retry once if (r.status_code == 429 or r.status_code == 500): - status_update("Rate limited! Trying again 15s...", 85) + status_update(_("Rate limited! Trying again 15s..."), 85) time.sleep(5.0) - status_update("Rate limited! Trying again 10s...", 85) + status_update(_("Rate limited! Trying again 10s..."), 85) time.sleep(5.0) - status_update("Rate limited! Trying again 5s...", 85) + status_update(_("Rate limited! Trying again 5s..."), 85) time.sleep(5.0) - status_update("Rate limited! Trying again...", 85) + status_update(_("Rate limited! Trying again..."), 85) r = vault.post(VAULT_HOST+"/steam_auth", json=auth, timeout=15.0) ## If still unsucessful, give up on Steam Auth @@ -214,7 +214,7 @@ init python: raise Exception("Vault returned code %d" % r.status_code) ## Receive the Vault Token - status_update("Waiting for Vault reply...", 90) + status_update(_("Waiting for Vault reply..."), 90) stdout("Steam result: (%d) %s" % (r.status_code, ifte(config.developer, r.text, accId))) auth2 = r.json() vaultId = auth2["vaultId"] @@ -224,19 +224,19 @@ init python: # Enable all Steam features and skip Vault-only auth has_steam = True stdout("Steam session initialized successfully", True) - status_update("Steam session initialized successfully", 99) + status_update(_("Steam session initialized successfully"), 99) renpy.notify("Welcome, %s" % steam.get_persona_name()) time.sleep(0.25) except: # NO FALLBACK: if Steam Login is on, do not try vault (no multiacc) if persistent.steam: traceback.print_exc() - status_update("{color=#f00}{b}STEAM AUTHENTICATION ERROR.\nIf the issue persists, try closing the app and opening again.{/b}{/color}") + status_update(_("{color=#f00}{b}STEAM AUTHENTICATION ERROR.\nIf the issue persists, try closing the app and opening again.{/b}{/color}")) responsive=False return # Prepare to do Vault authentication - status_update("Steam auth disabled, trying Vault...", 80) + status_update(_("Steam auth disabled, trying Vault..."), 80) time.sleep(1.0) vaultId = 0 vaultToken = "ERROR" @@ -326,7 +326,7 @@ label register: $ method = _return $ email="" while email == "": - call screen register_input("Please insert your {b}email{/b}.") + call screen register_input(_("Please insert your {b}email{/b}.")) $ email=_return if not "@" in email or not "." in email: call screen notice(_("Please make sure you enter a valid email!")) @@ -352,7 +352,7 @@ label register: call screen notice(_("An email was sent with your API token.\n\nYou'll need it shortly, so check your email.")) $ status_update(pc=95) - call screen register_input("Please insert the {b}token{/b} you received on your email.") + call screen register_input(_("Please insert the {b}token{/b} you received on your email.")) $ token = _return $ user["key"] = token @@ -370,12 +370,12 @@ label register: elif method == 2: $ password = "" while len(password) < 4: - call screen register_input("Please insert your {b}Password{/b}.\nIt has to be at least 4 characters long.") + call screen register_input(_("Please insert your {b}Password{/b}.\nIt has to be at least 4 characters long.")) $ password = _return # We must send the password on plain-text; That's why we use SSL $ status_update(pc=92) - call screen register_input("Please insert your {b}2FA code{/b}. If you do not have 2FA, leave blank.\n\n{u}TOTP setup will be emailed and required for later logins.{/u}") + call screen register_input(_("Please insert your {b}2FA code{/b}. If you do not have 2FA, leave blank.\n\n{u}TOTP setup will be emailed and required for later logins.{/u}")) $ code2FA = _return $ status_update(pc=95) @@ -410,8 +410,8 @@ label register: $ del method $ del email if vaultId: - $ status_update("Success!", 100) + $ status_update(_("Success!"), 100) else: - $ status_update("{color=#F00}Failure!{/color}", pc=100) + $ status_update(_("{color=#F00}Failure!{/color}"), pc=100) return |