Skip to content

Commit

Permalink
Interface translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Insurgent679 authored Nov 16, 2024
1 parent b295619 commit 816cb0a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
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>")

/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>")
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>")
48 changes: 24 additions & 24 deletions interface/skin.dmf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ menu "menu"
elem
name = "&File"
elem
name = "&Quick screenshot"
name = "&Быстрый снимок экрана"
command = ".screenshot auto"
category = "&File"
elem
name = "&Save screenshot as..."
name = "&Сохраните скриншот как..."
command = ".screenshot"
category = "&File"
elem "reconnectbutton"
name = "&Reconnect"
name = "&Повторно подключиться"
command = ".reconnect"
category = "&File"
elem "debugmcbutton"
Expand All @@ -21,17 +21,17 @@ menu "menu"
category = "&File"
is-disabled = true
elem
name = "&Quit"
name = "&Выйти"
command = ".quit"
category = "&File"
elem
name = "&Icons"
elem
name = "&Size"
name = "&Размер"
category = "&Icons"
saved-params = "is-checked"
elem "stretch"
name = "&Stretch to fit"
name = "&Растянуть по размеру"
command = ".winset \"mapwindow.map.icon-size=0\""
category = "&Size"
is-checked = true
Expand Down Expand Up @@ -80,7 +80,7 @@ menu "menu"
can-check = true
group = "size"
elem
name = "&Scaling"
name = "&Изменение масштаба"
category = "&Icons"
saved-params = "is-checked;command"
elem "NN"
Expand Down Expand Up @@ -108,40 +108,40 @@ menu "menu"
category = "&Icons"
can-check = true
elem
name = "&Options"
name = "&Настройки"
elem
name = "&Open Volume Mixer"
name = "&Настройки звука"
command = "Open-Volume-Mixer"
category = "&Options"
category = "&Настройки"
elem "statusbar"
name = "&Show status bar"
category = "&Options"
category = "&Настройки"
can-check = true
is-checked = true
saved-params = "is-checked"
command = ".winset \"menu.statusbar.is-checked=true?mapwindow.status_bar.is-visible=true:mapwindow.status_bar.is-visible=false\""
elem
name = "&Game Preferences"
name = "&Настройки игры"
command = "Game-Preferences"
category = "&Options"
category = "&Настройки"
elem
name = "&Help"
name = "&Помощь"
elem
name = "&Admin help"
name = "&Помощь от администратора"
command = "adminhelp"
category = "&Help"
category = "&Помощь"
elem
name = "&Fit Viewport"
command = "Fit-Viewport"
category = "&Help"
category = "&Помощь"
elem
name = "&Refresh TGUI"
name = "&Обновить TGUI"
command = "Refresh-TGUI"
category = "&Help"
category = "&Помощь"
elem
name = "&Fix Chat"
name = "&Исправить чат"
command = "Fix-Chat"
category = "&Help"
category = "&Помощь"


window "mainwindow"
Expand Down Expand Up @@ -328,7 +328,7 @@ window "rpane"
size = 40x16
is-checked = true
saved-params = "is-checked"
text = "Info"
text = "Информация"
command = ".winset \"rpanewindow.top=infowindow\""
group = "rpanemode"
button-type = pushbox
Expand All @@ -342,7 +342,7 @@ window "rpane"
type = BUTTON
pos = 211,7
size = 50x16
text = "Rules"
text = "Правила"
command = "rules"
elem "githubb"
type = BUTTON
Expand All @@ -354,7 +354,7 @@ window "rpane"
type = BUTTON
pos = 313,7
size = 50x16
text = "Map"
text = "Карта"
command = "webmap"
elem "changelog"
type = BUTTON
Expand Down

0 comments on commit 816cb0a

Please sign in to comment.