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

qol: Interface Translation #6188

Open
wants to merge 9 commits into
base: master220
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions code/modules/crafting/craft.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,26 +149,26 @@
var/list/contents = get_surroundings(user)
var/send_feedback = 1
if(!check_contents(R, contents))
return ", missing component."
return ", недостающий компонент."
if(!check_tools(user, R, contents))
return ", missing tool."
return ", недостающий инструмент."
if(!check_pathtools(user, R, contents))
return ", missing tool."
return ", недостающий инструмент."

if(!do_after(user, R.time, user))
return "."
contents = get_surroundings(user)

if(!check_contents(R, contents))
return ", missing component."
return ", недостающий компонент."
if(!check_tools(user, R, contents))
return ", missing tool."
return ", недостающий инструмент."
if(!check_pathtools(user, R, contents))
return ", missing tool."
return ", недостающий инструмент."

var/list/parts = requirements_deletion(R, user)
if(!parts)
return ", missing component."
return ", недостающий компонент."

var/result_list = R.result
if(!islist(result_list))
Expand Down Expand Up @@ -288,7 +288,7 @@
/datum/personal_crafting/ui_interact(mob/user, datum/tgui/ui = null)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "PersonalCrafting", "Crafting Menu")
ui = new(user, src, "PersonalCrafting", "Меню создания")
ui.open()

/datum/personal_crafting/proc/close(mob/user)
Expand Down Expand Up @@ -356,7 +356,7 @@
if(TR.alert_admins_on_craft)
message_admins("[key_name_admin(usr)] has created a [TR.name] at [ADMIN_COORDJMP(usr)]")
else
to_chat(usr, "<span class='warning'>Construction failed[fail_msg]</span>")
to_chat(usr, "<span class='warning'>Создание провалилось[fail_msg]</span>")
busy = FALSE
SStgui.update_uis(src)

Expand Down
85 changes: 73 additions & 12 deletions code/modules/crafting/guncrafting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,59 @@

/obj/item/weaponcrafting/receiver
name = "modular receiver"
desc = "A prototype modular receiver and trigger assembly for a firearm."
ru_names = list(
NOMINATIVE = "модульный приёмник",
GENITIVE = "модульного приёмника",
DATIVE = "модульному приёмнику",
ACCUSATIVE = "модульный приёмник",
INSTRUMENTAL = "модульным приёмником",
PREPOSITIONAL = "модульном приёмнике"
)
desc = "Прототип модульной ствольной коробки и спускового механизма для огнестрельного оружия."
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
icon = 'icons/obj/improvised.dmi'
icon_state = "receiver"

/obj/item/weaponcrafting/stock
name = "rifle stock"
desc = "A classic rifle stock that doubles as a grip, roughly carved out of wood."
ru_names = list(
NOMINATIVE = "приклад винтовки",
GENITIVE = "приклада винтовки",
DATIVE = "прикладу винтовки",
ACCUSATIVE = "приклад винтовки",
INSTRUMENTAL = "прикладом винтовки",
PREPOSITIONAL = "прикладе винтовки"
)
desc = "Классический приклад винтовки, который одновременно служит рукояткой, грубо вырезан из дерева."
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
icon = 'icons/obj/improvised.dmi'
icon_state = "riflestock"

/obj/item/weaponcrafting/revolverbarrel
name = "improvised revolver barrel"
desc = "A roughly made revolver barrel."
ru_names = list(
NOMINATIVE = "импровизированный револьверный ствол",
GENITIVE = "импровизированного револьверного ствола",
DATIVE = "импровизированному револьверному стволу",
ACCUSATIVE = "импровизированный револьверный ствол",
INSTRUMENTAL = "импровизированным револьверным стволом",
PREPOSITIONAL = "импровизированном револьверном стволе"
)
desc = "Грубо сделанный револьверный ствол."
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
icon = 'icons/obj/improvised.dmi'
icon_state = "rev_barrel"
w_class = WEIGHT_CLASS_SMALL
var/new_fire_sound = 'sound/weapons/gunshots/1rev257.ogg'

/obj/item/weaponcrafting/revolverbarrel/steel
name = "steel revolver barrel"
desc = "High quality heavy steel gun barrel to increase stability."
ru_names = list(
NOMINATIVE = "стальной револьверный ствол",
GENITIVE = "стального револьверного ствола",
DATIVE = "стальному револьверному стволу",
ACCUSATIVE = "стальной револьверный ствол",
INSTRUMENTAL = "стальным револьверным стволом",
PREPOSITIONAL = "стальном револьверном стволе"
)
desc = "Ствол пистолета из высококачественной тяжелой стали для повышения устойчивости."
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
icon = 'icons/obj/improvised.dmi'
icon_state = "s_rev_barrel"
new_fire_sound = 'sound/weapons/gunshots/1rev257S.ogg'
Expand All @@ -40,7 +72,8 @@
if(!user.drop_transfer_item_to_loc(I, src))
return ..()
add_fingerprint(user)
to_chat(user, "You attach the shotgun barrel to the receiver. The pins seem loose.")
to_chat(user, "Вы прикрепляете ствол дробовика к ствольной коробке. Кажется, что штифты ослаблены.")
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
balloon_alert(user, "деталь установлена")
var/obj/item/weaponcrafting/ishotgunconstruction/construct = new(drop_location())
transfer_fingerprints_to(construct)
I.transfer_fingerprints_to(construct)
Expand All @@ -58,7 +91,15 @@

/obj/item/weaponcrafting/ishotgunconstruction
name = "slightly conspicuous metal construction"
desc = "A long pipe attached to a firearm receiver. The pins seem loose."
ru_names = list(
NOMINATIVE = "слегка заметная металлическая конструкция",
GENITIVE = "слегка заметной металлической конструкции",
DATIVE = "слегка заметной металлической конструкции",
ACCUSATIVE = "слегка заметная металлическая конструкция",
INSTRUMENTAL = "слегка заметной металлической конструкцией",
PREPOSITIONAL = "слегка заметной металлической конструкции"
)
desc = "Длинная труба, прикреплённая к ствольной коробке огнестрельного оружия. Кажется, что штифты расшатаны."
icon = 'icons/obj/improvised.dmi'
icon_state = "ishotgunstep1"

Expand All @@ -72,13 +113,22 @@
construct.add_fingerprint(user)
user.temporarily_remove_item_from_inventory(src, force = TRUE)
user.put_in_hands(construct, ignore_anim = FALSE)
to_chat(user, span_notice("You screw the pins into place, securing the pipe to the receiver."))
to_chat(user, span_notice("Вы вкручиваете штифты на место, закрепляя трубу на приемнике."))
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
pilygun marked this conversation as resolved.
Show resolved Hide resolved
balloon_alert(user, "деталь установлена")
qdel(src)


/obj/item/weaponcrafting/ishotgunconstruction2
name = "very conspicuous metal construction"
desc = "A long pipe attached to a trigger assembly."
ru_names = list(
NOMINATIVE = "очень заметная металлическая конструкция",
GENITIVE = "очень заметной металлической конструкции",
DATIVE = "очень заметной металлической конструкции",
ACCUSATIVE = "очень заметная металлическая конструкция",
INSTRUMENTAL = "очень заметной металлической конструкцией",
PREPOSITIONAL = "очень заметной металлической конструкции"
)
desc = "Длинная труба, прикреплённая к спусковому механизму."
icon = 'icons/obj/improvised.dmi'
icon_state = "ishotgunstep1"

Expand All @@ -89,7 +139,8 @@
return ..()
if(!user.drop_transfer_item_to_loc(I, src))
return ..()
to_chat(user, span_notice("You attach the stock to the receiver-barrel assembly."))
to_chat(user, span_notice("Приклад крепится к ствольной коробке."))
Copy link
Contributor

Choose a reason for hiding this comment

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

балун и тучат

balloon_alert(user, "деталь установлена")
var/obj/item/weaponcrafting/ishotgunconstruction3/construct = new(drop_location())
transfer_fingerprints_to(construct)
I.transfer_fingerprints_to(construct)
Expand All @@ -106,7 +157,15 @@

/obj/item/weaponcrafting/ishotgunconstruction3
name = "extremely conspicuous metal construction"
desc = "A receiver-barrel shotgun assembly with a loose wooden stock. There's no way you can fire it without the stock coming loose."
ru_names = list(
NOMINATIVE = "чрезвычайно заметная металлическая конструкция",
GENITIVE = "чрезвычайно заметной металлической конструкции",
DATIVE = "чрезвычайно заметной металлической конструкции",
ACCUSATIVE = "чрезвычайно заметная металлическая конструкция",
INSTRUMENTAL = "чрезвычайно заметной металлической конструкцией",
PREPOSITIONAL = "чрезвычайно заметной металлической конструкции"
)
desc = "Дробовик в сборе со ствольной коробкой и незакреплённым деревянным прикладом. Вы не сможете выстрелить из него так, чтобы приклад не отвалился."
icon = 'icons/obj/improvised.dmi'
icon_state = "ishotgunstep2"

Expand All @@ -118,9 +177,11 @@
if(loc == user && !user.can_unEquip(src))
return ..()
if(!wrap.use(5))
to_chat(user, span_warning("You need at least five feet of wrapping paper to secure the stock."))
to_chat(user, span_warning("Вам понадобится не менее пяти мотков оберточной бумаги, чтобы закрепить заготовку."))
Copy link
Contributor

Choose a reason for hiding this comment

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

балун и тучат

balloon_alert(user, "недостаточно материала!")
return ATTACK_CHAIN_PROCEED
to_chat(user, span_notice("You tie the wrapping paper around the stock and the barrel to secure it."))
to_chat(user, span_notice("Вы обвязываете оберточной бумагой приклад и ствол, чтобы закрепить его."))
Insurgent679 marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

балун и тучат

balloon_alert(user, "заготовка закреплена")
var/obj/item/gun/projectile/revolver/doublebarrel/improvised/shotta = new(drop_location())
transfer_fingerprints_to(shotta)
shotta.add_fingerprint(user)
Expand Down
40 changes: 20 additions & 20 deletions interface/interface.dm
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@
//Please use mob or src (not usr) in these procs. This way they can be called in the same fashion as procs.
/client/verb/wiki()
set name = "wiki"
set desc = "Type what you want to know about. This will open the wiki in your web browser."
set desc = "Введите то, о чем вы хотите знать. После этого в вашем веб-браузере откроется вики-страница."
set hidden = 1
if(CONFIG_GET(string/wikiurl))
var/query = tgui_input_text(src, "Enter Search:", "Wiki Search", "Homepage")
if(query == "Homepage")
var/query = tgui_input_text(src, "Введите запрос:", "Поиск по вики-сайту", "Заглавная страница")
if(query == "Заглавная страница")
src << link(CONFIG_GET(string/wikiurl))
else if(query)
var/output = CONFIG_GET(string/wikiurl) + "/index.php?title=Special%3ASearch&profile=default&search=" + query
src << link(output)
else
to_chat(src, "<span class='danger'>The wiki URL is not set in the server configuration.</span>")
to_chat(src, "<span class='danger'>URL-адрес wiki не задан в конфигурации сервера.</span>")
return

/client/verb/forum()
set name = "forum"
set desc = "Visit the forum."
set desc = "Посетите форум."
set hidden = 1
if(CONFIG_GET(string/forumurl))
if(tgui_alert(src, "Open the forum in your browser?", "Forum", list("Yes", "No")) != "Yes")
if(tgui_alert(src, "Откройте форум в своем браузере?", "Forum", list("Да", "Нет")) != "Да")
return
if(CONFIG_GET(string/forum_link_url) && prefs && !prefs.fuid)
link_forum_account()
src << link(CONFIG_GET(string/forumurl))
else
to_chat(src, "<span class='danger'>The forum URL is not set in the server configuration.</span>")
to_chat(src, "<span class='danger'>URL-адрес форума не задан в конфигурации сервера.</span>")

/client/verb/rules()
set name = "Rules"
set desc = "View the server rules."
set name = "Правила"
set desc = "Просмотрите правила сервера."
set hidden = 1
if(CONFIG_GET(string/rulesurl))
if(tgui_alert(src, "This will open the rules in your browser. Are you sure?", "Rules", list("Yes", "No")) != "Yes")
if(tgui_alert(src, "После этого в вашем браузере откроются правила. Вы уверены?", "Правила", list("Да", "Нет")) != "Да")
return
src << link(CONFIG_GET(string/rulesurl))
else
to_chat(src, "<span class='danger'>The rules URL is not set in the server configuration.</span>")
to_chat(src, "<span class='danger'>URL-адрес правил не задан в конфигурации сервера.</span>")

/client/verb/github()
set name = "GitHub"
set desc = "Visit the GitHub page."
set desc = "Посетите страницу на GitHub."
set hidden = 1
if(CONFIG_GET(string/githuburl))
if(tgui_alert(src, "This will open our GitHub repository in your browser. Are you sure?", "GitHub", list("Yes", "No")) != "Yes")
if(tgui_alert(src, "Это откроет наш репозиторий на GitHub в вашем браузере. Вы уверены?", "GitHub", list("Да", "Нет")) != "Да")
return
src << link(CONFIG_GET(string/githuburl))
else
to_chat(src, "<span class='danger'>The GitHub URL is not set in the server configuration.</span>")
to_chat(src, "<span class='danger'>URL-адрес GitHub не задан в конфигурации сервера.</span>")
Copy link
Contributor

Choose a reason for hiding this comment

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

span_danger()


/client/verb/discord()
set name = "Discord"
set desc = "Join our Discord server."
set desc = "Присоединяйтесь к нашему серверу Discord."
set hidden = 1

var/durl = CONFIG_GET(string/discordurl)
if(CONFIG_GET(string/forum_link_url) && prefs && prefs.fuid && CONFIG_GET(string/discordforumurl))
durl = CONFIG_GET(string/discordforumurl)
if(!durl)
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
to_chat(src, "<span class='danger'>URL-адрес Discord не задан в конфигурации сервера.</span>")
Copy link
Contributor

Choose a reason for hiding this comment

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

span_danger()

return
if(tgui_alert(src, "This will invite you to our Discord server. Are you sure?", "Discord", list("Yes", "No")) != "Yes")
if(tgui_alert(src, "Это пригласит вас на наш сервер Discord. Вы уверены?", "Discord", list("Да", "Нет")) != "Да")
return
src << link(durl)

/client/verb/donate()
set name = "Donate"
set desc = "Donate to help with hosting costs."
set desc = "Сделайте пожертвование, чтобы покрыть расходы на хостинг."
set hidden = 1
if(CONFIG_GET(string/donationsurl))
if(tgui_alert(src, "This will open the donation page in your browser. Are you sure?", "Donate", list("Yes", "No")) != "Yes")
if(tgui_alert(src, "После этого в вашем браузере откроется страница пожертвований. Вы уверены?", "Donate", list("Да", "Нет")) != "Да")
return
src << link(CONFIG_GET(string/donationsurl))
else
to_chat(src, "<span class='danger'>The rules URL is not set in the server configuration.</span>")
to_chat(src, "<span class='danger'>URL-адрес донатов не задан в конфигурации сервера.</span>")
Copy link
Contributor

Choose a reason for hiding this comment

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

span_danger()

Loading