From 96ece13b89edae8f0883f4ef7a90aa4ff26b6762 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Thu, 30 May 2024 18:20:19 -0400 Subject: [PATCH] dfgsa --- L10n/en.template | 3 ++- scripts/find_localised_strings.py | 8 ++++---- stats.py | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/L10n/en.template b/L10n/en.template index 9e46acdb0..69b4d75e2 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -802,7 +802,8 @@ /* prefs.py: Select the Update Track (Beta, Stable); */ "Update Track" = "Update Track"; - +/* EDMarketConnector.py: Inform the user the Update Track has changed; */ +"Update Track Changed to {TRACK}" = "Update Track Changed to {TRACK}"; /* EDMarketConnector.py: Inform User of Beta -> Stable Transition Risks; */ "Update track changed to Stable from Beta. You will no longer receive Beta updates. You will stay on your current Beta version until the next Stable release.\r\n\r\nYou can manually revert to the latest Stable version. To do so, you must download and install the latest Stable version manually. Note that this may introduce bugs or break completely if downgrading between major versions with significant changes.\r\n\r\nDo you want to open GitHub to download the latest release?" = "Update track changed to Stable from Beta. You will no longer receive Beta updates. You will stay on your current Beta version until the next Stable release.\r\n\r\nYou can manually revert to the latest Stable version. To do so, you must download and install the latest Stable version manually. Note that this may introduce bugs or break completely if downgrading between major versions with significant changes.\r\n\r\nDo you want to open GitHub to download the latest release?"; diff --git a/scripts/find_localised_strings.py b/scripts/find_localised_strings.py index eb4f297fb..8187f262c 100644 --- a/scripts/find_localised_strings.py +++ b/scripts/find_localised_strings.py @@ -64,9 +64,9 @@ def find_calls_in_stmt(statement: ast.AST) -> list[ast.Call]: COMMENT_OWN_LINE_RE = re.compile(r"^\s*?(#.*)$") -def extract_comments( +def extract_comments( # noqa: CCR001 call: ast.Call, lines: list[str], file: pathlib.Path -) -> str | None: # noqa: CCR001 +) -> str | None: """ Extract comments from source code based on the given call. @@ -284,8 +284,8 @@ def generate_lang_template(data: dict[pathlib.Path, list[ast.Call]]) -> str: return out -def main(): - """Run the Translation Checker""" +def main(): # noqa: CCR001 + """Run the Translation Checker.""" parser = argparse.ArgumentParser() parser.add_argument("--directory", help="Directory to search from", default=".") parser.add_argument( diff --git a/stats.py b/stats.py index 850b679b3..db61f7892 100644 --- a/stats.py +++ b/stats.py @@ -57,7 +57,7 @@ def status(data: dict[str, Any]) -> list[list[str]]: """ # StatsResults assumes these three things are first res = [ - [tr.tl('Cmdr'), data['commander']['name']], + [tr.tl('Cmdr'), data['commander']['name']], # LANG: Cmdr stats [tr.tl('Balance'), str(data['commander'].get('credits', 0))], # LANG: Cmdr stats [tr.tl('Loan'), str(data['commander'].get('debt', 0))], # LANG: Cmdr stats ]