Skip to content

Commit

Permalink
i18n format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kjayan committed Feb 11, 2025
1 parent 5ef77a3 commit 59384bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyter_server/auth/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def process_login_form(self, handler: web.RequestHandler) -> User | None:
config_dir = handler.settings.get("config_dir", "")
config_file = os.path.join(config_dir, "jupyter_server_config.json")
self.hashed_password = set_password(new_password, config_file=config_file)
self.log.info(_i18n(f"Wrote hashed password to {config_file}"))
self.log.info(_i18n("Wrote hashed password to {file}").format(file=config_file))

return user

Expand Down
2 changes: 1 addition & 1 deletion jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2857,7 +2857,7 @@ def running_server_info(self, kernel_count: bool = True) -> str:
info += kernel_msg % n_kernels
info += "\n"
# Format the info so that the URL fits on a single line in 80 char display
info += _i18n(f"Jupyter Server {ServerApp.version} is running at:\n{self.display_url}")
info += _i18n("Jupyter Server {version} is running at:\n{url}").format(version=ServerApp.version, url=self.display_url)
if self.gateway_config.gateway_enabled:
info += (
_i18n("\nKernels will be managed by the Gateway server running at:\n%s")
Expand Down

0 comments on commit 59384bc

Please sign in to comment.