Add language to trace info (#8990)

* Update Administration.java

* im stoopid

* Update TraceDialog.java

* Update bundle.properties
This commit is contained in:
Darkness
2023-08-30 16:05:05 +03:00
committed by GitHub
parent 68141798d3
commit 4edf4cac25
2 changed files with 6 additions and 1 deletions

View File

@@ -259,6 +259,7 @@ trace = Trace Player
trace.playername = Player name: [accent]{0} trace.playername = Player name: [accent]{0}
trace.ip = IP: [accent]{0} trace.ip = IP: [accent]{0}
trace.id = ID: [accent]{0} trace.id = ID: [accent]{0}
trace.language = Language: [accent]{0}
trace.mobile = Mobile Client: [accent]{0} trace.mobile = Mobile Client: [accent]{0}
trace.modclient = Custom Client: [accent]{0} trace.modclient = Custom Client: [accent]{0}
trace.times.joined = Times Joined: [accent]{0} trace.times.joined = Times Joined: [accent]{0}

View File

@@ -28,6 +28,8 @@ public class TraceDialog extends BaseDialog{
var style = Styles.emptyi; var style = Styles.emptyi;
float s = 28f; float s = 28f;
var language = LanguageDialog.displayNames.get(player.locale, player.locale);
table.table(c -> { table.table(c -> {
c.left().defaults().left(); c.left().defaults().left();
c.button(Icon.copySmall, style, () -> copy(player.name)).size(s).padRight(4f); c.button(Icon.copySmall, style, () -> copy(player.name)).size(s).padRight(4f);
@@ -36,6 +38,8 @@ public class TraceDialog extends BaseDialog{
c.add(Core.bundle.format("trace.ip", info.ip)).row(); c.add(Core.bundle.format("trace.ip", info.ip)).row();
c.button(Icon.copySmall, style, () -> copy(info.uuid)).size(s).padRight(4f); c.button(Icon.copySmall, style, () -> copy(info.uuid)).size(s).padRight(4f);
c.add(Core.bundle.format("trace.id", info.uuid)).row(); c.add(Core.bundle.format("trace.id", info.uuid)).row();
c.button(Icon.copySmall, style, () -> copy(language)).size(s).padRight(4f);
c.add(Core.bundle.format("trace.language", language)).row();
}).row(); }).row();
table.add(Core.bundle.format("trace.modclient", info.modded)).row(); table.add(Core.bundle.format("trace.modclient", info.modded)).row();