Skip to content

Commit

Permalink
Update wis2box-create-config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Dec 20, 2024
1 parent 28b0efd commit 3e7e279
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wis2box-create-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def get_custom_ui_logo():
"""
Prompt the user to enter a custom UI logo path or URL.
:returns: string or URL logo
:returns: string of URL logo
"""
while True:
logo = input("Enter the path or URL for the custom UI logo (leave blank to skip): ").strip()
Expand All @@ -296,7 +296,11 @@ def get_custom_ui_logo():
return logo if logo else None

def get_default_ui_language():
"""Prompt the user to enter a default UI language and validate against possible values."""
"""
Prompt the user to enter a default UI language and validate against possible values.
:returns: string of languge
"""
valid_languages = ['en', 'fr', 'es', 'ar', 'zh', 'ru'] # Extend the list as needed
while True:
language = input("Enter the default UI language (e.g., 'fr' for French, 'ar' for Arabic, leave blank for 'en'): ").strip() or 'en'
Expand Down

0 comments on commit 3e7e279

Please sign in to comment.