Skip to content

Commit

Permalink
Update master for translate (#591)
Browse files Browse the repository at this point in the history
## About The Pull Request
Поддержка для транслейта, которая должна быть в мастере
  • Loading branch information
larentoun authored Oct 17, 2024
1 parent 9d41e48 commit 7181e2f
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 85 deletions.
4 changes: 2 additions & 2 deletions code/__DEFINES/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions code/datums/components/food/edible.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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]"
Expand Down
2 changes: 2 additions & 0 deletions modular_bandastation/translations/_translations.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions modular_bandastation/translations/code/translate_eat_verb.dm
Original file line number Diff line number Diff line change
@@ -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
168 changes: 85 additions & 83 deletions modular_bandastation/translations/code/translate_say.dm
Original file line number Diff line number Diff line change
@@ -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(.)
14 changes: 14 additions & 0 deletions modular_bandastation/translations/code/translate_security_level.dm
Original file line number Diff line number Diff line change
@@ -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 = "дельта"

0 comments on commit 7181e2f

Please sign in to comment.