]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Localize and colorize grill temperature settings (#36236)
authorTayrtahn <tayrtahn@gmail.com>
Mon, 31 Mar 2025 21:56:06 +0000 (17:56 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 21:56:06 +0000 (14:56 -0700)
* Make it easier to localize grill heat level settings

* Change examine text color based on setting

* Trailing periods

* Use Fluent terms to reduce duplication

Resources/Locale/en-US/temperature/entity-heater.ftl

index a809d508e7c66461a8c7c9920ca2a9f507816d5f..391e84e51240ffc3de56c09178cb15721ee96062 100644 (file)
@@ -1,3 +1,18 @@
-entity-heater-examined = It is set to [color=gray]{$setting}[/color]
-entity-heater-switch-setting = Switch to {$setting}
-entity-heater-switched-setting = Switched to {$setting}
+-entity-heater-setting-name =
+    { $setting ->
+        [off] off
+        [low] low
+        [medium] medium
+        [high] high
+       *[other] unknown
+    }
+
+entity-heater-examined = It is set to { $setting ->
+    [off] [color=gray]{ -entity-heater-setting-name(setting: "off") }[/color]
+    [low] [color=yellow]{ -entity-heater-setting-name(setting: "low") }[/color]
+    [medium] [color=orange]{ -entity-heater-setting-name(setting: "medium") }[/color]
+    [high] [color=red]{ -entity-heater-setting-name(setting: "high") }[/color]
+   *[other] [color=purple]{ -entity-heater-setting-name(setting: "other") }[/color]
+}.
+entity-heater-switch-setting = Switch to { -entity-heater-setting-name(setting: $setting) }
+entity-heater-switched-setting = Switched to { -entity-heater-setting-name(setting: $setting) }.