fixed missing localization strings for voice triggers (#12774)

This commit is contained in:
Nemanja
2022-11-27 03:01:17 -05:00
committed by GitHub
parent 26a794f4aa
commit a93ee34a44
2 changed files with 6 additions and 8 deletions

View File

@@ -66,7 +66,6 @@ namespace Content.Server.Explosion.EntitySystems
if (string.IsNullOrWhiteSpace(component.KeyPhrase)) if (string.IsNullOrWhiteSpace(component.KeyPhrase))
return; return;
args.Verbs.Add(new AlternativeVerb() args.Verbs.Add(new AlternativeVerb()
{ {
Text = Loc.GetString("verb-trigger-voice-clear"), Text = Loc.GetString("verb-trigger-voice-clear"),
@@ -112,13 +111,11 @@ namespace Content.Server.Explosion.EntitySystems
private void OnVoiceExamine(EntityUid uid, TriggerOnVoiceComponent component, ExaminedEvent args) private void OnVoiceExamine(EntityUid uid, TriggerOnVoiceComponent component, ExaminedEvent args)
{ {
args.PushText(Loc.GetString("examine-trigger-voice"));
if (args.IsInDetailsRange) if (args.IsInDetailsRange)
{ {
if (component.KeyPhrase == null)
args.PushText(string.IsNullOrWhiteSpace(component.KeyPhrase) args.PushText(string.IsNullOrWhiteSpace(component.KeyPhrase)
? Loc.GetString("examine-trigger-voice-blank") ? Loc.GetString("trigger-voice-uninitialized")
: Loc.GetString("examine-trigger-voice-keyphrase", ("keyphrase", component.KeyPhrase))); : Loc.GetString("examine-trigger-voice", ("keyphrase", component.KeyPhrase)));
} }
} }
} }

View File

@@ -1,7 +1,8 @@
examine-trigger-voice = The display reads "{$keyphrase}" examine-trigger-voice = The display reads: "{$keyphrase}"
trigger-voice-uninitialized = Uninitialized... trigger-voice-uninitialized = The display reads: Uninitialized...
verb-trigger-voice-record = Record verb-trigger-voice-record = Record
verb-trigger-voice-clear = Clear recording
popup-trigger-voice-start-recording = Started recording popup-trigger-voice-start-recording = Started recording
popup-trigger-voice-stop-recording = Stopped recording popup-trigger-voice-stop-recording = Stopped recording