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

translate motd when join game #794

Merged
merged 14 commits into from
Dec 3, 2023
48 changes: 24 additions & 24 deletions code/controllers/subsystem/SSjobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -432,28 +432,28 @@ SUBSYSTEM_DEF(jobs)
CreateMoneyAccount(H, rank, job)

var/list/L = list()
L.Add("<b>Your role on the station is: [alt_title ? alt_title : rank].")
L.Add("You answer directly to [job.supervisors]. Special circumstances may change this.")
L.Add("For more information on how the station works, see [wiki_link("Standard_Operating_Procedure", "Standard Operating Procedure (SOP)")].")
L.Add("<b>Ваша роль на станции: [alt_title ? alt_title : rank].")
L.Add("Вы отвечаете непосредственно перед [job.supervisors]. Особые обстоятельства могут изменить это.")
L.Add("Для большей информации о работе станции ознакомьтесь со [wiki_link("Standard_Operating_Procedure", "Стандартными Рабочими Процедурами (СРП)")].")
if(job.job_department_flags & DEP_FLAG_SERVICE)
L.Add("As a member of Service, make sure to read up on your [wiki_link("Standard_Operating_Procedure_(Service)", "Department SOP")].")
L.Add("Как сотрудник сервиса, обязательно ознакомьтесь с [wiki_link("Standard_Operating_Procedure_(Service)", "СРП отдела")].")
if(job.job_department_flags & DEP_FLAG_SUPPLY)
L.Add("As a member of Supply, make sure to read up on your [wiki_link("Standard_Operating_Procedure_(Supply)", "Department SOP")].")
L.Add("Как сотрудник снабжения, обязательно ознакомьтесь с [wiki_link("Standard_Operating_Procedure_(Supply)", "СРП отдела")].")
if(job.job_department_flags == DEP_FLAG_COMMAND) // Check if theyre only command, like captain/hop/bs/ntrep, to not spam their chatbox
L.Add("As an important member of Command, read up on your [wiki_link("Standard_Operating_Procedure_(Command)", "Department SOP")].")
L.Add("Как важный член командования, ознакомьтесь с вашим [wiki_link("Standard_Operating_Procedure_(Command)", "СРП отдела")].")
if(job.job_department_flags & DEP_FLAG_LEGAL)
L.Add("Your job requires complete knowledge of [wiki_link("Space Law", "Space Law")] and [wiki_link("Legal_Standard_Operating_Procedure", "Legal Standard Operating Procedure")].")
L.Add("Ваша работа требует полного знания [wiki_link("Space Law", "Космического Закона")] и [wiki_link("Legal_Standard_Operating_Procedure", "Правовых Стандартных Рабочих Процедур")].")
if(job.job_department_flags & DEP_FLAG_ENGINEERING)
L.Add("As a member of Engineering, make sure to read up on your [wiki_link("Standard_Operating_Procedure_(Engineering)", "Department SOP")].")
L.Add("Как сотрудник инженерии, обязательно ознакомьтесь с [wiki_link("Standard_Operating_Procedure_(Engineering)", "СРП отдела")].")
if(job.job_department_flags & DEP_FLAG_MEDICAL)
L.Add("As a member of Medbay, make sure to read up on your [wiki_link("Standard_Operating_Procedure_(Medical)", "Department SOP")].")
L.Add("Как сотрудник медотдела, обязательно ознакомьтесь с [wiki_link("Standard_Operating_Procedure_(Medical)", "СРП отдела")].")
if(job.job_department_flags & DEP_FLAG_SCIENCE) // geneticist gets both, yeah sure why not
L.Add("As a member of Science, make sure to read up on your [wiki_link("Standard_Operating_Procedure_(Science)", "Department SOP")].")
L.Add("Как сотрудник НИО, обязательно ознакомьтесь с [wiki_link("Standard_Operating_Procedure_(Science)", "СРП отдела")].")
if(job.job_department_flags & DEP_FLAG_SECURITY)
L.Add("As a member of Security, you are to know [wiki_link("Space Law", "Space Law")] and [wiki_link("Legal_Standard_Operating_Procedure", "Legal Standard Operating Procedure")], as well as your [wiki_link("Standard_Operating_Procedure_(Security)", "Department SOP")].")
L.Add("Как сотрудник безопасности, вы должны знать [wiki_link("Space Law", "Космический Закон")] и [wiki_link("Legal_Standard_Operating_Procedure", "Правовые Стандартные Рабочие Процедуры")], включая [wiki_link("Standard_Operating_Procedure_(Security)", "СРП отдела")].")
if(job.req_admin_notify)
L.Add("You are playing a job that is important for the game progression. If you have to disconnect, please go to cryo and inform command. If you are unable to do so, please notify the admins via adminhelp.")
L.Add("<br>If you need help, check the [wiki_link("Main_Page", "wiki")] or use Mentorhelp(F1)!</b>")
L.Add("Вы играете на роли, важной для игрового процесса. Если вы отключаетесь, пожалуйста, пройдите в крио и проинформируйте командование. Если это невозможно, предупредите администрацию через F1 - Adminhelp")
L.Add("<br>Если вам нужна помощь, проверьте [wiki_link("Main_Page", "вики")] или используйте Mentorhelp(F1)!</b>")
if(job.important_information)
L.Add("</b><span class='userdanger' style='width: 80%'>[job.important_information]</span>")

Expand Down Expand Up @@ -602,11 +602,11 @@ SUBSYSTEM_DEF(jobs)
for(var/datum/job_objective/objective as anything in H.mind.job_objectives)
objective.owner_account = account

H.mind.store_memory("<b>Your account number is:</b> #[account.account_number]<br><b>Your account pin is:</b> [account.account_pin]")
H.mind.store_memory("<b>Ваш номер аккаунта:</b> #[account.account_number]<br><b>Ваш пин-код от аккаунта:</b> [account.account_pin]")
H.mind.set_initial_account(account)

to_chat(H, "<span class='boldnotice'>As an employee of Nanotrasen you will receive a paycheck of $[account.payday_amount] credits every 30 minutes</span>")
to_chat(H, "<span class='boldnotice'>Your account number is: [account.account_number], your account pin is: [account.account_pin]</span>")
to_chat(H, "<span class='boldnotice'>Как сотрудник Нанотрейзен, вы будете получать зарплату в размере $[account.payday_amount] кредитов каждые 30 минут</span>")
to_chat(H, "<span class='boldnotice'>Ваш номер аккаунта: [account.account_number], ваш пин-код от аккаунта: [account.account_pin]</span>")

if(!job) //if their job datum is null (looking at you ERTs...), we don't need to do anything past this point
return
Expand Down Expand Up @@ -636,14 +636,14 @@ SUBSYSTEM_DEF(jobs)
if(!department_account)
return

remembered_info += "As a head of staff you have access to your department's money account through your PDA's NanoBank or a station ATM<br>"
remembered_info += "<b>The [department.department_name] department's account number is:</b> #[department_account.account_number]<br>"
remembered_info += "<b>The [department.department_name] department's account pin is:</b> [department_account.account_pin]<br>"
remembered_info += "<b>Your department's account funds are:</b> $[department_account.credit_balance]<br>"
remembered_info += "<b>Как руководитель отдела, вы имеете доступ к денежному счету вашего отдела через НаноБанк вашего КПК или банкоматы на станции<br>"
remembered_info += "<b>Номер аккаунта [department.department_name] отдела:</b> #[department_account.account_number]<br>"
remembered_info += "<b>Пин-код аккаунта [department.department_name] отдела:</b> [department_account.account_pin]<br>"
remembered_info += "<b>Средства вашего отдела:</b> $[department_account.credit_balance]<br>"

H.mind.store_memory(remembered_info)
to_chat(H, "<span class='boldnotice'>Your department will receive a $[department_account.payday_amount] credit stipend every 30 minutes</span>")
to_chat(H, "<span class='boldnotice'>The [department.department_name] department's account number is: #[department_account.account_number], Your department's account pin is: [department_account.account_pin]</span>")
to_chat(H, "<span class='boldnotice'>Ваш отдел получает $[department_account.payday_amount] кредитов каждые 30 минут</span>")
to_chat(H, "<span class='boldnotice'>Номер аккаунта [department.department_name] отдела: #[department_account.account_number], пин-код аккаунта: [department_account.account_pin]</span>")

/datum/controller/subsystem/jobs/proc/format_jobs_for_id_computer(obj/item/card/id/tgtcard)
var/list/jobs_to_formats = list()
Expand Down Expand Up @@ -706,7 +706,7 @@ SUBSYSTEM_DEF(jobs)
return
var/datum/data/pda/app/messenger/PM = target_pda.find_program(/datum/data/pda/app/messenger)
if(PM && PM.can_receive())
PM.notify("<b>Automated Notification: </b>\"[antext]\" (Unable to Reply)", 0) // the 0 means don't make the PDA flash
PM.notify("<b>Автоматическое уведомление: </b>\"[antext]\" (Unable to Reply)", 0) // the 0 means don't make the PDA flash

/datum/controller/subsystem/jobs/proc/notify_by_name(target_name, antext)
// Used to notify a specific crew member based on their real_name
Expand All @@ -721,7 +721,7 @@ SUBSYSTEM_DEF(jobs)
return
var/datum/data/pda/app/messenger/PM = target_pda.find_program(/datum/data/pda/app/messenger)
if(PM && PM.can_receive())
PM.notify("<b>Automated Notification: </b>\"[antext]\" (Unable to Reply)", 0) // the 0 means don't make the PDA flash
PM.notify("<b>Автоматическое уведомление: </b>\"[antext]\" (Unable to Reply)", 0) // the 0 means don't make the PDA flash

/datum/controller/subsystem/jobs/proc/format_job_change_records(centcom)
var/list/formatted = list()
Expand Down
2 changes: 1 addition & 1 deletion code/game/jobs/job/assistant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
department_flag = JOBCAT_SUPPORT
total_positions = -1
spawn_positions = -1
supervisors = "the head of personnel"
supervisors = "главой персонала"
department_head = list("Head of Personnel")
selection_color = "#dddddd"
access = list() //See /datum/job/assistant/get_access()
Expand Down
4 changes: 2 additions & 2 deletions code/game/jobs/job/central.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
department_flag = JOB_CENTCOM // This gets its job as its own flag because admin jobs dont have flags
total_positions = 5
spawn_positions = 5
supervisors = "the admins"
supervisors = "админами"
selection_color = "#ffdddd"
access = list()
minimal_access = list()
Expand Down Expand Up @@ -55,7 +55,7 @@
department_flag = JOB_CENTCOM // This gets its job as its own flag because admin jobs dont have flags
total_positions = 5
spawn_positions = 5
supervisors = "the admins"
supervisors = "админами"
selection_color = "#ffdddd"
access = list()
minimal_access = list()
Expand Down
8 changes: 4 additions & 4 deletions code/game/jobs/job/engineering_jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
total_positions = 1
spawn_positions = 1
job_department_flags = DEP_FLAG_COMMAND | DEP_FLAG_ENGINEERING
supervisors = "the captain"
supervisors = "капитаном"
department_head = list("Captain")
selection_color = "#ffeeaa"
req_admin_notify = 1
Expand All @@ -23,7 +23,7 @@
blacklisted_disabilities = list(DISABILITY_FLAG_BLIND, DISABILITY_FLAG_DEAF, DISABILITY_FLAG_MUTE, DISABILITY_FLAG_DIZZY, DISABILITY_FLAG_NERVOUS, DISABILITY_FLAG_LISP)
missing_limbs_allowed = FALSE
outfit = /datum/outfit/job/chief_engineer
important_information = "This role requires you to coordinate a department. You are required to be familiar with Standard Operating Procedure (Engineering), basic job duties, and act professionally (roleplay)."
important_information = "Эта роль требует, чтобы вы координировали работу отдела. От вас требуется знание Стандартных Рабочих Процедур (Инженерных), базовых должностных обязанностей и профессиональных действий."

/datum/outfit/job/chief_engineer
name = "Chief Engineer"
Expand Down Expand Up @@ -55,7 +55,7 @@
total_positions = 5
spawn_positions = 5
job_department_flags = DEP_FLAG_ENGINEERING
supervisors = "the chief engineer"
supervisors = "главным инженером"
department_head = list("Chief Engineer")
selection_color = "#fff5cc"
access = list(ACCESS_EVA, ACCESS_ENGINE, ACCESS_ENGINE_EQUIP, ACCESS_TECH_STORAGE, ACCESS_MAINT_TUNNELS, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_CONSTRUCTION, ACCESS_ATMOSPHERICS, ACCESS_MINERAL_STOREROOM)
Expand Down Expand Up @@ -92,7 +92,7 @@
total_positions = 3
spawn_positions = 2
job_department_flags = DEP_FLAG_ENGINEERING
supervisors = "the chief engineer"
supervisors = "главным инженером"
department_head = list("Chief Engineer")
selection_color = "#fff5cc"
access = list(ACCESS_EVA, ACCESS_ENGINE, ACCESS_ENGINE_EQUIP, ACCESS_TECH_STORAGE, ACCESS_MAINT_TUNNELS, ACCESS_EXTERNAL_AIRLOCKS, ACCESS_CONSTRUCTION, ACCESS_ATMOSPHERICS, ACCESS_MINERAL_STOREROOM)
Expand Down
16 changes: 8 additions & 8 deletions code/game/jobs/job/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@
permitted = TRUE

if(!permitted)
to_chat(H, "<span class='warning'>Your current job or whitelist status does not permit you to spawn with [G.display_name]!</span>")
to_chat(H, "<span class='warning'>Ваша текущая работа или статус в белом списке не позволяют вам спауниться с [G.display_name]!</span>")
continue

if(G.slot)
if(H.equip_to_slot_or_del(G.spawn_item(H), G.slot, TRUE))
to_chat(H, "<span class='notice'>Equipping you with [G.display_name]!</span>")
to_chat(H, "<span class='notice'>Одеваем вас в [G.display_name]!</span>")
else
gear_leftovers += G
else
Expand All @@ -231,17 +231,17 @@
var/atom/placed_in = H.equip_or_collect(G.spawn_item(null, H.client.prefs.active_character.loadout_gear[G.display_name]))
if(istype(placed_in))
if(isturf(placed_in))
to_chat(H, "<span class='notice'>Placing [G.display_name] on [placed_in]!</span>")
to_chat(H, "<span class='notice'>Помещение [G.display_name] в [placed_in]!</span>")
else
to_chat(H, "<span class='notice'>Placing [G.display_name] in your [placed_in.name].</span>")
to_chat(H, "<span class='notice'>Помещение [G.display_name] в ваш [placed_in.name].</span>")
continue
if(H.equip_to_appropriate_slot(G))
to_chat(H, "<span class='notice'>Placing [G.display_name] in your inventory!</span>")
to_chat(H, "<span class='notice'>Помещение [G.display_name] в ваш инвентарь!</span>")
continue
if(H.put_in_hands(G))
to_chat(H, "<span class='notice'>Placing [G.display_name] in your hands!</span>")
to_chat(H, "<span class='notice'>Помещение [G.display_name] в ваши руки!</span>")
continue
to_chat(H, "<span class='danger'>Failed to locate a storage object on your mob, either you spawned with no hands free and no backpack or this is a bug.</span>")
to_chat(H, "<span class='danger'>Не удалось найти хранилище на мобе, либо вы спавнитесь без свободных рук и рюкзака, либо это ошибка.</span>")
qdel(G)

gear_leftovers.Cut()
Expand Down Expand Up @@ -284,4 +284,4 @@
PDA.owner = H.real_name
PDA.ownjob = C.assignment
PDA.ownrank = C.rank
PDA.name = "PDA-[H.real_name] ([PDA.ownjob])"
PDA.name = "КПК-[H.real_name] ([PDA.ownjob])"
Loading