Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate emotes in prefs #675

Merged
merged 1 commit into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))
Loading