Skip to content

Commit

Permalink
dfgsa
Browse files Browse the repository at this point in the history
  • Loading branch information
Rixxan committed May 30, 2024
1 parent da05fa7 commit 96ece13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion L10n/en.template
Original file line number Diff line number Diff line change
Expand Up @@ -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?";
Expand Down
8 changes: 4 additions & 4 deletions scripts/find_localised_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down

0 comments on commit 96ece13

Please sign in to comment.