Skip to content

Commit

Permalink
Ru names 456 (#571)
Browse files Browse the repository at this point in the history
## About The Pull Request
Добавляет саггестеты с прошло раунда
Добавляет поддержку ренейма дизайнов, если есть перевод
  • Loading branch information
larentoun authored Oct 13, 2024
1 parent 77d6b8b commit e599154
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/game/objects/items/food/meatdish.dm
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@

/obj/item/food/kebab/rat/double
name = "double rat-kebab"
RU_NAMES_LIST_INIT("double rat-kebab", "двойной крышлык", "двойного крышлыка", "двойному крышлыку", "двойной крышлык", "двойным крышлыком", "двойном крышлыке")
icon_state = "doubleratkebab"
tastes = list("rat meat" = 2, "metal" = 1)
food_reagents = list(
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/mop.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/obj/item/mop
desc = "The world of janitalia wouldn't be complete without a mop."
name = "mop"
RU_NAMES_LIST_INIT("mop", "швабра", "швабры", "швабре", "швабру", "шваброй", "швабре")
icon = 'icons/obj/service/janitor.dmi'
icon_state = "mop"
inhand_icon_state = "mop"
Expand Down
4 changes: 4 additions & 0 deletions code/game/objects/structures/false_walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
/obj/structure/falsewall
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A huge chunk of metal used to separate rooms."
anchored = TRUE
icon = 'icons/turf/walls/false_walls.dmi'
Expand Down Expand Up @@ -351,6 +352,7 @@

/obj/structure/falsewall/titanium
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A light-weight titanium wall used in shuttles."
fake_icon = 'icons/turf/walls/shuttle_wall.dmi'
icon_state = "shuttle_wall-open"
Expand All @@ -363,6 +365,7 @@

/obj/structure/falsewall/plastitanium
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "An evil wall of plasma and titanium."
fake_icon = 'icons/turf/walls/plastitanium_wall.dmi'
icon_state = "plastitanium_wall-open"
Expand All @@ -375,6 +378,7 @@

/obj/structure/falsewall/material
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A huge chunk of material used to separate rooms."
fake_icon = 'icons/turf/walls/material_wall.dmi'
icon_state = "material_wall-open"
Expand Down
2 changes: 2 additions & 0 deletions code/game/turfs/closed/indestructible.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/turf/closed/indestructible
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "Effectively impervious to conventional methods of destruction."
icon = 'icons/turf/walls.dmi'
explosive_resistance = 50
Expand Down Expand Up @@ -328,6 +329,7 @@ INITIALIZE_IMMEDIATE(/turf/closed/indestructible/splashscreen)

/turf/closed/indestructible/riveted/hierophant
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A wall made out of a strange metal. The squares on it pulse in a predictable pattern."
icon = 'icons/turf/walls/hierophant_wall.dmi'
icon_state = "wall"
Expand Down
1 change: 1 addition & 0 deletions code/game/turfs/closed/wall/material_walls.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/turf/closed/wall/material
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A huge chunk of material used to separate rooms."
icon = 'icons/turf/walls/material_wall.dmi'
icon_state = "material_wall-0"
Expand Down
2 changes: 2 additions & 0 deletions code/game/turfs/closed/wall/mineral_walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@

/turf/closed/wall/mineral/titanium //has to use this path due to how building walls works
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A light-weight titanium wall used in shuttles."
icon = 'icons/turf/walls/shuttle_wall.dmi'
icon_state = "shuttle_wall-0"
Expand Down Expand Up @@ -331,6 +332,7 @@

/turf/closed/wall/mineral/plastitanium
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A durable wall made of an alloy of plasma and titanium."
icon = 'icons/turf/walls/plastitanium_wall.dmi'
icon_state = "plastitanium_wall-0"
Expand Down
1 change: 1 addition & 0 deletions code/game/turfs/closed/walls.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/turf/closed/wall
name = "wall"
RU_NAMES_LIST_INIT("wall", "стена", "стены", "стене", "стену", "стеной", "стене")
desc = "A huge chunk of iron used to separate rooms."
icon = 'icons/turf/walls/wall.dmi'
icon_state = "wall-0"
Expand Down
1 change: 1 addition & 0 deletions code/modules/clothing/shoes/clown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

/obj/item/clothing/shoes/clown_shoes/moffers
name = "moffers"
RU_NAMES_LIST_INIT("moffers", "мофферсы", "мофферсов", "мофферсам", "мофферсы", "мофферсами", "мофферсах")
desc = "No moths were harmed in the making of these slippers."
icon_state = "moffers"
squeak_sound = list('sound/effects/footstep/moffstep01.ogg'=1) //like sweet music to my ears
1 change: 1 addition & 0 deletions code/modules/hydroponics/hydroitemdefines.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Plant analyzer
/obj/item/plant_analyzer
name = "plant analyzer"
RU_NAMES_LIST_INIT("plant analyzer", "анализатор растений", "анализатора растений", "анализатору растений", "анализатор растений", "анализатором растений", "анализаторе растений")
desc = "A scanner used to evaluate a plant's various areas of growth, and genetic traits. Comes with a growth scanning mode and a chemical scanning mode."
icon = 'icons/obj/devices/scanner.dmi'
icon_state = "hydro"
Expand Down
1 change: 1 addition & 0 deletions modular_bandastation/translations/_translations.dme
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "_translations.dm"

#include "code/bodyparts.dm"
#include "code/design.dm"
#include "code/moustache.dm"
#include "code/pronouns.dm"
#include "code/restaurant_customer.dm"
Expand Down
19 changes: 19 additions & 0 deletions modular_bandastation/translations/code/design.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/datum/design
var/use_declented_name = TRUE

/datum/design/New()
. = ..()
if(!use_declented_name || !build_path)
return
var/atom/design_result = build_path
name = capitalize(design_result::ru_name_nominative) || name

/datum/crafting_recipe
var/use_declented_name = TRUE

/datum/crafting_recipe/New()
. = ..()
if(!use_declented_name || !result)
return
var/atom/crafting_result = result
name = capitalize(crafting_result::ru_name_nominative) || name
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if(!ru_name_suggest[declent])
to_chat(src, span_notice("Вы отменили предложение перевода."))
return TRUE
var/message = "suggests RU_NAMES_INIT_LIST(\"[atom_type::name]\", \"[ru_name_suggest[NOMINATIVE]]\", \"[ru_name_suggest[GENITIVE]]\", \"[ru_name_suggest[DATIVE]]\", \"[ru_name_suggest[ACCUSATIVE]]\", \"[ru_name_suggest[INSTRUMENTAL]]\", \"[ru_name_suggest[PREPOSITIONAL]]\") for [atom_type::type]"
var/message = "suggests RU_NAMES_LIST_INIT(\"[atom_type::name]\", \"[ru_name_suggest[NOMINATIVE]]\", \"[ru_name_suggest[GENITIVE]]\", \"[ru_name_suggest[DATIVE]]\", \"[ru_name_suggest[ACCUSATIVE]]\", \"[ru_name_suggest[INSTRUMENTAL]]\", \"[ru_name_suggest[PREPOSITIONAL]]\") for [atom_type::type]"
var/log_text = "[key_name_and_tag(src)] [message]"
logger.Log(LOG_CATEGORY_RU_NAMES_SUGGEST, log_text)
to_chat(src, span_notice("Ваше предложение перевода успешно записано."))
Expand Down

0 comments on commit e599154

Please sign in to comment.