Skip to content

Commit

Permalink
translate in prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Nov 9, 2024
1 parent 6c2d691 commit ac5ff6b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
1 change: 0 additions & 1 deletion modular_bandastation/keybinding/_keybinding.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "code/carbon.dm"
#include "code/client.dm"
#include "code/communication.dm"
#include "code/emote.dm"
#include "code/human.dm"
#include "code/living.dm"
#include "code/mob.dm"
Expand Down
4 changes: 0 additions & 4 deletions modular_bandastation/keybinding/code/emote.dm

This file was deleted.

5 changes: 5 additions & 0 deletions modular_bandastation/translations/_translations.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ GLOBAL_LIST_EMPTY(ru_emote_messages)
var/list/emote_list = GLOB.emote_list[emote_key]
for(var/datum/emote/emote in emote_list)
emote.update_to_ru()
for(var/emote_kb_key as anything in GLOB.keybindings_by_name)
var/datum/keybinding/emote/emote_kb = GLOB.keybindings_by_name[emote_kb_key]
if(!istype(emote_kb))
continue
emote_kb.update_to_ru()
10 changes: 10 additions & 0 deletions modular_bandastation/translations/code/translate_emotes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@
message_monkey = ru_emote_message(message_monkey)
message_animal_or_basic = ru_emote_message(message_animal_or_basic)
message_param = ru_emote_message(message_param)

/datum/keybinding/emote
var/datum/emote/faketype

/datum/keybinding/emote/link_to_emote(datum/emote/faketype)
. = ..()
src.faketype = faketype

/datum/keybinding/emote/proc/update_to_ru()
full_name = capitalize(ru_emote_name(faketype::name || faketype::key))

0 comments on commit ac5ff6b

Please sign in to comment.