diff --git a/code/__DEFINES/text.dm b/code/__DEFINES/text.dm index 3b5cb5d795011..20f82292ef485 100644 --- a/code/__DEFINES/text.dm +++ b/code/__DEFINES/text.dm @@ -53,10 +53,10 @@ #define SANITIZE_FILENAME(text) (GLOB.filename_forbidden_chars.Replace(text, "")) /// Simply removes the < and > characters, and limits the length of the message. -#define STRIP_HTML_SIMPLE(text, limit) (GLOB.angular_brackets.Replace(copytext(text, 1, limit), "")) +#define STRIP_HTML_SIMPLE(text, limit) (GLOB.angular_brackets.Replace(copytext_char(text, 1, limit), "")) // BANDASTATION EDIT - Add _char /// Removes everything enclose in < and > inclusive of the bracket, and limits the length of the message. -#define STRIP_HTML_FULL(text, limit) (GLOB.html_tags.Replace(copytext(text, 1, limit), "")) +#define STRIP_HTML_FULL(text, limit) (GLOB.html_tags.Replace(copytext_char(text, 1, limit), "")) // BANDASTATION EDIT - Add _char /** * stuff like `copytext(input, length(input))` will trim the last character of the input, diff --git a/code/datums/components/food/edible.dm b/code/datums/components/food/edible.dm index 22592a039aa04..d8d3896ff5000 100644 --- a/code/datums/components/food/edible.dm +++ b/code/datums/components/food/edible.dm @@ -312,6 +312,7 @@ Behavior that's still missing from this component that original food items had t original_atom.reagents.copy_to(this_food, original_atom.reagents.total_volume / chosen_processing_option[TOOL_PROCESSING_AMOUNT], 1) if(original_atom.name != initial(original_atom.name)) + this_food.ru_names_rename(RU_NAMES_LIST("slice of [original_atom.name]", "кусочек [original_atom.declent_ru(GENITIVE)]", "кусочка [original_atom.declent_ru(GENITIVE)]", "кусочку [original_atom.declent_ru(GENITIVE)]", "кусочек [original_atom.declent_ru(GENITIVE)]", "кусочком [original_atom.declent_ru(GENITIVE)]", "кусочке [original_atom.declent_ru(GENITIVE)]")) this_food.name = "slice of [original_atom.name]" if(original_atom.desc != initial(original_atom.desc)) this_food.desc = "[original_atom.desc]" diff --git a/modular_bandastation/translations/_translations.dme b/modular_bandastation/translations/_translations.dme index cc5ced19dbe65..2d84fc10d2317 100644 --- a/modular_bandastation/translations/_translations.dme +++ b/modular_bandastation/translations/_translations.dme @@ -8,7 +8,9 @@ #include "code/pronouns.dm" #include "code/restaurant_customer.dm" #include "code/translate_attack_verb.dm" +#include "code/translate_eat_verb.dm" #include "code/translate_say.dm" +#include "code/translate_security_level.dm" #include "code/translate_suggest_ru_names.dm" #include "code/ru_names/ru_name_base.dm" #include "code/ru_names/ru_name_materials.dm" diff --git a/modular_bandastation/translations/code/translate_eat_verb.dm b/modular_bandastation/translations/code/translate_eat_verb.dm new file mode 100644 index 0000000000000..e20e06473b9c4 --- /dev/null +++ b/modular_bandastation/translations/code/translate_eat_verb.dm @@ -0,0 +1,9 @@ +/proc/ru_eat_verb(eat_verb) + var/static/list/eat_list = list( + "bite" = "кусает", + "chew" = "жуёт", + "nibble" = "покусывает", + "gnaw" = "грызёт", + "gobble" = "пожирает", + "chomp" = "лопает,") + return eat_list[eat_verb] || eat_verb diff --git a/modular_bandastation/translations/code/translate_say.dm b/modular_bandastation/translations/code/translate_say.dm index 4a2d9fbb98c21..077527a42f3fa 100644 --- a/modular_bandastation/translations/code/translate_say.dm +++ b/modular_bandastation/translations/code/translate_say.dm @@ -1,92 +1,94 @@ -GLOBAL_LIST_INIT(ru_say_verbs, list( - // atom/movable - "says" = "говорит", - "asks" = "спрашивает", - "exclaims" = "восклицает", - "whispers" = "шепчет", - "sings" = "поет", - "yells" = "кричит", - // sign language - "signs" = "жестикулирует", - "subtly signs" = "незаметно жестикулирует", - "rythmically signs" = "ритмично жестикулирует", - "emphatically signs" = "выразительно жестикулирует", - // verb_say - "beeps" = "сигналит", - "coldly states" = "докладывает", - "states" = "сообщает", - "rattles" = "гремит", - "moans" = "стонет", - "intones" = "подпевает", - "psychically pulses" = "психически пульсирует", - "gurgles" = "булькает", - "spittles" = "плюет", - "blorbles" = "булькает", - "warps" = "искаженно произносит", - "chitters" = "щебечет", - "ribbits" = "квакает", - "squeaks" = "пищит", - "flutters" = "трепещет", - "hisses" = "шипит", - "echoes" = "резонирует", - "chants" = "воспевает", - "codes" = "шифрует", - // verb_ask - "queries" = "спрашивает", - "bloops" = "спрашивает", - "questionably beeps" = "вопросительно сигналит", - "psychically probes" = "психически расспрашивает", - "demands" = "настойчиво спрашивает", - "spittles questioningly" = "вопросительно плюет", - "inquisitively blorbles" = "вопросительно булькает", - "floats inquisitively" = "вопросительно витает", - "chitters inquisitively" = "вопросительно щебечет", - // verb_exclaim - "blares" = "трубит", - "beeps loudly" = "громко сигналит", - "declares" = "восклицает", - "psychically yells" = "психически кричит", - "roars" = "рычит", - "splutters and gurgles" = "плюет и булькает", - "loudly blorbles" = "громко булькает", - "zaps" = "искрит", - "chitters loudly" = "громко щебечет", - "croaks" = "квакает", - "flutters loudly" = "громко трепещет", - "compiles" = "компилирует", - // verb_yell - "wails" = "вопит", - "alarms" = "сигнализирует", - "bellows" = "ревет", - "psychically screams" = "психически вопит", - // slur - "loosely signs" = "размашисто жестикулирует", - "slurs" = "ругается", - // stutter - "shakily signs" = "неуверенно жестикулирует", - "stammers" = "заикается", - // gibbers - "incoherently signs" = "бессвязно жестикулирует", - "gibbers" = "тараторит", - // say_mod (tongue) - "crackles" = "трещит", - "meows" = "мяукает", - "chirps" = "чирикает", - "chimpers" = "укает", - "poofs" = "", - "whistles" = "свистит", - "rumbles" = "грохочет", - // other -)) +/proc/ru_say_verb(say_verb) + var/static/list/ru_say_verb_list = list( + // atom/movable + "says" = "говорит", + "asks" = "спрашивает", + "exclaims" = "восклицает", + "whispers" = "шепчет", + "sings" = "поет", + "yells" = "кричит", + // sign language + "signs" = "жестикулирует", + "subtly signs" = "незаметно жестикулирует", + "rythmically signs" = "ритмично жестикулирует", + "emphatically signs" = "выразительно жестикулирует", + // verb_say + "beeps" = "сигналит", + "coldly states" = "докладывает", + "states" = "сообщает", + "rattles" = "гремит", + "moans" = "стонет", + "intones" = "подпевает", + "psychically pulses" = "психически пульсирует", + "gurgles" = "булькает", + "spittles" = "плюет", + "blorbles" = "булькает", + "warps" = "искаженно произносит", + "chitters" = "щебечет", + "ribbits" = "квакает", + "squeaks" = "пищит", + "flutters" = "трепещет", + "hisses" = "шипит", + "echoes" = "резонирует", + "chants" = "воспевает", + "codes" = "шифрует", + // verb_ask + "queries" = "спрашивает", + "bloops" = "спрашивает", + "questionably beeps" = "вопросительно сигналит", + "psychically probes" = "психически расспрашивает", + "demands" = "настойчиво спрашивает", + "spittles questioningly" = "вопросительно плюет", + "inquisitively blorbles" = "вопросительно булькает", + "floats inquisitively" = "вопросительно витает", + "chitters inquisitively" = "вопросительно щебечет", + // verb_exclaim + "blares" = "трубит", + "beeps loudly" = "громко сигналит", + "declares" = "восклицает", + "psychically yells" = "психически кричит", + "roars" = "рычит", + "splutters and gurgles" = "плюет и булькает", + "loudly blorbles" = "громко булькает", + "zaps" = "искрит", + "chitters loudly" = "громко щебечет", + "croaks" = "квакает", + "flutters loudly" = "громко трепещет", + "compiles" = "компилирует", + // verb_yell + "wails" = "вопит", + "alarms" = "сигнализирует", + "bellows" = "ревет", + "psychically screams" = "психически вопит", + // slur + "loosely signs" = "размашисто жестикулирует", + "slurs" = "ругается", + // stutter + "shakily signs" = "неуверенно жестикулирует", + "stammers" = "заикается", + // gibbers + "incoherently signs" = "бессвязно жестикулирует", + "gibbers" = "тараторит", + // say_mod (tongue) + "crackles" = "трещит", + "meows" = "мяукает", + "chirps" = "чирикает", + "chimpers" = "укает", + "poofs" = "", + "whistles" = "свистит", + "rumbles" = "грохочет", + // other +) + return ru_say_verb_list[say_verb] || say_verb /atom/movable/say_mod(input, list/message_mods) . = ..() - return GLOB.ru_say_verbs[.] || . + return ru_say_verb(.) /mob/living/say_mod(input, list/message_mods) . = ..() - return GLOB.ru_say_verbs[.] || . + return ru_say_verb(.) /obj/machinery/requests_console/say_mod(input, list/message_mods) . = ..() - return GLOB.ru_say_verbs[.] || . + return ru_say_verb(.) diff --git a/modular_bandastation/translations/code/translate_security_level.dm b/modular_bandastation/translations/code/translate_security_level.dm new file mode 100644 index 0000000000000..3c9e78aa1d349 --- /dev/null +++ b/modular_bandastation/translations/code/translate_security_level.dm @@ -0,0 +1,14 @@ +/datum/security_level + var/ru_name = "не назначен" + +/datum/security_level/green + ru_name = "зеленый" + +/datum/security_level/blue + ru_name = "синий" + +/datum/security_level/red + ru_name = "красный" + +/datum/security_level/delta + ru_name = "дельта"