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

translation: brig cells and computer #6224

Draft
wants to merge 3 commits into
base: master220
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
19 changes: 16 additions & 3 deletions code/__HELPERS/time.dm
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,21 @@
/proc/seconds_to_time(var/seconds as num)
var/numSeconds = seconds % 60
var/numMinutes = (seconds - numSeconds) / 60
return "[numMinutes] [numMinutes > 1 ? "minutes" : "minute"] and [numSeconds] seconds"

var/sufM = .

var/list/nums1 = list(1, 21, 31, 41, 51)
var/list/nums2 = list(2, 3, 4, 22, 23, 24, 32, 33, 34, 42, 43, 44, 52, 53, 54)
var/list/nums3 = list(5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26, 27, 28, 29, 30, 35, 36, 37, 38, 39, 40, 45, 46, 47, 48, 49, 50, 55, 56, 57, 58, 59, 60)

if(numMinutes in nums1)
sufM = "минуту"
if (numMinutes in nums2)
sufM = "минуты"
if (numMinutes in nums3)
sufM = "минут"

return "[numMinutes] [sufM]"
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved

//Take a value in seconds and makes it display like a clock
/proc/seconds_to_clock(var/seconds as num)
Expand All @@ -141,8 +155,7 @@
var/hour = null
var/day = null

if(!second)
return "0 seconds"

if(second >= 60)
minute = round_down(second / 60)
second = round(second - (minute * 60), 0.1)
Expand Down
4 changes: 2 additions & 2 deletions code/game/machinery/computer/brigcells.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/obj/machinery/computer/brigcells
name = "cell management computer"
desc = "Используется для управления тюремными камерами."
desc = "Используется для дистанционного управления камерами заключённых."
icon_keyboard = "security_key"
icon_screen = "cell_monitor"
use_power = IDLE_POWER_USE
Expand Down Expand Up @@ -64,7 +64,7 @@
var/obj/machinery/door_timer/T = locate(ref)
if (T)
T.timer_end()
T.Radio.autosay("Timer stopped manually from a cell management console.", T.name, "Security", list(z))
T.Radio.autosay("Таймер был вручную остановлен через консоль.", T.name, "Security", list(z))
return TRUE

return FALSE
104 changes: 59 additions & 45 deletions code/game/machinery/doors/brigdoors.dm
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@
for(var/obj/machinery/computer/prisoner/C in GLOB.prisoncomputer_list)
var/obj/item/paper/P = new /obj/item/paper(C.loc)
P.name = "[id] log - [occupant] [station_time_timestamp()]"
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
P.info = "<center><b>[id] - Brig record</b></center><br><hr><br>"
P.info += {"<center>[station_name()] - Security Department</center><br>
<center><small><b>Admission data:</b></small></center><br>
<small><b>Log generated at:</b> [station_time_timestamp()]<br>
<b>Detainee:</b> [occupant]<br>
<b>Duration:</b> [seconds_to_time(timetoset / 10)]<br>
<b>Charge(s):</b> [crimes]<br>
<b>Arresting Officer:</b> [usr.name]<br><hr><br>
<small>This log file was generated automatically upon activation of a cell timer.</small>"}
P.info = "<center><b>[id] - Записи Службы Безопасности</b></center><br><hr><br>"
P.info += {"<center>[station_name()] - Служба Безопасности</center><br>
<center><small><b>Данные:</b></small></center><br>
<small><b>Запись создана в:</b> [station_time_timestamp()]<br>
<b>Заключён:</b> [occupant]<br>
<b>На:</b> [seconds_to_time(timetoset / 10)]<br>
<b>За:</b> [crimes]<br>
<b>Сотрудник:</b> [usr.name]<br><hr><br>
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
<small>Записи были созданы автоматически путём активации таймера камеры.</small>"}

playsound(C.loc, "sound/goonstation/machines/printer_dotmatrix.ogg", 50, 1)
GLOB.cell_logs += P
Expand All @@ -122,13 +122,13 @@
var/datum/data/record/R = find_security_record("name", occupant)

var/timetext = seconds_to_time(timetoset / 10)
var/announcetext = "Detainee [occupant] ([prisoner_drank]) has been incarcerated for [timetext] for the crime of: '[crimes]'. \
Arresting Officer: [usr.name].[R ? "" : " Detainee record not found, manual record update required."]"
var/announcetext = "Заключён [occupant] ([prisoner_drank]) на [timetext] за: [crimes]. \
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
Сотрудник: [usr.name].[R ? "" : " Отсутствуют записи о заключённом, требуется обновление вручную."]"
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
Radio.autosay(announcetext, name, "Security")

// Notify the actual criminal being brigged. This is a QOL thing to ensure they always know the charges against them.
// Announcing it on radio isn't enough, as they're unlikely to have sec radio.
notify_prisoner("You have been incarcerated for [timetext] for the crime of: '[crimes]'.")
notify_prisoner("Вы были заключены на [timetext] за: [crimes]")
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved

if(prisoner_trank != "unknown" && prisoner_trank != "Civilian")
SSjobs.notify_dept_head(prisoner_trank, announcetext)
Expand All @@ -144,16 +144,16 @@
rank = I.assignment
if(!R.fields["comments"] || !islist(R.fields["comments"])) //copied from security computer code because apparently these need to be initialized
R.fields["comments"] = list()
R.fields["comments"] += "Autogenerated by [name] on [GLOB.current_date_string] [station_time_timestamp()]<BR>Sentenced to [timetoset/10] seconds for the charges of \"[crimes]\" by [rank] [usr.name]."
R.fields["comments"] += "Автоматически сгенерировано [name] в [GLOB.current_date_string] [station_time_timestamp()]<BR>Заключён на [timetoset/10] за \"[crimes]\" [rank] [usr.name]."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
R.fields["comments"] += "Автоматически сгенерировано [name] в [GLOB.current_date_string] [station_time_timestamp()]<BR>Заключён на [timetoset/10] за \"[crimes]\" [rank] [usr.name]."
R.fields["comments"] += "Автоматически сгенерировано [declent_ru(INSTRUMENTAL)] в [GLOB.current_date_string] [station_time_timestamp()]<BR>Заключён на [seconds_to_time(timetoset / 10)] за следующие преступления: [crimes]. Задержание произвёл: [usr.name] ([rank])."

update_all_mob_security_hud()
return 1

/obj/machinery/door_timer/proc/notify_prisoner(notifytext)
for(var/mob/living/carbon/human/H in range(4, get_turf(src)))
if(occupant == H.name)
to_chat(H, "[src] beeps, \"[notifytext]\"")
to_chat(H, "[src] проигрывает, \"[notifytext]\"")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to_chat(H, "[src] проигрывает, \"[notifytext]\"")
to_chat(H, "[declent_ru(NOMINATIVE)] сообщает, \"[notifytext]\"")

return
atom_say("[src] beeps, \"[occupant]: [notifytext]\"")
atom_say("[src] проигрывает, \"[occupant]: [notifytext]\"")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
atom_say("[src] проигрывает, \"[occupant]: [notifytext]\"")
atom_say("[declent_ru(NOMINATIVE)] сообщает, \"[occupant]: [notifytext]\"")



//Main door timer loop, if it's timing and time is >0 reduce time by 1.
Expand All @@ -168,7 +168,7 @@
timer_end()
return PROCESS_KILL
if(timeleft() <= 0)
Radio.autosay("Timer has expired. Releasing prisoner.", name, "Security", list(z))
Radio.autosay("Время истекло. Вы свободны.", name, "Security", list(z))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Radio.autosay("Время истекло. Вы свободны.", name, "Security", list(z))
Radio.autosay("Время заключения истекло. Заключённый освобождён.", name, "Security", list(z))

Говорим в СБ канал о том, что "вы свободны"?

occupant = CELL_NONE
timer_end() // open doors, reset timer, clear status screen
return PROCESS_KILL
Expand Down Expand Up @@ -387,7 +387,7 @@
if(params["prisoner_name"])
prisoner_name = params["prisoner_name"]
else
var/new_name = tgui_input_text(usr, "Prisoner Name:", name, prisoner_name, MAX_NAME_LEN, encode = FALSE)
var/new_name = tgui_input_text(usr, "Имя заключённого:", name, prisoner_name, MAX_NAME_LEN, encode = FALSE)
if(isnull(new_name))
return
prisoner_name = new_name
Expand All @@ -398,12 +398,12 @@
else
prisoner_hasrecord = FALSE
if("prisoner_charge")
var/new_charge = tgui_input_text(usr, "Prisoner Charge:", name, prisoner_charge, encode = FALSE)
var/new_charge = tgui_input_text(usr, "Обвинения:", name, prisoner_charge, encode = FALSE)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/new_charge = tgui_input_text(usr, "Обвинения:", name, prisoner_charge, encode = FALSE)
var/new_charge = tgui_input_text(usr, "Обвиняется в:", name, prisoner_charge, encode = FALSE)

if(isnull(new_charge))
return
prisoner_charge = new_charge
if("prisoner_time")
var/new_time = tgui_input_number(usr, "Prisoner Time (in minutes):", name, prisoner_time, PERMABRIG_TIME)
var/new_time = tgui_input_number(usr, "Время заключения (в минутах):", name, prisoner_time, PERMABRIG_TIME)
if(isnull(new_time))
return
prisoner_time = new_time
Expand All @@ -419,56 +419,70 @@
timer_start()
if("add_timer")
if(timing)
var/add_reason = sanitize(copytext(input(usr, "Reason:", name, "") as text|null, 1, MAX_MESSAGE_LEN))
var/add_reason = sanitize(copytext(input(usr, ". Причина:", name, "") as text|null, 1, MAX_MESSAGE_LEN))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/add_reason = sanitize(copytext(input(usr, ". Причина:", name, "") as text|null, 1, MAX_MESSAGE_LEN))
var/add_reason = sanitize(copytext(input(usr, "Причина:", name, "") as text|null, 1, MAX_MESSAGE_LEN))

if(!add_reason)
to_chat(usr, span_warning("Must specify the reason!"))
to_chat(usr, span_warning("Должна быть причина!"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to_chat(usr, span_warning("Должна быть причина!"))
to_chat(usr, span_warning("Необходимо указать причину!"))

return FALSE
prisoner_time_add = input(usr, "Minutes to add:", name, prisoner_time_add) as num|null
prisoner_time_add = input(usr, "Время, которое будет добавлено (в минутах):", name, prisoner_time_add) as num|null
prisoner_time_add = min(max(round(prisoner_time_add), 0), PERMABRIG_TIME)

var/sufM = .

var/list/nums1 = list(1, 21, 31, 41, 51)
var/list/nums2 = list(2, 3, 4, 22, 23, 24, 32, 33, 34, 42, 43, 44, 52, 53, 54)
var/list/nums3 = list(5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26, 27, 28, 29, 30, 35, 36, 37, 38, 39, 40, 45, 46, 47, 48, 49, 50, 55, 56, 57, 58, 59, 60)

if(prisoner_time_add in nums1)
sufM = "минуту"
if(prisoner_time_add in nums2)
sufM = "минуты"
if(prisoner_time_add in nums3)
sufM = "минут"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/sufM = .
var/list/nums1 = list(1, 21, 31, 41, 51)
var/list/nums2 = list(2, 3, 4, 22, 23, 24, 32, 33, 34, 42, 43, 44, 52, 53, 54)
var/list/nums3 = list(5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26, 27, 28, 29, 30, 35, 36, 37, 38, 39, 40, 45, 46, 47, 48, 49, 50, 55, 56, 57, 58, 59, 60)
if(prisoner_time_add in nums1)
sufM = "минуту"
if(prisoner_time_add in nums2)
sufM = "минуты"
if(prisoner_time_add in nums3)
sufM = "минут"

if(!prisoner_time_add)
to_chat(usr, span_warning("Must specify the number!"))
to_chat(usr, span_warning("Время указывается числом!"))
return FALSE
prisoner_time_add = prisoner_time_add MINUTES
if(timetoset + prisoner_time_add >= PERMABRIG_TIME MINUTES)
notify_prisoner("Timer is exceeding 60 minutes. Please, transfer the prisoner to the Permabrig!")
notify_prisoner("Таймер превышает 60 минут. Переместите заключенного в пермабриг!")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
notify_prisoner("Таймер превышает 60 минут. Переместите заключенного в пермабриг!")
notify_prisoner("Таймер превышает 60 минут. Переместите заключённого в пермабриг!")

return FALSE
timetoset = timetoset + prisoner_time_add
releasetime = releasetime + prisoner_time_add
var/addtext = isobserver(usr) ? "for: [add_reason]." : "by [usr.name] for: [add_reason]"
Radio.autosay("Prisoner [occupant] had their timer increased by [prisoner_time_add / 600] minutes [addtext]", name, "Security", list(z))
notify_prisoner("Your brig timer has been increased by [prisoner_time_add / 600] minutes for: '[add_reason]'.")
var/addtext = isobserver(usr) ? "за: [add_reason]." : "сотрудником [usr.name]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/addtext = isobserver(usr) ? "за: [add_reason]." : "сотрудником [usr.name]"
var/addtext = isobserver(usr) ? "по причине: [add_reason]." : "сотрудником [usr.name] по причине: [add_reason]."

Здесь идёт проверка на то, является ли игрок наблюдателем. Если да, то указывается только причина. Если нет, указывается сначала имя того, кто провёл посадку, а затем причина - убирать это не нужно.

Radio.autosay("Время заключения [occupant] было увеличен на [prisoner_time_add / 600] [sufM] [addtext]", name, "Security", list(z))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Radio.autosay("Время заключения [occupant] было увеличен на [prisoner_time_add / 600] [sufM] [addtext]", name, "Security", list(z))
Radio.autosay("Время заключения [occupant] было увеличено на [prisoner_time_add / 600] [declension_ru(prisoner_time_add / 600, "минуту", "минуты", "минут")] [addtext]", name, "Security", list(z))

notify_prisoner("Ваше время заключения было увеличено на [prisoner_time_add / 600] [sufM] [add_reason]")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
notify_prisoner("Ваше время заключения было увеличено на [prisoner_time_add / 600] [sufM] [add_reason]")
notify_prisoner("Ваше время заключения было увеличено на [prisoner_time_add / 600] [declension_ru(prisoner_time_add / 600, "минуту", "минуты", "минут")] [add_reason]")

var/datum/data/record/R = find_security_record("name", occupant)
if(istype(R))
R.fields["comments"] += "Autogenerated by [name] on [GLOB.current_date_string] [station_time_timestamp()]Timer increased by [prisoner_time_add / 600] minutes [addtext]"
R.fields["comments"] += "Автоматически сгенерировано [name] в [GLOB.current_date_string] [station_time_timestamp()]Таймер увеличен на [prisoner_time_add / 600] [sufM] [addtext]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
R.fields["comments"] += "Автоматически сгенерировано [name] в [GLOB.current_date_string] [station_time_timestamp()]Таймер увеличен на [prisoner_time_add / 600] [sufM] [addtext]"
R.fields["comments"] += "Автоматически сгенерировано [declent_ru(INSTRUMENTAL)] в [GLOB.current_date_string] [station_time_timestamp()]. Время заключения увеличено на [prisoner_time_add / 600] [declension_ru(prisoner_time_add / 600, "минуту", "минуты", "минут")] [addtext]"

else
. = FALSE

if("restart_timer")
if(timing)
var/reset_reason = tgui_input_text(usr, "Reason for resetting timer:", name)
var/reset_reason = tgui_input_text(usr, "Причина перезапуска таймера:", name)
if(!reset_reason)
to_chat(usr, span_warning("Cancelled reset: reason field is required."))
to_chat(usr, span_warning("Перезапуск отменён. Отсутствует причина."))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
to_chat(usr, span_warning("Перезапуск отменён. Отсутствует причина."))
to_chat(usr, span_warning("Необходимо указать причину!"))

return FALSE
releasetime = world.timeofday + timetoset
var/resettext = isobserver(usr) ? "for: [reset_reason]." : "by [usr.name] for: [reset_reason]."
Radio.autosay("Prisoner [occupant] had their timer reset [resettext]", name, "Security", list(z))
notify_prisoner("Your brig timer has been reset for: '[reset_reason]'.")
var/resettext = isobserver(usr) ? "по причине: [reset_reason]." : "сотрудником [usr.name]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/resettext = isobserver(usr) ? "по причине: [reset_reason]." : "сотрудником [usr.name]"
var/resettext = isobserver(usr) ? "по причине: [reset_reason]." : "сотрудником [usr.name] по причине: [reset_reason]."

Radio.autosay("Таймер заключённого [occupant] был перезапущен [resettext]", name, "Security", list(z))
notify_prisoner("Ваш таймер был перезапущен по причине: '[reset_reason]'")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
notify_prisoner("Ваш таймер был перезапущен по причине: '[reset_reason]'")
notify_prisoner("Ваш таймер был перезапущен по причине: [reset_reason].")

var/datum/data/record/R = find_security_record("name", occupant)
if(istype(R))
R.fields["comments"] += "Autogenerated by [name] on [GLOB.current_date_string] [station_time_timestamp()]Timer reset [resettext]"
R.fields["comments"] += "Автоматически сгенерировано [name] в [GLOB.current_date_string] [station_time_timestamp()]Таймер перезапущен [resettext]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
R.fields["comments"] += "Автоматически сгенерировано [name] в [GLOB.current_date_string] [station_time_timestamp()]Таймер перезапущен [resettext]"
R.fields["comments"] += "Автоматически сгенерировано [declent_ru(INSTRUMENTAL)] в [GLOB.current_date_string] [station_time_timestamp()]. Таймер перезапущен [resettext]"

else
. = FALSE
if("stop")
if(timing)
timer_end()
var/stoptext = isobserver(usr) ? "from cell control." : "by [usr.name]."
Radio.autosay("Timer stopped manually [stoptext]", name, "Security", list(z))
var/stoptext = isobserver(usr) ? "from cell control." : "сотрудником [usr.name]."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var/stoptext = isobserver(usr) ? "from cell control." : "сотрудником [usr.name]."
var/stoptext = isobserver(usr) ? "с помощью консоли управления камерой." : "сотрудником [usr.name]."

Radio.autosay("Таймер принудительно остановлен [stoptext]", name, "Security", list(z))
else
. = FALSE
if("flash")
for(var/obj/machinery/flasher/flasher in targets)
if(flasher.last_flash && (flasher.last_flash + 15 SECONDS) > world.time)
to_chat(usr, span_warning("Flash is still recharging."))
to_chat(usr, span_warning("Флешер перезаряжается."))
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
else
flasher.flash()
else
Expand All @@ -482,33 +496,33 @@


/obj/machinery/door_timer/cell_1
name = "Cell 1"
name = "Камера 1"
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
id = "Cell 1"

/obj/machinery/door_timer/cell_2
name = "Cell 2"
name = "Камера 2"
id = "Cell 2"

/obj/machinery/door_timer/cell_3
name = "Cell 3"
name = "Камера 3"
id = "Cell 3"

/obj/machinery/door_timer/cell_4
name = "Cell 4"
name = "Камера 4"
id = "Cell 4"

/obj/machinery/door_timer/cell_5
name = "Cell 5"
name = "Камера 5"
id = "Cell 5"

/obj/machinery/door_timer/cell_6
name = "Cell 6"
name = "Камера 6"
id = "Cell 6"

/obj/machinery/door_timer/cell_7
name = "Cell 7"
name = "Камера 7"
id = "Cell 7"

/obj/machinery/door_timer/cell_8
name = "Cell 8"
name = "Камера 8"
id = "Cell 8"
14 changes: 7 additions & 7 deletions tgui/packages/tgui/interfaces/BrigCells.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ const BrigCellsTableRow = (properties, context) => {
const BrigCellsTable = ({ cells }) => (
<Table className="BrigCells__list">
<Table.Row>
<Table.Cell header>Cell</Table.Cell>
<Table.Cell header>Occupant</Table.Cell>
<Table.Cell header>Crimes</Table.Cell>
<Table.Cell header>Brigged By</Table.Cell>
<Table.Cell header>Time Brigged For</Table.Cell>
<Table.Cell header>Time Left</Table.Cell>
<Table.Cell header>Release</Table.Cell>
<Table.Cell header>Камера</Table.Cell>
<Table.Cell header>Заключённый</Table.Cell>
<Table.Cell header>Обвинения</Table.Cell>
<Table.Cell header>Сотрудник</Table.Cell>
<Table.Cell header>Срок</Table.Cell>
<Table.Cell header>Осталось</Table.Cell>
<Table.Cell header>Выпустить</Table.Cell>
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
</Table.Row>
{cells.map((cell) => (
<BrigCellsTableRow key={cell.ref} cell={cell} />
Expand Down
38 changes: 18 additions & 20 deletions tgui/packages/tgui/interfaces/BrigTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,43 @@ export const BrigTimer = (props, context) => {
return (
<Window width={500} height={!data.timing ? 396 : 237}>
<Window.Content>
<Section title="Cell Information">
<Section title="Информация">
<LabeledList>
<LabeledList.Item label="Cell ID">{data.cell_id}</LabeledList.Item>
<LabeledList.Item label="Occupant">
<LabeledList.Item label="Камера">{data.cell_id}</LabeledList.Item>
<LabeledList.Item label="Заключённый">
{data.nameText}
</LabeledList.Item>
<LabeledList.Item label="Crimes">{data.crimes}</LabeledList.Item>
<LabeledList.Item label="Brigged By">
<LabeledList.Item label="Обвинения">{data.crimes}</LabeledList.Item>
<LabeledList.Item label="Сотрудник">
{data.brigged_by}
</LabeledList.Item>
<LabeledList.Item label="Time Brigged For">
{data.time_set}
</LabeledList.Item>
<LabeledList.Item label="Time Left">
<LabeledList.Item label="Срок">{data.time_set}</LabeledList.Item>
<LabeledList.Item label="Осталось">
{data.time_left}
</LabeledList.Item>
<LabeledList.Item label="Actions">
<LabeledList.Item label="Действия">
<>
<Button
icon="lightbulb-o"
content="Flash"
content="Флеш"
syndicatecat marked this conversation as resolved.
Show resolved Hide resolved
disabled={!data.isAllowed}
onClick={() => act('flash')}
/>
<Button
icon="angle-up"
content="Add Timer"
content="Добавить время"
disabled={!data.timing || !data.isAllowed}
onClick={() => act('add_timer')}
/>
<Button
icon="sync"
content="Reset Timer"
content="Перезапустить таймер"
disabled={!data.timing || !data.isAllowed}
onClick={() => act('restart_timer')}
/>
<Button
icon="eject"
content="Release Prisoner"
content="Остановить таймер"
disabled={!data.timing || !data.isAllowed}
onClick={() => act('stop')}
/>
Expand All @@ -73,9 +71,9 @@ export const BrigTimer = (props, context) => {
</LabeledList>
</Section>
{!data.timing && (
<Section title="New Prisoner">
<Section title="Новый заключённый">
<LabeledList>
<LabeledList.Item label="Prisoner Name">
<LabeledList.Item label="Имя">
<Button
icon={nameIcon}
content={data.prisoner_name ? data.prisoner_name : '-----'}
Expand All @@ -95,7 +93,7 @@ export const BrigTimer = (props, context) => {
/>
)}
</LabeledList.Item>
<LabeledList.Item label="Prisoner Crimes">
<LabeledList.Item label="Обвинения">
<Button
icon="pencil-alt"
content={
Expand All @@ -105,18 +103,18 @@ export const BrigTimer = (props, context) => {
onClick={() => act('prisoner_charge')}
/>
</LabeledList.Item>
<LabeledList.Item label="Prisoner Time">
<LabeledList.Item label="Время">
<Button
icon="pencil-alt"
content={data.prisoner_time ? data.prisoner_time : '-----'}
disabled={!data.isAllowed}
onClick={() => act('prisoner_time')}
/>
</LabeledList.Item>
<LabeledList.Item label="Start">
<LabeledList.Item label="Начать">
<Button
icon="gavel"
content="Start Sentence"
content="Назначить наказание"
disabled={
!data.prisoner_name ||
!data.prisoner_charge ||
Expand Down
Loading
Loading