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

Open
wants to merge 3 commits into
base: master220
Choose a base branch
from

Conversation

syndicatecat
Copy link
Contributor

Описание

Перевод камер заключённых в бриге, их оповещений, фраз и компьютера для управления ими.

Ссылка на предложение/Причина создания ПР

Перевод

Демонстрация изменений

image
image

@github-actions github-actions bot added TGUI Affects TGUI javascript Pull requests that update Javascript code labels Dec 3, 2024
code/__HELPERS/time.dm Outdated Show resolved Hide resolved
@Den109G Den109G added the перевод Съешь же ещё этих мягких французских булок, да выпей чаю label Dec 7, 2024
@github-actions github-actions bot added the Merge Conflict This doesn't seem right label Dec 13, 2024
@PlayerUnknown14 PlayerUnknown14 self-assigned this Dec 23, 2024
Copy link
Member

@PlayerUnknown14 PlayerUnknown14 left a comment

Choose a reason for hiding this comment

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

Есть недочёты, много что нужно поправить.

code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Outdated Show resolved Hide resolved
code/game/machinery/doors/brigdoors.dm Show resolved Hide resolved
tgui/packages/tgui/interfaces/BrigCells.js Outdated Show resolved Hide resolved
tgui/packages/tgui/interfaces/BrigTimer.js Outdated Show resolved Hide resolved
Copy link
Member

@PlayerUnknown14 PlayerUnknown14 left a comment

Choose a reason for hiding this comment

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

УДАЛИТЬ ПРОКИ ДЛЯ ЧИСЛОВЫХ СУЩЕСТВИТЕЛЬНЫХ, ОНИ ЗДЕСЬ НЕ НУЖНЫ.

Comment on lines +130 to +137
/proc/seconds_to_time_ru(num, single_name, double_name, multiple_name)
if(!isnum(num) || round(num) != num)
return double_name
if(((num % 10) == 1) && ((num % 100) != 11))
return single_name
if(((num % 10) in 2 to 4) && !((num % 100) in 12 to 14))
return double_name
return multiple_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
/proc/seconds_to_time_ru(num, single_name, double_name, multiple_name)
if(!isnum(num) || round(num) != num)
return double_name
if(((num % 10) == 1) && ((num % 100) != 11))
return single_name
if(((num % 10) in 2 to 4) && !((num % 100) in 12 to 14))
return double_name
return multiple_name

else if(second > 1)
second = " and [second_adjusted] seconds"
second = " и [second_adjusted] секунд"
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
second = " и [second_adjusted] секунд"
second = " и [second_adjusted] секунд[declension_ru(second_adjusted, "у", "ы", "")]"

Используй прок declension_ru() здесь и ниже, чтобы числовые существительные нормально отображались.

Comment on lines +18 to +23
NOMINATIVE = "Таймер",
GENITIVE = "Таймера",
DATIVE = "Таймера",
ACCUSATIVE = "Таймер",
INSTRUMENTAL = "Таймером",
PREPOSITIONAL = "Таймера"
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
NOMINATIVE = "Таймер",
GENITIVE = "Таймера",
DATIVE = "Таймера",
ACCUSATIVE = "Таймер",
INSTRUMENTAL = "Таймером",
PREPOSITIONAL = "Таймера"
NOMINATIVE = "таймер камеры",
GENITIVE = "таймера камеры",
DATIVE = "таймеру камеры",
ACCUSATIVE = "таймер камеры",
INSTRUMENTAL = "таймером камеры",
PREPOSITIONAL = "таймере камеры"

Названия пишем с маленькой буквы.

@@ -13,7 +13,15 @@
name = "door timer"
icon = 'icons/obj/status_display.dmi'
icon_state = "frame"
desc = "A remote control for a door."
desc = "Дистанционное управление камерой заключения."
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
desc = "Дистанционное управление камерой заключения."
desc = "Устройство для дистанционного управления камерой заключения."

var/timetext = seconds_to_time(timetoset / 10)
var/announcetext = "Заключён [occupant] ([prisoner_drank]) на [timetext] за: [crimes]. \
Сотрудник: [usr.name].[R ? "" : " Отсутствуют записи о заключённом, требуется обновление вручную."]"
var/timetext = seconds_to_time_ru(timetoset / 10)
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/timetext = seconds_to_time_ru(timetoset / 10)
var/timetext = "[timetoset / 10] минут[declension_ru(timetoset / 10, "а", "ы", "")]"

Сотрудник: [usr.name].[R ? "" : " Отсутствуют записи о заключённом, требуется обновление вручную."]"
var/timetext = seconds_to_time_ru(timetoset / 10)
var/announcetext = "Заключённый [occupant] ([prisoner_drank]) был заключён на [timetext] за следующие преступления: [crimes]. \
Задержание произвёл: [usr.name].[R ? "" : " Отсутствуют записи о заключённом, требуется обновление вручную."]"
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
Задержание произвёл: [usr.name].[R ? "" : " Отсутствуют записи о заключённом, требуется обновление вручную."]"
Задержание произвёл: [usr]. [R ? "" : "Отсутствуют записи о заключённом, требуется обновление вручную."]"

@@ -144,16 +152,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"] += "Автоматически сгенерировано [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])."
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"] += "Автоматически сгенерировано [declent_ru(INSTRUMENTAL)] в [GLOB.current_date_string] [station_time_timestamp()]<BR>Заключён на [seconds_to_time(timetoset / 10)] за следующие преступления: [crimes]. Задержание произвёл: [usr.name] ([rank])."
R.fields["comments"] += "Автоматически сгенерировано [declent_ru(INSTRUMENTAL)] в [GLOB.current_date_string] [station_time_timestamp()]<BR>Заключён на [timetext] за следующие преступления: [crimes]. Задержание произвёл: [usr] ([rank])."

Comment on lines +393 to +402

var/seconds_to_time_ru = (num, single_name, double_name, multiple_name)
if(!isnum(num) || round(num) != num)
return double_name
if(((num % 10) == 1) && ((num % 100) != 11))
return single_name
if(((num % 10) in 2 to 4) && !((num % 100) in 12 to 14))
return double_name
return

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/seconds_to_time_ru = (num, single_name, double_name, multiple_name)
if(!isnum(num) || round(num) != num)
return double_name
if(((num % 10) == 1) && ((num % 100) != 11))
return single_name
if(((num % 10) in 2 to 4) && !((num % 100) in 12 to 14))
return double_name
return

Comment on lines +506 to +511
NOMINATIVE = "Камера 1",
GENITIVE = "Камеры 1",
DATIVE = "Камеры 1",
ACCUSATIVE = "Камера 1",
INSTRUMENTAL = "Камерой 1",
PREPOSITIONAL = "Камеры 1"
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
NOMINATIVE = "Камера 1",
GENITIVE = "Камеры 1",
DATIVE = "Камеры 1",
ACCUSATIVE = "Камера 1",
INSTRUMENTAL = "Камерой 1",
PREPOSITIONAL = "Камеры 1"
NOMINATIVE = "Камера 1",
GENITIVE = "Камеры 1",
DATIVE = "Камеры 1",
ACCUSATIVE = "Камера 1",
INSTRUMENTAL = "Камерой 1",
PREPOSITIONAL = "Камеры 1"

С маленькой здесь и ниже.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code Merge Conflict This doesn't seem right TGUI Affects TGUI перевод Съешь же ещё этих мягких французских булок, да выпей чаю
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants