Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate: Shuttle calls #1116

Merged
merged 1 commit into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions code/__HELPERS/time.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,19 @@ GLOBAL_VAR_INIT(rollovercheck_last_timeofday, 0)
if(!second)
return "сейчас же"
if(second < 60)
return "[second] [declension_ru(second, "секунду", "секунды", "секунд")]"
return "[second] [declension_ru(second, "секунда", "секунды", "секунд")]"
var/minute = FLOOR(second / 60, 1)
second = FLOOR(MODULUS(second, 60), round_seconds_to)
var/secondT
if(second)
secondT = " и [second] [declension_ru(second, "секунду", "секунды", "секунд")]"
secondT = " и [second] [declension_ru(second, "секунда", "секунды", "секунд")]"
if(minute < 60)
return "[minute] [declension_ru(minute, "минуту", "минуты", "минут")][secondT]"
return "[minute] [declension_ru(minute, "минута", "минуты", "минут")][secondT]"
var/hour = FLOOR(minute / 60, 1)
minute = MODULUS(minute, 60)
var/minuteT
if(minute)
minuteT = ", [minute] [declension_ru(minute, "минуту", "минуты", "минут")]"
minuteT = ", [minute] [declension_ru(minute, "минута", "минуты", "минут")]"
if(hour < 24)
return "[hour] [declension_ru(minute, "час", "часа", "часов")][minuteT][secondT]"
var/day = FLOOR(hour / 24, 1)
Expand Down
16 changes: 8 additions & 8 deletions code/controllers/subsystem/shuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -319,21 +319,21 @@ SUBSYSTEM_DEF(shuttle)
/datum/controller/subsystem/shuttle/proc/canEvac()
var/shuttle_refuel_delay = CONFIG_GET(number/shuttle_refuel_delay)
if(world.time - SSticker.round_start_time < shuttle_refuel_delay)
return "The emergency shuttle is refueling. Please wait [DisplayTimeText(shuttle_refuel_delay - (world.time - SSticker.round_start_time))] before attempting to call."
return "Эвакуационный шаттл на дозаправке. Следующий вызов будет доступен в течении [DisplayTimeText(shuttle_refuel_delay - (world.time - SSticker.round_start_time))]."

switch(emergency.mode)
if(SHUTTLE_RECALL)
return "The emergency shuttle may not be called while returning to CentCom."
return "Эвакуационный шаттл не может быть отозван на пути к Центральному Командованию."
if(SHUTTLE_CALL)
return "The emergency shuttle is already on its way."
return "Эвакуационный шаттл уже в пути."
if(SHUTTLE_DOCKED)
return "The emergency shuttle is already here."
return "Эвакуационный шаттл уже состыкован со станцией."
if(SHUTTLE_IGNITING)
return "The emergency shuttle is firing its engines to leave."
return "Эвакуационный шаттл производит запуск двигателей для отлёта."
if(SHUTTLE_ESCAPE)
return "The emergency shuttle is moving away to a safe distance."
return "Эвакуационный шаттл удаляется на безопасное расстояние."
if(SHUTTLE_STRANDED)
return "The emergency shuttle has been disabled by CentCom."
return "Вызов эвакуационного шаттла был заблокирован Центральным Командованием."

return TRUE

Expand Down Expand Up @@ -396,7 +396,7 @@ SUBSYSTEM_DEF(shuttle)

call_reason = trim(html_encode(call_reason))

var/emergency_reason = "\n\nNature of emergency:\n[call_reason]"
var/emergency_reason = "\n\nХарактер происшествия:\n[call_reason]"

emergency.request(
signal_origin = signal_origin,
Expand Down
36 changes: 18 additions & 18 deletions code/modules/shuttle/mobile_port/variants/emergency/emergency.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
SSshuttle.emergency_last_call_loc = null

priority_announce(
text = "The emergency shuttle has been called. [red_alert ? "Red Alert state confirmed: Dispatching priority shuttle. " : "" ]It will arrive in [(timeLeft(60 SECONDS))] minutes.[reason][SSshuttle.emergency_last_call_loc ? "\n\nCall signal traced. Results can be viewed on any communications console." : "" ][SSshuttle.admin_emergency_no_recall ? "\n\nWarning: Shuttle recall subroutines disabled; Recall not possible." : ""]",
title = "Emergency Shuttle Dispatched",
text = "Эвакуационный шаттл вызван. [red_alert ? "Красный уровень угрозы подтверждён: Отправлен приоритетный шаттл. " : "" ]Ожидаемое время прибытия: [timeLeft(60 SECONDS)] [declension_ru(timeLeft(60 SECONDS), "минуты", "минут", "минут")].[reason][SSshuttle.emergency_last_call_loc ? "\n\nСигнал вызова отслежен. Результаты можно просмотреть на любой консоли коммуникаций." : "" ][SSshuttle.admin_emergency_no_recall ? "\n\nПредупреждение: Подсистемы отзыва шаттла отключены; Отзыв невозможен." : ""]",
title = "Вызван эвакуационный шаттл",
sound = ANNOUNCER_SHUTTLECALLED,
sender_override = "Emergency Shuttle Uplink Alert",
sender_override = "Аварийное оповещение эвакуационного шаттла",
color_override = "orange",
)

Expand All @@ -70,10 +70,10 @@
else
SSshuttle.emergency_last_call_loc = null
priority_announce(
text = "The emergency shuttle has been recalled.[SSshuttle.emergency_last_call_loc ? " Recall signal traced. Results can be viewed on any communications console." : "" ]",
title = "Emergency Shuttle Recalled",
text = "Эвакуационный шаттл был отозван.[SSshuttle.emergency_last_call_loc ? " Сигнал отзыва шаттла отслежен. Результаты можно просмотреть на любой консоли коммуникаций." : "" ]",
title = "Эвакуационный шаттл отозван",
sound = ANNOUNCER_SHUTTLERECALLED,
sender_override = "Emergency Shuttle Uplink Alert",
sender_override = "Аварийное оповещение эвакуационного шаттла",
color_override = "orange",
)

Expand Down Expand Up @@ -165,10 +165,10 @@
setTimer(SSshuttle.emergency_dock_time)
send2adminchat("Server", "The Emergency Shuttle has docked with the station.")
priority_announce(
text = "[SSshuttle.emergency] has docked with the station. You have [DisplayTimeText(SSshuttle.emergency_dock_time)] to board the emergency shuttle.",
title = "Emergency Shuttle Arrival",
text = "[SSshuttle.emergency] состыковался со станцией. У вас есть [DisplayTimeText(SSshuttle.emergency_dock_time)], чтобы прибыть на борт шаттла.",
title = "Эвакуационный шаттл прибыл",
sound = ANNOUNCER_SHUTTLEDOCK,
sender_override = "Emergency Shuttle Uplink Alert",
sender_override = "Аварийное оповещение эвакуационного шаттла",
color_override = "orange",
)
ShuttleDBStuff()
Expand Down Expand Up @@ -228,9 +228,9 @@
launch_status = ENDGAME_LAUNCHED
setTimer(SSshuttle.emergency_escape_time * engine_coeff)
priority_announce(
text = "The emergency shuttle has left the station. Estimate [timeLeft(60 SECONDS)] minutes until the shuttle docks at [command_name()].",
title = "Emergency Shuttle Departure",
sender_override = "Emergency Shuttle Uplink Alert",
text = "Эвакуационный шаттл покинул станцию. Приблизительное время ожидания: [timeLeft(60 SECONDS)] [declension_ru(timeLeft(60 SECONDS), "минуты", "минут", "минут")], прежде чем шаттл прибудет на [command_name()].",
title = "Произведена отстыковка эвакуационного шаттла",
sender_override = "Аварийное оповещение эвакуационного шаттла",
color_override = "orange",
)
INVOKE_ASYNC(SSticker, TYPE_PROC_REF(/datum/controller/subsystem/ticker, poll_hearts))
Expand Down Expand Up @@ -278,9 +278,9 @@
// just double check
SSmapping.lazy_load_template(LAZY_TEMPLATE_KEY_NUKIEBASE)
destination_dock = "emergency_syndicate"
minor_announce("Corruption detected in \
shuttle navigation protocols. Please contact your \
supervisor.", "SYSTEM ERROR:", sound_override = 'sound/announcer/announcement/announce_syndi.ogg')
minor_announce("Обнаружен сбой в \
навигационных протоколах. Пожалуйста, свяжитесь с \
руководством.", "КРИТИЧЕСКАЯ НЕИСПРАВНОСТЬ:", sound_override = 'sound/announcer/announcement/announce_syndi.ogg')

dock_id(destination_dock)
mode = SHUTTLE_ENDGAME
Expand All @@ -294,9 +294,9 @@
launch_status = ENDGAME_LAUNCHED
setTimer(SSshuttle.emergency_escape_time)
priority_announce(
text = "The emergency shuttle is preparing for direct jump. Estimate [timeLeft(60 SECONDS)] minutes until the shuttle docks at [command_name()].",
title = "Emergency Shuttle Transit Failure",
sender_override = "Emergency Shuttle Uplink Alert",
text = "Эвакуационный шаттл готовится к Блюспейс прыжку. Приблизительное время ожидания: [timeLeft(60 SECONDS)] [declension_ru(timeLeft(60 SECONDS), "минуты", "минут", "минут")], прежде чем шаттл прибудет на [command_name()].",
title = "Экстренный транзит шаттла",
sender_override = "Аварийное оповещение эвакуационного шаттла",
color_override = "orange",
)

Expand Down
Loading