Skip to content

Commit

Permalink
Update requests_console.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
VERG-SS220 committed Mar 13, 2024
1 parent 2b728d4 commit b9d487e
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions code/game/machinery/requests_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ GLOBAL_LIST_EMPTY(req_console_information)
GLOBAL_LIST_EMPTY(allRequestConsoles)

/obj/machinery/requests_console
name = "Requests Console"
desc = "A console intended to send requests to different departments on the station."
name = "Консоль запросов"
desc = "Консоль, предназначанная для отправки запросов в другие отделы станции."
anchored = TRUE
icon = 'icons/obj/terminals.dmi'
icon_state = "req_comp_off"
Expand Down Expand Up @@ -94,9 +94,9 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
Radio.follow_target = src
. = ..()

announcer.config.default_title = "[department] announcement"
announcer.config.default_title = "Оповещение от [department]"

name = "[department] Requests Console"
name = "Консоль запросов [department]"
GLOB.allRequestConsoles += src
if(departmentType & RC_ASSIST)
GLOB.req_console_assistance |= department
Expand Down Expand Up @@ -144,7 +144,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
/obj/machinery/requests_console/ui_interact(mob/user, datum/tgui/ui = null)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "RequestConsole", "[department] Request Console")
ui = new(user, src, "RequestConsole", "Консоль запросов [department]")
ui.open()

/obj/machinery/requests_console/ui_data(mob/user)
Expand Down Expand Up @@ -186,7 +186,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
if(reject_bad_text(params["write"]))
recipient = params["write"] //write contains the string of the receiving department's name

var/new_message = tgui_input_text(usr, "Write your message:", "Awaiting Input", encode = FALSE)
var/new_message = tgui_input_text(usr, "Напишите своё сообщение:", "Ожидание ввода", encode = FALSE)
if(new_message)
message = new_message
screen = RCS_MESSAUTH
Expand All @@ -201,7 +201,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
reset_message(TRUE)

if("writeAnnouncement")
var/new_message = tgui_input_text(usr, "Write your message:", "Awaiting Input", message, multiline = TRUE, encode = FALSE)
var/new_message = tgui_input_text(usr, "Напишите своё оповещение:", "Ожидание ввода", message, multiline = TRUE, encode = FALSE)
if(new_message)
message = new_message
else
Expand Down Expand Up @@ -243,10 +243,10 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
radiochannel = "AI Private"
else if(recipient in SUPPLY_ROLES)
radiochannel = "Supply"
message_log.Add(list(list("Message sent to [recipient] at [station_time_timestamp()]", "[message]")))
Radio.autosay("Alert; a new message has been received from [department]", "[recipient] Requests Console", "[radiochannel]")
message_log.Add(list(list("Сообщение отправлено [recipient] в [station_time_timestamp()]", "[message]")))
Radio.autosay("Внимание; новое сообщение от [department]", "Консоль запросов [recipient]", "[radiochannel]")
else
atom_say("No server detected!")
atom_say("Сервер не обнаружен!")

//Handle screen switching
if("setScreen")
Expand Down Expand Up @@ -275,16 +275,16 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
if("printLabel")
var/error_message
if(!ship_tag_index)
error_message = "Please select a destination."
error_message = "Выберите назначение."
else if(!msgVerified)
error_message = "Please verify shipper ID."
error_message = "Предъявите ID поставщика."
else if(world.time < print_cooldown)
error_message = "Please allow the printer time to prepare the next shipping label."
error_message = "Позвольте принтеру напечатать этикетку."
if(error_message)
atom_say("[error_message]")
return
print_label(ship_tag_name, ship_tag_index)
shipping_log.Add(list(list("Shipping Label printed for [ship_tag_name]", "[msgVerified]"))) // List in a list for passing into TGUI
shipping_log.Add(list(list("Этикетка напечатана для [ship_tag_name]", "[msgVerified]"))) // List in a list for passing into TGUI
reset_message(TRUE)

//Handle silencing the console
Expand All @@ -298,7 +298,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
return
if(screen == RCS_MESSAUTH)
var/obj/item/card/id/T = I
msgVerified = "Verified by [T.registered_name] ([T.assignment])"
msgVerified = "Подтверждено [T.registered_name] ([T.assignment])"
SStgui.update_uis(src)
if(screen == RCS_ANNOUNCE)
var/obj/item/card/id/ID = I
Expand All @@ -307,18 +307,18 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
announcer.author = ID.assignment ? "[ID.assignment] [ID.registered_name]" : ID.registered_name
else
reset_message()
to_chat(user, "<span class='warning'>You are not authorized to send announcements.</span>")
to_chat(user, "<span class='warning'>У вас нет допуска на отправку оповещений.</span>")
SStgui.update_uis(src)
if(screen == RCS_SHIPPING)
var/obj/item/card/id/T = I
msgVerified = "Sender verified as [T.registered_name] ([T.assignment])"
msgVerified = "Отправитель подтверждён как [T.registered_name] ([T.assignment])"
SStgui.update_uis(src)
if(istype(I, /obj/item/stamp))
if(inoperable(MAINT))
return
if(screen == RCS_MESSAUTH)
var/obj/item/stamp/T = I
msgStamped = "Stamped with the [T.name]"
msgStamped = "Проштамповано [T.name]"
SStgui.update_uis(src)
else
return ..()
Expand Down Expand Up @@ -371,7 +371,7 @@ GLOBAL_LIST_EMPTY(allRequestConsoles)
reminder_timer_id = TIMER_ID_NULL
return

atom_say("Unread message(s) available.")
atom_say("Есть непротичанное(-ые) сообщение(-я)")

/obj/machinery/requests_console/proc/print_label(tag_name, tag_index)
var/obj/item/shippingPackage/sp = new /obj/item/shippingPackage(get_turf(src))
Expand Down

0 comments on commit b9d487e

Please sign in to comment.