Skip to content

Commit

Permalink
late join more translate
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jul 12, 2024
1 parent b667bd6 commit 0cbb21d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
6 changes: 3 additions & 3 deletions code/modules/mob/dead/new_player/latejoin_menu.dm
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,20 @@ GLOBAL_DATUM_INIT(latejoin_menu, /datum/latejoin_menu, new)
dept_data += job_datum.title

if(dept_data.len <= 0) //Congratufuckinglations
tgui_alert(owner, "There are literally no random jobs available for you on this server, ahelp for assistance.", "Oh No!")
tgui_alert(owner, "Для вас вообще нет никаких доступных случайных профессий на этом сервере, напишите ахелп.", "О нет!")
return

var/random_job

while(random_job != JOB_CHOICE_YES)
if(dept_data.len <= 0)
tgui_alert(owner, "It seems that there are no more random jobs available for you!", "Oh No!")
tgui_alert(owner, "Похоже, что нет больше доступных для вас случайных профессий!", "О нет!")
return

var/random = pick_n_take(dept_data)
var/list/random_job_options = list(JOB_CHOICE_YES, JOB_CHOICE_REROLL, JOB_CHOICE_CANCEL)

random_job = tgui_alert(owner, "[random]?", "Random Job", random_job_options)
random_job = tgui_alert(owner, "[job_title_ru(random)]?", "Случайная должность", random_job_options)

if(random_job == JOB_CHOICE_CANCEL)
return
Expand Down
16 changes: 8 additions & 8 deletions code/modules/mob/dead/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@
/proc/get_job_unavailable_error_message(retval, jobtitle)
switch(retval)
if(JOB_AVAILABLE)
return "[jobtitle] доступна для выбора."
return "[job_title_ru(jobtitle)] доступна для выбора."
if(JOB_UNAVAILABLE_GENERIC)
return "[jobtitle] недоступна для выбора."
return "[job_title_ru(jobtitle)] недоступна для выбора."
if(JOB_UNAVAILABLE_BANNED)
return "На данный момент вам выдан бан роли на [jobtitle]."
return "На данный момент вам выдан бан роли на [job_title_ru(jobtitle)]."
if(JOB_UNAVAILABLE_PLAYTIME)
return "У вас не наиграно достаточно часов для игры за [jobtitle]."
return "У вас не наиграно достаточно часов для игры за [job_title_ru(jobtitle)]."
if(JOB_UNAVAILABLE_ACCOUNTAGE)
return "Ваш аккаунт недостаточно стар для игры за [jobtitle]."
return "Ваш аккаунт недостаточно стар для игры за [job_title_ru(jobtitle)]."
if(JOB_UNAVAILABLE_SLOTFULL)
return "[jobtitle] уже заполнена до максимума."
return "[job_title_ru(jobtitle)] уже заполнена до максимума."
if(JOB_UNAVAILABLE_ANTAG_INCOMPAT)
return "[jobtitle] несовместим с некоторыми выбранными вами ролями антагонистов."
return "[job_title_ru(jobtitle)] несовместим с некоторыми выбранными вами ролями антагонистов."
if(JOB_UNAVAILABLE_AGE)
return "Ваш персонаж недостаточно стар для игры за [jobtitle]."
return "Ваш персонаж недостаточно стар для игры за [job_title_ru(jobtitle)]."

return GENERIC_JOB_UNAVAILABLE_ERROR

Expand Down
10 changes: 4 additions & 6 deletions tgui/packages/tgui/interfaces/JobSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ export const JobSelection = (props) => {
<NoticeBox info>{data.shuttle_status}</NoticeBox>
)}
<span style={{ color: 'grey' }}>
It is currently {data.round_duration} into the shift.
Смена идёт уже: {data.round_duration}.
</span>
<Button
style={{ position: 'absolute', right: '1em' }}
onClick={() => act('select_job', { job: 'Random' })}
content="Random Job!"
tooltip="Roll target random job. You can re-roll or cancel your random job if you don't like it."
content="Случайная профессия!"
tooltip="Случайно выбрать профессию. Вы можете повторно выбирать случайную профессию или отказаться от этого."
/>
</>
}
Expand All @@ -160,9 +160,7 @@ export const JobSelection = (props) => {
.toString(),
}}
>
{entry.open_slots +
(entry.open_slots === 1 ? ' slot' : ' slots') +
' available'}
{'позиций доступно: ' + entry.open_slots}
</span>
</>
}
Expand Down

0 comments on commit 0cbb21d

Please sign in to comment.