]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Wires ui tooltip localization (#32284)
authorchavonadelal <156101927+chavonadelal@users.noreply.github.com>
Wed, 18 Sep 2024 19:10:53 +0000 (22:10 +0300)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 19:10:53 +0000 (21:10 +0200)
* Wires ui tooltip localization

* Corrections after review

Content.Client/Wires/UI/WiresMenu.cs
Resources/Locale/en-US/wires/components/wires-component.ftl

index eccc548297cd8c6e2252464d3b85353185e83c31..77fc3accceb34ae9f46a4007ace674e177818caa 100644 (file)
@@ -584,17 +584,10 @@ namespace Content.Client.Wires.UI
 
         private sealed class HelpPopup : Popup
         {
-            private const string Text = "Click on the gold contacts with a multitool in hand to pulse their wire.\n" +
-                                        "Click on the wires with a pair of wirecutters in hand to cut/mend them.\n\n" +
-                                        "The lights at the top show the state of the machine, " +
-                                        "messing with wires will probably do stuff to them.\n" +
-                                        "Wire layouts are different each round, " +
-                                        "but consistent between machines of the same type.";
-
             public HelpPopup()
             {
                 var label = new RichTextLabel();
-                label.SetMessage(Text);
+                label.SetMessage(Loc.GetString("wires-menu-help-popup"));
                 AddChild(new PanelContainer
                 {
                     StyleClasses = {ExamineSystem.StyleClassEntityTooltip},
index be27c270bb4d587198225d80cb89c84f863c56be..e98e5c21cab2864a94f237b05e9c742c4689ac62 100644 (file)
@@ -10,3 +10,9 @@ wires-component-ui-on-receive-message-cannot-mend-uncut-wire = You can't mend a
 
 wires-menu-name-label = Wires
 wires-menu-dead-beef-text = DEAD-BEEF
+wires-menu-help-popup =
+    Click on the gold contacts with a multitool in hand to pulse their wire.
+    Click on the wires with a pair of wirecutters in hand to cut/mend them.
+
+    The lights at the top show the state of the machine, messing with wires will probably do stuff to them.
+    Wire layouts are different each round, but consistent between machines of the same type.