боты русифицированы

This commit is contained in:
2026-07-30 19:06:57 +04:00
parent 6f075133f7
commit 85adbe19da
26 changed files with 11211 additions and 28 deletions
+20
View File
@@ -14,6 +14,8 @@ if [[ -f "$ENV_FILE" ]]; then
set +a
fi
PLAYERBOTS_RUSSIAN_NAMES="${ACORE_PLAYERBOTS_RUSSIAN_NAMES:-1}"
usage() {
cat <<EOF
Usage: $(basename "$0") [--no-build] [--logs]
@@ -167,6 +169,12 @@ cd "$ROOT_DIR"
require_docker
if ! [[ "$PLAYERBOTS_RUSSIAN_NAMES" =~ ^[01]$ ]]; then
printf 'ACORE_PLAYERBOTS_RUSSIAN_NAMES must be 0 or 1, got: %s\n' \
"$PLAYERBOTS_RUSSIAN_NAMES" >&2
exit 1
fi
log "applying module configuration"
bash "$ROOT_DIR/setup-modules.sh"
@@ -186,12 +194,24 @@ if ! wait_for_healthy "ac-database" 180; then
exit 1
fi
if [[ "$PLAYERBOTS_RUSSIAN_NAMES" == "1" ]]; then
log "stopping worldserver before playerbot localization"
docker compose stop ac-worldserver
fi
log "running database import"
run_one_shot_service "ac-db-import" "ac-db-import"
log "importing custom SQL"
bash "$ROOT_DIR/import-custom-sql.sh"
if [[ "$PLAYERBOTS_RUSSIAN_NAMES" == "1" ]]; then
log "localizing playerbot names, guilds, and chat texts"
bash "$ROOT_DIR/localize-playerbots-ru.sh" --apply
else
log "playerbot Russian localization disabled"
fi
log "applying post-database module setup"
bash "$ROOT_DIR/setup-modules.sh"