Skip to content

Commit

Permalink
qol: микроправки кода и локализации (ss220-space#6488)
Browse files Browse the repository at this point in the history
* тык

* и ещё

* тгуи

* и ещё
  • Loading branch information
PlayerUnknown14 authored Jan 29, 2025
1 parent 598786f commit bad8191
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 49 deletions.
56 changes: 28 additions & 28 deletions code/game/machinery/vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@
/obj/machinery/vending/examine(mob/user)
. = ..()
if(tilted)
. += span_warning("Он лежит на боку и не будет функционировать до тех пор, пока его не поправят.")
. += span_warning("Он лежит на боку и не будет функционировать до тех пор, пока его не поднимут.")
if(Adjacent(user))
. += span_notice("Нажмите <b>Alt-Click</b> чтобы поднять автомат.")
. += span_notice("Используйте <b>Alt+ЛКМ</b>, чтобы поднять автомат.")
if(aggressive)
. += span_warning("Его индикаторы, кажется, зловеще мигают...")
. += span_warning("Его индикаторы зловеще мигают...")

/obj/machinery/vending/AltClick(mob/user)
if(!tilted || !Adjacent(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
Expand Down Expand Up @@ -745,7 +745,7 @@
var/estimated_height = 100 + min(length(product_records) * 34, 500)
if(length(prices) > 0)
estimated_height += 100 // to account for the "current user" interface
ui = new(user, src, "Vending", name)
ui = new(user, src, "Vending", capitalize(declent_ru(NOMINATIVE)))
ui.open()

/obj/machinery/vending/ui_data(mob/user)
Expand All @@ -766,7 +766,7 @@
var/obj/item/stack/spacecash/S = H.get_active_hand()
if(istype(S))
data["userMoney"] = S.amount
data["guestNotice"] = "Принимаем наличные. У вас есть: [S.amount] кредитов."
data["guestNotice"] = "Принимаем наличные. У вас есть: [S.amount] кредит[pluralize_ru(S.amount, "", "а", "ов")]."
else if(istype(H))
var/obj/item/card/id/C = H.get_id_card()
if(istype(A))
Expand All @@ -781,11 +781,11 @@
data["stock"][R.name] = R.amount
data["extended_inventory"] = extended_inventory
data["vend_ready"] = vend_ready
data["coin_name"] = coin ? coin.name : FALSE
data["coin_name"] = coin ? coin.declent_ru(NOMINATIVE) : FALSE
data["panel_open"] = panel_open ? TRUE : FALSE
data["speaker"] = shut_up ? FALSE : TRUE
data["item_slot"] = item_slot // boolean
data["inserted_item_name"] = inserted_item ? inserted_item.name : FALSE
data["inserted_item_name"] = inserted_item ? inserted_item.declent_ru(NOMINATIVE) : FALSE
return data


Expand All @@ -795,13 +795,13 @@
data["product_records"] = list()
var/i = 1
for (var/datum/data/vending_product/R in product_records)
var/obj/item = R.product_path
var/obj/item/newitem = new R.product_path(src)
var/list/data_pr = list(
path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"),
name = R.name,
price = (item in prices) ? prices[item] : 0,
icon = item.icon,
icon_state = item.icon_state,
name = capitalize(newitem.declent_ru(NOMINATIVE)),
price = (newitem in prices) ? prices[newitem] : 0,
icon = newitem.icon,
icon_state = newitem.icon_state,
max_amount = R.max_amount,
req_coin = FALSE,
is_hidden = FALSE,
Expand All @@ -811,13 +811,13 @@
i++
data["coin_records"] = list()
for (var/datum/data/vending_product/R in coin_records)
var/obj/item = R.product_path
var/obj/item/newitem = new R.product_path(src)
var/list/data_cr = list(
path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"),
name = R.name,
price = (item in prices) ? prices[item] : 0,
icon = item.icon,
icon_state = item.icon_state,
name = capitalize(newitem.declent_ru(NOMINATIVE)),
price = (newitem in prices) ? prices[newitem] : 0,
icon = newitem.icon,
icon_state = newitem.icon_state,
max_amount = R.max_amount,
req_coin = TRUE,
is_hidden = FALSE,
Expand All @@ -828,13 +828,13 @@
i++
data["hidden_records"] = list()
for (var/datum/data/vending_product/R in hidden_records)
var/obj/item = R.product_path
var/obj/item/newitem = new R.product_path(src)
var/list/data_hr = list(
path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"),
name = R.name,
price = (item in prices) ? prices[item] : 0,
icon = item.icon,
icon_state = item.icon_state,
name = capitalize(newitem.declent_ru(NOMINATIVE)),
price = (newitem in prices) ? prices[newitem] : 0,
icon = newitem.icon,
icon_state = newitem.icon_state,
max_amount = R.max_amount,
req_coin = FALSE,
is_hidden = TRUE,
Expand Down Expand Up @@ -868,7 +868,7 @@
if(issilicon(usr))
balloon_alert(usr, "у вас нет рук!")
return
to_chat(usr, span_notice("Вы достали [coin] из [declent_ru(GENITIVE)]."))
to_chat(usr, span_notice("Вы достали [coin.declent_ru(ACCUSATIVE)] из [declent_ru(GENITIVE)]."))
coin.forceMove_turf()
usr.put_in_hands(coin, ignore_anim = FALSE)
coin = null
Expand Down Expand Up @@ -907,7 +907,7 @@
message_admins("Vending machine exploit attempted by [ADMIN_LOOKUPFLW(usr)]!")
return
if (R.amount <= 0)
to_chat(usr, "Sold out of [R.name].")
to_chat(usr, "Товар \"[R.name]\" закончился!")
flick_vendor_overlay(FLICK_VEND)
return

Expand Down Expand Up @@ -953,7 +953,7 @@
vend(currently_vending, usr)
. = TRUE
else
to_chat(usr, span_warning("Сбой платежа: не удается обработать платеж."))
to_chat(usr, span_warning("Сбой платежа: не удаётся обработать платеж."))
vend_ready = TRUE
if(.)
add_fingerprint(usr)
Expand Down Expand Up @@ -982,9 +982,9 @@
return
if(coin.string_attached)
if(prob(50))
to_chat(user, span_notice("Вы успешно вытаскиваете монету до того, как [declent_ru(NOMINATIVE)] успевает ее проглотить."))
to_chat(user, span_warning("Вы успешно вытаскиваете монету до того, как [declent_ru(NOMINATIVE)] успевает ее проглотить!"))
else
to_chat(user, span_notice("Вы не смогли вытащить монету достаточно быстро, [declent_ru(NOMINATIVE)] съел ее вместе с ниткой и всем остальным."))
to_chat(user, span_warning("Вы не смогли вытащить монету достаточно быстро, [declent_ru(NOMINATIVE)] съел её вместе с ниткой и всем остальным!"))
QDEL_NULL(coin)
else
QDEL_NULL(coin)
Expand Down Expand Up @@ -1115,7 +1115,7 @@
if(!throw_item)
return
throw_item.throw_at(target, 16, 3)
visible_message(span_danger("[capitalize(declent_ru(NOMINATIVE))] метнул [throw_item.name] в [target.name]!"))
visible_message(span_danger("[capitalize(declent_ru(NOMINATIVE))] метнул [throw_item.declent_ru(ACCUSATIVE)] в [target]!"))


/obj/machinery/vending/shove_impact(mob/living/target, mob/living/attacker)
Expand Down
7 changes: 3 additions & 4 deletions code/game/objects/structures/watercloset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,9 @@
if(busy)
to_chat(user, "<span class='notice'>Someone's already washing here.</span>")
return
var/selected_area = parse_zone(user.zone_selected)
var/washing_face = 0
if(selected_area in list("голова", "рот", "глаза"))
washing_face = 1
var/washing_face = FALSE
if(user.zone_selected in list(BODY_ZONE_HEAD, BODY_ZONE_PRECISE_EYES, BODY_ZONE_PRECISE_MOUTH))
washing_face = TRUE
user.visible_message(span_notice("[user] начина[pluralize_ru(user.gender, "ет", "ют")] мыть [washing_face ? "своё лицо" : "свои руки"]..."), \
span_notice("Вы начинаете мыть [washing_face ? "своё лицо" : "свои руки"]..."))
busy = 1
Expand Down
12 changes: 6 additions & 6 deletions code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
var/amount = starting_items[typekey] || 1
while(amount--)
var/obj/item/newitem = new typekey(src)
item_quants[newitem.name] += 1
item_quants[newitem.declent_ru(NOMINATIVE)] += 1
update_icon(UPDATE_OVERLAYS)
// Accepted items
accepted_items_typecache = typecacheof(list(
Expand Down Expand Up @@ -306,7 +306,7 @@

ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "Smartfridge", name)
ui = new(user, src, "Smartfridge", capitalize(declent_ru(NOMINATIVE)))
ui.open()

/obj/machinery/smartfridge/ui_data(mob/user)
Expand Down Expand Up @@ -361,15 +361,15 @@
return
if(i == 1 && Adjacent(user) && !issilicon(user))
for(var/obj/O in contents)
if(O.name == K)
if(O.declent_ru(NOMINATIVE) == K)
O.forceMove(get_turf(src))
adjust_item_drop_location(O)
user.put_in_hands(O, ignore_anim = FALSE)
update_icon(UPDATE_OVERLAYS)
break
else
for(var/obj/O in contents)
if(O.name == K)
if(O.declent_ru(NOMINATIVE) == K)
O.forceMove(loc)
adjust_item_drop_location(O)
update_icon(UPDATE_OVERLAYS)
Expand Down Expand Up @@ -410,7 +410,7 @@
else
I.forceMove(src)

item_quants[I.name] += 1
item_quants[I.declent_ru(NOMINATIVE)] += 1
return TRUE


Expand All @@ -428,7 +428,7 @@
continue
item_quants[O]--
for(var/obj/I in contents)
if(I.name == O)
if(I.declent_ru(NOMINATIVE) == O)
I.forceMove(loc)
throw_item = I
update_icon(UPDATE_OVERLAYS)
Expand Down
14 changes: 7 additions & 7 deletions interface/skin.dmf
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ menu "menu"
command = ".quit"
category = "&Файл"
elem
name = "&Изображение"
name = "&Экран"
elem
name = "&Размер"
category = "&Изображение"
category = "&Экран"
saved-params = "is-checked"
elem "stretch"
name = "&Авто-подбор размера"
Expand Down Expand Up @@ -81,7 +81,7 @@ menu "menu"
group = "размер"
elem
name = "&Масштабирование"
category = "&Изображение"
category = "&Экран"
saved-params = "is-checked;command"
elem "NN"
name = "&Метод ближайшего соседа"
Expand All @@ -105,7 +105,7 @@ menu "menu"
elem "textmode"
name = "&Текст"
command = ".winset \"menu.textmode.is-checked=true?mapwindow.map.text-mode=true:mapwindow.map.text-mode=false\""
category = "&Изображение"
category = "&Экран"
can-check = true
elem
name = "&Опции"
Expand Down Expand Up @@ -249,7 +249,7 @@ window "outputwindow"
button-type = pushbox
elem "saybutton"
type = BUTTON
pos = 549,460
pos = 499,460
size = 50x20
anchor1 = 100,100
anchor2 = -1,-1
Expand All @@ -261,13 +261,13 @@ window "outputwindow"
button-type = pushbox
elem "mebutton"
type = BUTTON
pos = 499,460
pos = 549,460
size = 50x20
anchor1 = 100,100
anchor2 = -1,-1
border = line
saved-params = "is-checked"
text = "Эмоции"
text = "Эмоция"
command = ".winset \"mebutton.is-checked=true ? input.command=\"!me \\\"\" : input.command=\"\"mebutton.is-checked=true ? saybutton.is-checked=false\"\"mebutton.is-checked=true ? oocbutton.is-checked=false\""
is-flat = true
button-type = pushbox
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/DNAModifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ const DNAModifierIrradiating = (props, context) => {
<Box color="average">
<h1>
<Icon name="radiation" />
&nbsp;Облучить субъект&nbsp;
&nbsp;Облучение субъекта&nbsp;
<Icon name="radiation" />
</h1>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/Vending.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const Vending = (props, context) => {
<Window
width={470}
height={100 + Math.min(product_records.length * 38, 500)}
title="Vending Machine"
title="Торговый автомат"
>
<Window.Content>
<Stack fill vertical>
Expand Down
4 changes: 2 additions & 2 deletions tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit bad8191

Please sign in to comment.