Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions companion.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,13 @@ def auth_callback(self) -> None:
self.auth = None
raise # Bad thing happened
if IS_FROZEN:
tk.messagebox.showinfo(title="Authentication Successful", # type: ignore
message="Authentication with cAPI Successful.\n"
"You may now close the Frontier login tab if it is still open.")
tk.messagebox.showinfo( # type: ignore
title=tr.tl("Authentication Successful"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need LANG comments for the AST and to be added to en.template.

Similar examples can be found in the code, such as:

label=tr.tl("Open in {URL}").format(URL=url), # LANG: Open Element In Selected Provider

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it will be okay now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rixxan up

message=tr.tl(
"Authentication with cAPI Successful.{CR}"
"You may now close the Frontier login tab if it is still open."
).format(CR="\n")
)

def close(self) -> None:
"""Close the `request.Session()."""
Expand Down
Loading