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

feat: add translation for security levels and events #672

Merged
merged 3 commits into from
Nov 10, 2023
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
14 changes: 7 additions & 7 deletions code/__DEFINES/cult_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
#define CULT_GREETING "<span class='cultlarge'>You catch a glimpse of the Realm of [SSticker.cultdat.entity_name], [SSticker.cultdat.entity_title3]. \
You now see how flimsy the world is, you see that it should be open to the knowledge of [SSticker.cultdat.entity_name].</span>"

#define CULT_CURSES list("A fuel technician just slit his own throat and begged for death.", \
"The shuttle's navigation programming was replaced by a file containing two words, IT COMES.", \
"The shuttle's custodian tore out his guts and began painting strange shapes on the floor.", \
"A shuttle engineer began screaming 'DEATH IS NOT THE END' and ripped out wires until an arc flash seared off her flesh.", \
"A shuttle inspector started laughing madly over the radio and then threw herself into an engine turbine.", \
"The shuttle dispatcher was found dead with bloody symbols carved into their flesh.", \
"Steve repeatedly touched a lightbulb until his hands fell off.")
#define CULT_CURSES list("Заправщик шаттла только что перерезал себе горло и умолял о смерти.",\
"Навигационная программа шаттла была заменена файлом, содержащим два слова: «ОНО ИДЁТ».",\
"Уборщик шаттла вырвал свои кишки и начал рисовать странные фигуры на полу.",\
"Инженер шаттла кричала «СМЕРТЬ НЕ КОНЕЦ» и вырывала проводку, пока электрический разряд не испепелил её плоть.",\
"Инспектор шаттла начала безумно смеяться в рацию и бросилась в турбину двигателя.",\
"Диспетчер шаттла был найден мертвым, на его теле были вырезаны кровавые символы.",\
"Стив так долго держался за лампочку, что у него отнялись руки.")

// Misc
#define SOULS_TO_REVIVE 3
Expand Down
8 changes: 4 additions & 4 deletions code/controllers/subsystem/SSnightshift.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ SUBSYSTEM_DEF(nightshift)
if(night_time)
announcing = FALSE
if(!emergency)
announce("Restoring night lighting configuration to normal operation.")
announce("Система ночного освещения снова работает в штатном режиме.")
else
announce("Disabling night lighting: Station is in a state of emergency.")
announce("Система ночного освещения отключена в связи с наличием существенной угрозы для станции. Пожалуйста, сохраняйте спокойствие.")
if(emergency)
night_time = FALSE
if(nightshift_active != night_time)
Expand All @@ -52,9 +52,9 @@ SUBSYSTEM_DEF(nightshift)
nightshift_active = active
if(announce)
if(active)
announce("Good evening, crew. To reduce power consumption and stimulate the circadian rhythms of some species, all of the lights aboard the station have been dimmed for the night.")
announce("Добрый вечер, экипаж. Для снижения энергопотребления и стимуляции циркадных ритмов некоторых видов, освещ+ение на борту станции переведено в ночной режим.")
else
announce("Good morning, crew. As it is now day time, all of the lights aboard the station have been restored to their former brightness.")
announce("Доброе утро, экипаж. В связи с наступлением дневного времени освещ+ение на борту станции переведено в дневной режим.")
for(var/A in GLOB.apcs)
var/obj/machinery/power/apc/APC = A
if(is_station_level(APC.z))
Expand Down
2 changes: 1 addition & 1 deletion code/defines/procs/announcer_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GLOBAL_DATUM_INIT(minor_announcement, /datum/announcer, new(config_type = /datum
GLOBAL_DATUM_INIT(major_announcement, /datum/announcer, new(config_type = /datum/announcement_configuration/major))

/datum/announcement_configuration
var/default_title = "Attention"
var/default_title = "Внимание"
/// The name used when describing the announcement type in logs.
var/log_name = ANNOUNCE_KIND_DEFAULT
/// Whether or not to log the announcement when made.
Expand Down
2 changes: 1 addition & 1 deletion code/modules/events/alien_infestation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/datum/event/alien_infestation/announce(false_alarm)
if(successSpawn || false_alarm)
GLOB.major_announcement.Announce("Confirmed outbreak of level 3-X biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/effects/siren-spooky.ogg', new_sound2 = 'sound/AI/outbreak3.ogg')
GLOB.major_announcement.Announce("Вспышка биологической угрозы уровня 3-ИКС зафиксирована на борту станции [station_name()]. Всему персоналу надлежит сдержать её распространение любой ценой!", "БИОЛОГИЧЕСКАЯ УГРОЗА.", 'sound/effects/siren-spooky.ogg', new_sound2 = 'sound/AI/outbreak3.ogg')
else
log_and_message_admins("Warning: Could not spawn any mobs for event Alien Infestation")

Expand Down
2 changes: 1 addition & 1 deletion code/modules/events/anomaly_bluespace.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
startWhen = 3
announceWhen = 10
anomaly_path = /obj/effect/anomaly/bluespace
prefix_message = "Unstable bluespace anomaly detected on long range scanners."
prefix_message = "На сканерах дальнего действия обнаружена нестабильная блюспейс-аномалия."
announce_sound = 'sound/AI/anomaly_bluespace.ogg'
2 changes: 1 addition & 1 deletion code/modules/events/anomaly_cryo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
startWhen = 3
announceWhen = 10
anomaly_path = /obj/effect/anomaly/cryo
prefix_message = "Cryogenic anomaly detected on long range scanners."
prefix_message = "На сканерах дальнего действия обнаружена криогенная аномалия."
announce_sound = 'sound/AI/anomaly_pyro.ogg'
4 changes: 2 additions & 2 deletions code/modules/events/anomaly_event.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var/turf/target_turf
announceWhen = 1
/// The prefix message for the anomaly annoucement.
var/prefix_message = "Localized hyper-energetic flux wave detected on long range scanners."
var/prefix_message = "На сканерах дальнего действия обнаружена гиперэнергетическая потоковая аномалия."
/// Sound effect used
var/announce_sound = 'sound/AI/anomaly_flux.ogg'

Expand Down Expand Up @@ -42,7 +42,7 @@
if(false_alarm && !target)
log_debug("Failed to find a valid area when trying to make a false alarm anomaly!")
return
GLOB.minor_announcement.Announce("[prefix_message] Expected location: [target.name].", "Anomaly Alert", announce_sound)
GLOB.minor_announcement.Announce("[prefix_message] Предполагаемая локация: [target.name].", "ОБНАРУЖЕНА АНОМАЛИЯ.", announce_sound)

/datum/event/anomaly/start()
var/newAnomaly = new anomaly_path(target_turf)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/events/anomaly_flux.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
startWhen = 10
announceWhen = 3
anomaly_path = /obj/effect/anomaly/flux
prefix_message = "Localized hyper-energetic flux wave detected on long range scanners."
prefix_message = "На сканерах дальнего действия обнаружена поточная гиперэнергетическая аномалия."
announce_sound = 'sound/AI/anomaly_flux.ogg'
2 changes: 1 addition & 1 deletion code/modules/events/anomaly_grav.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
startWhen = 3
announceWhen = 20
anomaly_path = /obj/effect/anomaly/grav
prefix_message = "Gravitational anomaly detected on long range scanners."
prefix_message = "На сканерах дальнего действия обнаружена гравитационная аномалия."
announce_sound = 'sound/AI/anomaly_gravity.ogg'
2 changes: 1 addition & 1 deletion code/modules/events/anomaly_pyro.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
startWhen = 3
announceWhen = 10
anomaly_path = /obj/effect/anomaly/pyro
prefix_message = "Pyroclastic anomaly detected on long range scanners."
prefix_message = "На сканерах дальнего действия обнаружена пирокластическая аномалия."
announce_sound = 'sound/AI/anomaly_pyro.ogg'
2 changes: 1 addition & 1 deletion code/modules/events/anomaly_vortex.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
startWhen = 10
announceWhen = 3
anomaly_path = /obj/effect/anomaly/bhole
prefix_message = "Localized high-intensity vortex anomaly detected on long range scanners."
prefix_message = "На сканерах дальнего действия обнаружена вихревая аномалия высокой интенсивности."
announce_sound = 'sound/AI/anomaly_vortex.ogg'
4 changes: 2 additions & 2 deletions code/modules/events/apc_overload.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
SEND_SOUND(M, S)

/datum/event/apc_overload/announce()
GLOB.minor_announcement.Announce("Overload detected in [station_name()]'s powernet. Engineering, please check all underfloor APC terminals.", "Critical Power Failure", 'sound/AI/power_overload.ogg')
GLOB.minor_announcement.Announce("Зафиксирована перегрузка энергосети станции [station_name()]. Инженерному отделу надлежит проверить все терминалы ЛКП под напольным покрытием.", "КРИТИЧЕСКИЙ СБОЙ СИСТЕМЫ ПИТАНИЯ.", 'sound/AI/power_overload.ogg')

/datum/event/apc_overload/end()
return TRUE
Expand All @@ -33,7 +33,7 @@
/area/station/turret_protected/ai)

if(announce)
GLOB.minor_announcement.Announce("Overload detected in [station_name()]'s powernet. Engineering, please check all underfloor APC terminals.", "Critical Power Failure", 'sound/AI/power_overload.ogg')
GLOB.minor_announcement.Announce("Зафиксирована перегрузка энергосети станции [station_name()]. Инженерному отделу надлежит проверить все терминалы ЛКП под напольным покрытием.", "КРИТИЧЕСКИЙ СБОЙ СИСТЕМЫ ПИТАНИЯ.", 'sound/AI/power_overload.ogg')

// break APC_BREAK_PROBABILITY% of all of the APCs on the station
var/affected_apc_count = 0
Expand Down
6 changes: 3 additions & 3 deletions code/modules/events/apc_short.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
SEND_SOUND(M, S)

/datum/event/apc_short/announce()
GLOB.minor_announcement.Announce("Overload detected in [station_name()]'s powernet. Engineering, please repair shorted APCs.", "Systems Power Failure", 'sound/AI/power_overload.ogg')
GLOB.minor_announcement.Announce("Зафиксирована перегрузка энергосети станции [station_name()]. Инженерному отделу надлежит проверить все замкнувшие ЛКП.", "СБОЙ СИСТЕМЫ ПИТАНИЯ.", 'sound/AI/power_overload.ogg')

/datum/event/apc_short/end()
return TRUE
Expand All @@ -30,7 +30,7 @@
/area/station/engineering/engine,
/area/station/engineering/engine/supermatter,
/area/station/turret_protected/ai)
GLOB.minor_announcement.Announce("Power failure detected in [station_name()]'s powernet. All APCs have lost power. Gravity systems likely to fail.", "Systems Power Failure", 'sound/AI/attention.ogg')
GLOB.minor_announcement.Announce("Обнаружен сбой питания в сети [station_name()]. Все ЛКП были разряжены. Вероятен отказ генератора гравитации.", "ОТКАЗ СИСТЕМЫ ПИТАНИЯ.", 'sound/AI/attention.ogg')
for(var/thing in GLOB.apcs)
var/obj/machinery/power/apc/A = thing
var/area/current_area = get_area(A)
Expand All @@ -49,7 +49,7 @@
/area/station/engineering/engine/supermatter,
/area/station/turret_protected/ai)
if(announce)
GLOB.minor_announcement.Announce("Overload detected in [station_name()]'s powernet. Engineering, please repair shorted APCs.", "Systems Power Failure", 'sound/AI/power_overload.ogg')
GLOB.minor_announcement.Announce("Зафиксирована перегрузка энергосети станции [station_name()]. Инженерному отделу надлежит проверить все замкнувшие ЛКП.", "СБОЙ СИСТЕМЫ ПИТАНИЯ.", 'sound/AI/power_overload.ogg')
// break APC_BREAK_PROBABILITY% of all of the APCs on the station
var/affected_apc_count = 0
for(var/thing in GLOB.apcs)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/events/blob_spawn.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/datum/event/blob/announce(false_alarm)
if(successSpawn || false_alarm)
GLOB.major_announcement.Announce("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", 'sound/AI/outbreak5.ogg')
GLOB.major_announcement.Announce("Вспышка биологической угрозы 5-го уровня зафиксирована на борту станции [station_name()]. Всему персоналу надлежит сдержать её распространение любой ценой!", "БИОЛОГИЧЕСКАЯ УГРОЗА.", 'sound/AI/outbreak5.ogg')
else
log_and_message_admins("Warning: Could not spawn any mobs for event Blob")

Expand Down
16 changes: 8 additions & 8 deletions code/modules/events/brand_intelligence.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
var/list/obj/machinery/economy/vending/vendingMachines = list()
var/list/obj/machinery/economy/vending/infectedMachines = list()
var/obj/machinery/economy/vending/originMachine
var/list/rampant_speeches = list("Try our aggressive new marketing strategies!", \
"You should buy products to feed your lifestyle obsession!", \
"Consume!", \
"Your money can buy happiness!", \
"Engage direct marketing!", \
"Advertising is legalized lying! But don't let that put you off our great deals!", \
"You don't want to buy anything? Yeah, well I didn't want to buy your mom either.")
var/list/rampant_speeches = list("Попробуйте нашу новую АГРЕССИВНУЮ стратегию маркетинга!", \
"Вам стоит что-нибудь купить, дабы утолить ваши ПОТРЕБНОСТИ!", \
"Потребляй!", \
"За ваши деньги можно купить счастье!", \
"Методика ПРЯМОГО маркетинга!", \
"Реклама узаконила ложь! Но не позвольте ей отвлечь вас от наших замечательных предложений!", \
"Не хочешь платить? Я твоей мамке тоже платить не хотел.")

/datum/event/brand_intelligence/announce(false_alarm)
var/alarm_source = originMachine
Expand All @@ -24,7 +24,7 @@
kill()
return

GLOB.minor_announcement.Announce("Rampant brand intelligence has been detected aboard [station_name()], please stand-by. The origin is believed to be \a [alarm_source] vendor.", "Machine Learning Alert", 'sound/AI/brand_intelligence.ogg')
GLOB.minor_announcement.Announce("На борту станции [station_name()] зафиксировано распространение цифрового торгового вируса, пожалуйста, будьте наготове. Вирус, предположительно, берет начало от [alarm_source] торгового автомата.", "ЦИФРОВОЙ ВИРУС.", 'sound/AI/brand_intelligence.ogg')

/datum/event/brand_intelligence/start()
var/list/obj/machinery/economy/vending/leaderables = list()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/events/bureaucratic_error.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)

/datum/event/bureaucratic_error/announce()
GLOB.major_announcement.Announce("A recent bureaucratic error in the Human Resources Department may result in personnel shortages in some departments and redundant staffing in others. Contact your local HoP to solve this issue.", "Paperwork Mishap Alert")
GLOB.major_announcement.Announce("Недавняя бюрократическая ошибка в отделе кадров может привести к нехватке персонала в одних отделах и избытку в других. Свяжитесь с ГП вашей станции для решения этой проблемы.", "Ошибка системы документооборота.")

/datum/event/bureaucratic_error/start()
var/list/affected_jobs = list() // For logging
Expand Down
4 changes: 2 additions & 2 deletions code/modules/events/carp_migration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
/datum/event/carp_migration/announce()
var/announcement = ""
if(severity == EVENT_LEVEL_MAJOR)
announcement = "Massive migration of unknown biological entities has been detected near [station_name()], please stand-by."
announcement = "Массовая миграция неизвестных биологических объектов была зафиксирована вблизи станции [station_name()], будьте наготове."
else
announcement = "Unknown biological entities have been detected near [station_name()], please stand-by."
announcement = "Неизвестные биологические объекты были зафиксированы вблизи станции [station_name()], будьте наготове."
GLOB.minor_announcement.Announce(announcement, "Lifesign Alert")

/datum/event/carp_migration/start()
Expand Down
12 changes: 6 additions & 6 deletions code/modules/events/communications_blackout.dm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/datum/event/communications_blackout/announce(false_alarm)
var/alert = pick( "Ionospheric anomalies detected. Temporary telecommunication failure imminent. Please contact you*%fj00)`5vc-BZZT", \
"Ionospheric anomalies detected. Temporary telecommunication failu*3mga;b4;'1v?-BZZZT", \
"Ionospheric anomalies detected. Temporary telec#MCi46:5.;@63-BZZZZT", \
"Ionospheric anomalies dete'fZ\\kg5_0-BZZZZZT", \
"Ionospheri:%? MCayj^j<.3-BZZZZZZT", \
"#4nd%;f4y6,>?%-BZZZZZZZT")
var/alert = pick( "Обнаружены ионосферные аномалии. Неизбежен временный сбой связи. Пожалуйста, свяжитесь с вашим*%fj 00)`5 vc-БЗЗЗ", \
"Обнаружены ионосферные аномалии. Неизбежен временный сбо*3mga;b4;'1v?-БЗЗЗЗ", \
"Обнаружены ионосферные аномалии. Неизбежен време#MCi46:5.;@63-БЗЗЗЗЗ", \
"Обнаружены ионосфе'fZ\\kg5_0-БЗЗЗЗЗ", \
"Обнаруж:%? MCayj^j<.3-БЗЗЗЗЗ", \
"#4nd%;f4y6,>?%-БЗЗЗЗЗЗЗ")

for(var/mob/living/silicon/ai/A in GLOB.player_list) //AIs are always aware of communication blackouts.
to_chat(A, "<br>")
Expand Down
4 changes: 2 additions & 2 deletions code/modules/events/door_runtime.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/event/door_runtime

/datum/event/door_runtime/announce()
GLOB.minor_announcement.Announce("Hostile runtime detected in door controllers. Isolation lockdown protocols are now in effect. Please remain calm.", "Network Alert", 'sound/AI/door_runtimes.ogg')
GLOB.minor_announcement.Announce("Вредоносное программное обеспечение обнаружено в системе контроля шл+юзов. Задействованы протоколы изоляции. Пожалуйста, сохраняйте спокойствие.", "УЯЗВИМОСТЬ СЕТИ.", 'sound/AI/door_runtimes.ogg')

/datum/event/door_runtime/start()
for(var/obj/machinery/door/D in GLOB.airlocks)
Expand All @@ -13,4 +13,4 @@
post_status(STATUS_DISPLAY_ALERT, "lockdown")

/datum/event/door_runtime/proc/reboot()
GLOB.minor_announcement.Announce("Automatic system reboot complete. Have a secure day.","Network reset:", 'sound/AI/door_runtimes_fix.ogg')
GLOB.minor_announcement.Announce("Автоматическая перезагрузка системы завершена. Хорошего вам дня.","ПЕРЕЗАГРУЗКА СЕТИ:", 'sound/AI/door_runtimes_fix.ogg')
2 changes: 1 addition & 1 deletion code/modules/events/electrical_storm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var/lightsoutRange = 25

/datum/event/electrical_storm/announce()
GLOB.minor_announcement.Announce("An electrical storm has been detected in your area, please repair potential electronic overloads.", "Electrical Storm Alert", 'sound/AI/elec_storm.ogg')
GLOB.minor_announcement.Announce("На борту станции зафиксирована электрическая буря. Пожалуйста, устраните потенциальные перегрузки электросетей.", "ЭЛЕКТРИЧЕСКАЯ БУРЯ.", 'sound/AI/elec_storm.ogg')

/datum/event/electrical_storm/start()
var/list/epicentreList = list()
Expand Down
Loading