Skip to content

Commit

Permalink
ci: fix locale string incorrectly marked as unused by script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Dec 13, 2024
1 parent a1267d6 commit 91ded1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def domain_add(

if not skip_tos and Moulinette.interface.type == "cli" and os.isatty(1):
Moulinette.display(m18n.n("tos_dyndns_acknowledgement"), style="warning")
# i18n: confirm_tos_acknowledgement
_ask_confirmation("confirm_tos_acknowledgement", kind="soft")

if dyndns_recovery_password:
Expand Down
1 change: 1 addition & 0 deletions src/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def tools_postinstall(
if Moulinette.interface.type == "cli" and os.isatty(1):
Moulinette.display(m18n.n("tos_postinstall_acknowledgement"), style="warning")
if not i_have_read_terms_of_services:
# i18n: confirm_tos_acknowledgement
_ask_confirmation("confirm_tos_acknowledgement", kind="soft")

# Crash early if the username is already a system user, which is
Expand Down

0 comments on commit 91ded1b

Please sign in to comment.