mirror of
https://github.com/aclist/dztui.git
synced 2026-11-23 09:59:36 +01:00
chore: abstract init strings
This commit is contained in:
1 parent
dabcd85990
commit
0533e2c51a
3 files changed
+2
-15
No files matched your search
+1
-2
@@ -22,14 +22,13 @@ from dzgui.init.migrate import (
|
||||
migrate_cols_file,
|
||||
)
|
||||
from dzgui.init.prereqs import has_flatpak_client, has_steam_client
|
||||
from dzgui.strings import boot
|
||||
from dzgui.strings import boot, errors
|
||||
|
||||
from dzgui.util.deck import is_steam_deck, is_game_mode
|
||||
from dzgui.util.dirs import make_parents
|
||||
from dzgui.util.localize import set_locale
|
||||
from dzgui.util.map_count import test_map_count
|
||||
from dzgui.util.redact import RedactionFilter, REDACTION_PATTERNS
|
||||
from dzgui.util.strings import init
|
||||
|
||||
from dzgui.views.base import App
|
||||
from dzgui.views.dialogs.boot import BootWindow
|
||||
|
||||
@@ -7,5 +7,6 @@ config_not_found = "DZGUI configuration file not found. Please exit and restart.
|
||||
dayz_not_found = "Could not find a valid DayZ installation."
|
||||
no_mods = "No local mods found."
|
||||
no_servers = "No server metadata to list."
|
||||
requires_steam="Your chosen client (Steam/Flatpak Steam) must be installed on the system.",
|
||||
server_timeout = "Timed out when querying server(s). Check IP or try again later."
|
||||
workshop_endpoint_error = "Steam Workshop service unavailable, try again later."
|
||||
@@ -9,13 +9,6 @@ class ServerLabels:
|
||||
lan: str
|
||||
|
||||
|
||||
@dataclass(slots=True, frozen=True)
|
||||
class Init:
|
||||
is_steam_running: str
|
||||
is_dayz_running: str
|
||||
requires_steam: str
|
||||
|
||||
|
||||
# General
|
||||
dz = "DayZ"
|
||||
dz_exp = "DayZ Experimental"
|
||||
@@ -84,12 +77,6 @@ dlc_none = "None"
|
||||
windows = "Windows"
|
||||
linux = "Linux"
|
||||
|
||||
init = Init(
|
||||
is_steam_running="Is Steam running? DZGUI must be run on top of Steam.",
|
||||
is_dayz_running="Is DayZ already running? DZGUI cannot launch DayZ if another process is using it.",
|
||||
requires_steam="Your chosen client (Steam/Flatpak Steam) must be installed on the system.",
|
||||
)
|
||||
|
||||
|
||||
server_labels = ServerLabels(
|
||||
browser="Server Browser",
|
||||
|
||||
Reference in new issue
Block a user