Skip to content

Commit

Permalink
Material translate (#587)
Browse files Browse the repository at this point in the history
## About The Pull Request
merge after #586

Немного перевода для материалов
  • Loading branch information
larentoun authored Oct 16, 2024
1 parent 4e49f89 commit e298afc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/game/atom/atom_examine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
var/mats_list = list()
for(var/custom_material in custom_materials)
var/datum/material/current_material = GET_MATERIAL_REF(custom_material)
mats_list += span_tooltip("Объект сделан из [current_material.name].", current_material.name)
mats_list += span_tooltip("Объект сделан из [current_material.declent_ru(GENITIVE)].", current_material.declent_ru(GENITIVE))
. += "из: [english_list(mats_list)]"

/**
Expand Down
10 changes: 5 additions & 5 deletions code/game/objects/items/stacks/stack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@
return
if(singular_name)
if(get_amount()>1)
. += "There are [get_amount()] [singular_name]\s in the stack."
. += "Внутри стопки [get_amount()] единиц[declension_ru(get_amount(), "а", "ы", "")] [declent_ru(GENITIVE)]."
else
. += "There is [get_amount()] [singular_name] in the stack."
. += "Внутри стопки [get_amount()] единица [declent_ru(GENITIVE)]."
else if(get_amount()>1)
. += "There are [get_amount()] in the stack."
. += "Внутри стопки [get_amount()] единиц[declension_ru(get_amount(), "а", "ы", "")] [declent_ru(GENITIVE)]."
else
. += "There is [get_amount()] in the stack."
. += span_notice("<b>Right-click</b> with an empty hand to take a custom amount.")
. += "Внутри стопки [get_amount()] единица [declent_ru(GENITIVE)]."
. += span_notice("<b>ПКМ</b> пустой рукой, чтобы взять определенное количество.")

/obj/item/stack/proc/get_amount()
if(is_cyborg)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/lootpanel/search_object.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
. = ..()

src.item = item
name = item.name
name = item.declent_ru(NOMINATIVE)
if(isobj(item))
path = item.type

Expand Down

0 comments on commit e298afc

Please sign in to comment.