diff --git a/code/modules/vote/vote_datum.dm b/code/modules/vote/vote_datum.dm index 903e961f5d84..83d0a00019b8 100644 --- a/code/modules/vote/vote_datum.dm +++ b/code/modules/vote/vote_datum.dm @@ -2,13 +2,13 @@ /datum/vote /// Person who started the vote - var/initiator = "the server" + var/initiator = "серверу" /// world.time the vote started at var/started_time /// The question being asked var/question /// Vote type text, for showing in UIs and stuff - var/vote_type_text = "unset" + var/vote_type_text = "что-то особенное" /// Do we want to show the vote counts as it goes var/show_counts = FALSE /// Vote result type. This determines how a winner is picked @@ -23,7 +23,7 @@ /datum/vote/New(_initiator, _question, list/_choices, _is_custom = FALSE) if(SSvote.active_vote) - CRASH("Attempted to start another vote with one already in progress!") + CRASH("Попытка начать голосование во время того, как идёт другое!") if(_initiator) initiator = _initiator @@ -39,15 +39,15 @@ generate_choices() /datum/vote/proc/start() - var/text = "[capitalize(vote_type_text)] vote started by [initiator]." + var/text = "Голосование за [capitalize(vote_type_text)] начато благодаря [initiator]." if(is_custom) vote_type_text = "custom" text += "\n[question]" if(usr) - log_admin("[capitalize(vote_type_text)] ([question]) vote started by [key_name(usr)].") + log_admin("[capitalize(vote_type_text)] ([question]) голосование начато благодаря [key_name(usr)].") else if(usr) - log_admin("[capitalize(vote_type_text)] vote started by [key_name(usr)].") + log_admin("Голосование за [capitalize(vote_type_text)] начато благодаря [key_name(usr)].") log_vote(text) started_time = world.time @@ -62,7 +62,7 @@ switch(vote_result_type) if(VOTE_RESULT_TYPE_MAJORITY) if(!length(voted)) - to_chat(world, "No votes were cast. Do you all hate democracy?!") // shame them + to_chat(world, "Нет ни одного голоса. Вы все ненавидите демократию?!") // shame them return null var/list/results = list() @@ -100,26 +100,26 @@ if(length(winning_options) > 1) var/random_dictator = pick(winning_options) - to_chat(world, "Its a tie between [english_list(winning_options)]. Picking [random_dictator] at random.") // shame them + to_chat(world, "Ничья между [english_list(winning_options)]. Случайный выбор: [random_dictator].") // shame them return random_dictator // If we got here there must only be one thing in the list var/res = winning_options[1] if(res in choices) - to_chat(world, "[res] won the vote.") + to_chat(world, "[res] выигрывает голосование.") return res - to_chat(world, "The winner of the vote ([sanitize(res)]) isnt a valid choice? What the heck?") - stack_trace("Vote of type [type] concluded with an invalid answer. Answer was [sanitize(res)], choices were [json_encode(choices)]") + to_chat(world, "Победитель голосования ([sanitize(res)]) не является правильным выбором? Какого чёрта?") + stack_trace("Голосование типа [type] завершилось недопустимым ответом. Ответом был [sanitize(res)], выбором был [json_encode(choices)]") return null /datum/vote/proc/announce(start_text) to_chat(world, {"[start_text] - Click here or type Vote to place your vote. - You have [GLOB.configuration.vote.vote_time / 10] seconds to vote."}) + Нажмите здесь или введите Vote, чтобы оставить голос. + У вас [GLOB.configuration.vote.vote_time / 10] секунд на выбор."}) SEND_SOUND(world, sound('sound/ambience/alarm4.ogg')) @@ -152,7 +152,7 @@ /datum/vote/ui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = FALSE, datum/tgui/master_ui = null, datum/ui_state/state = GLOB.always_state) ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui) - ui = new(user, src, ui_key, "VotePanel", "VotePanel", 400, 500, master_ui, state) + ui = new(user, src, ui_key, "VotePanel", "Панель голосования", 400, 500, master_ui, state) ui.open() /datum/vote/ui_data(mob/user) @@ -195,5 +195,5 @@ if(params["target"] in choices) voted[usr.ckey] = params["target"] else - message_admins("\[EXPLOIT] User [key_name_admin(usr)] spoofed a vote in the vote panel!") + message_admins("\[EXPLOIT] Пользователь [key_name_admin(usr)] подделал голосование в панели!") diff --git a/code/modules/vote/vote_presets.dm b/code/modules/vote/vote_presets.dm index 069986746285..1bf1c87c1fa6 100644 --- a/code/modules/vote/vote_presets.dm +++ b/code/modules/vote/vote_presets.dm @@ -1,22 +1,22 @@ // Crew transfer vote /datum/vote/crew_transfer - question = "End the shift" - choices = list("Initiate Crew Transfer", "Continue The Round") - vote_type_text = "crew transfer" + question = "Окончание смены" + choices = list("Инициировать эвакуацию", "Продолжить раунд") + vote_type_text = "эвакуацию" /datum/vote/crew_transfer/New() if(SSticker.current_state < GAME_STATE_PLAYING) - CRASH("Attempted to call a shuttle vote before the game starts!") + CRASH("Попытка вызвать голосование за шаттл до начала!") ..() /datum/vote/crew_transfer/handle_result(result) - if(result == "Initiate Crew Transfer") + if(result == "Инициировать эвакуацию") init_shift_change(null, TRUE) // Map vote /datum/vote/map - question = "Map Vote" - vote_type_text = "map" + question = "Голосование за карту" + vote_type_text = "карту" /datum/vote/map/generate_choices() for(var/x in subtypesof(/datum/map)) @@ -35,7 +35,7 @@ /datum/vote/map/announce() ..() for(var/mob/M in GLOB.player_list) - M.throw_alert("Map Vote", /obj/screen/alert/notify_mapvote, timeout_override = GLOB.configuration.vote.vote_time) + M.throw_alert("Голосование за карту", /obj/screen/alert/notify_mapvote, timeout_override = GLOB.configuration.vote.vote_time) /datum/vote/map/handle_result(result) // Find target map. @@ -48,5 +48,5 @@ // Set top voted map if(result == "[initial(M.fluff_name)] ([initial(M.technical_name)])") top_voted_map = M - to_chat(world, "Map for next round: [initial(top_voted_map.fluff_name)] ([initial(top_voted_map.technical_name)])") + to_chat(world, "Карта следующего раунда: [initial(top_voted_map.fluff_name)] ([initial(top_voted_map.technical_name)])") SSmapping.next_map = new top_voted_map diff --git a/code/modules/vote/vote_verb.dm b/code/modules/vote/vote_verb.dm index 3f5b142e5b14..57178d38b14f 100644 --- a/code/modules/vote/vote_verb.dm +++ b/code/modules/vote/vote_verb.dm @@ -5,18 +5,18 @@ if(SSvote.active_vote) SSvote.active_vote.ui_interact(usr) else - to_chat(usr, "There is no active vote") + to_chat(usr, "Нет активных голосований") /client/proc/start_vote() set category = "Admin" - set name = "Start Vote" - set desc = "Start a vote on the server" + set name = "Начать голосование" + set desc = "Начать голосование на сервере" if(!check_rights(R_ADMIN)) return if(SSvote.active_vote) - to_chat(usr, "A vote is already in progress") + to_chat(usr, "Голосование уже в процессе") return // Ask admins which type of vote they want to start @@ -28,7 +28,7 @@ for(var/vtype in vote_types) votemap["[vtype]"] = vtype - var/choice = input(usr, "Select a vote type", "Vote") as null|anything in vote_types + var/choice = input(usr, "Выбрать тип голосования", "Голосование") as null|anything in vote_types if(choice == null) return @@ -40,19 +40,19 @@ return // Its custom, lets ask - var/question = html_encode(input(usr, "What is the vote for?") as text|null) + var/question = html_encode(input(usr, "За что голосуем?") as text|null) if(!question) return var/list/choices = list() for(var/i in 1 to 10) - var/option = capitalize(html_encode(input(usr, "Please enter an option or hit cancel to finish") as text|null)) + var/option = capitalize(html_encode(input(usr, "Впишите опцию или нажмите отмену для завершения") as text|null)) if(!option || !usr.client) break choices |= option - var/c2 = alert(usr, "Show counts while vote is happening?", "Counts", "Yes", "No") - var/c3 = input(usr, "Select a result calculation type", "Vote", VOTE_RESULT_TYPE_MAJORITY) as anything in list(VOTE_RESULT_TYPE_MAJORITY) + var/c2 = alert(usr, "Показать подсчеты во время голосования?", "Голоса", "Да", "Нет") + var/c3 = input(usr, "Выберите тип расчета результата", "Голосование", VOTE_RESULT_TYPE_MAJORITY) as anything in list(VOTE_RESULT_TYPE_MAJORITY) var/datum/vote/V = new /datum/vote(usr.ckey, question, choices, TRUE) V.show_counts = (c2 == "Yes")