-
Notifications
You must be signed in to change notification settings - Fork 439
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
base: master220
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Есть недочёты, много что нужно поправить.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
УДАЛИТЬ ПРОКИ ДЛЯ ЧИСЛОВЫХ СУЩЕСТВИТЕЛЬНЫХ, ОНИ ЗДЕСЬ НЕ НУЖНЫ.
/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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/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] секунд" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
second = " и [second_adjusted] секунд" | |
second = " и [second_adjusted] секунд[declension_ru(second_adjusted, "у", "ы", "")]" |
Используй прок declension_ru()
здесь и ниже, чтобы числовые существительные нормально отображались.
NOMINATIVE = "Таймер", | ||
GENITIVE = "Таймера", | ||
DATIVE = "Таймера", | ||
ACCUSATIVE = "Таймер", | ||
INSTRUMENTAL = "Таймером", | ||
PREPOSITIONAL = "Таймера" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 = "Дистанционное управление камерой заключения." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 ? "" : " Отсутствуют записи о заключённом, требуется обновление вручную."]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Задержание произвёл: [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])." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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])." |
|
||
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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
NOMINATIVE = "Камера 1", | ||
GENITIVE = "Камеры 1", | ||
DATIVE = "Камеры 1", | ||
ACCUSATIVE = "Камера 1", | ||
INSTRUMENTAL = "Камерой 1", | ||
PREPOSITIONAL = "Камеры 1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOMINATIVE = "Камера 1", | |
GENITIVE = "Камеры 1", | |
DATIVE = "Камеры 1", | |
ACCUSATIVE = "Камера 1", | |
INSTRUMENTAL = "Камерой 1", | |
PREPOSITIONAL = "Камеры 1" | |
NOMINATIVE = "Камера 1", | |
GENITIVE = "Камеры 1", | |
DATIVE = "Камеры 1", | |
ACCUSATIVE = "Камера 1", | |
INSTRUMENTAL = "Камерой 1", | |
PREPOSITIONAL = "Камеры 1" |
С маленькой здесь и ниже.
Описание
Перевод камер заключённых в бриге, их оповещений, фраз и компьютера для управления ими.
Ссылка на предложение/Причина создания ПР
Перевод
Демонстрация изменений