From 1b73e3586c0735d56340db7a708d08b80d9a294c Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Tue, 31 Aug 2021 22:24:33 -0400 Subject: [PATCH] translation application --- .../surgery/surgeryPassageFaceAndHair.js | 8 ++++---- src/npc/descriptions/butt/butt.js | 14 +++++++------- src/npc/descriptions/ears.js | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/facilities/surgery/surgeryPassageFaceAndHair.js b/src/facilities/surgery/surgeryPassageFaceAndHair.js index d2970af06e3..94a72735b55 100644 --- a/src/facilities/surgery/surgeryPassageFaceAndHair.js +++ b/src/facilities/surgery/surgeryPassageFaceAndHair.js @@ -398,15 +398,15 @@ App.UI.surgeryPassageHairAndFace = function(slave, refreshParent, cheat = false) r.push(`a pair of ears grafted to the top of ${his} head.`); } } else if (slave.earT === "cat") { - r.push(`a pair of cat ears adorning ${his} head.`); + r.push(`a pair of ${App.Utils.translate("cat")} ears adorning ${his} head.`); } else if (slave.earT === "dog") { - r.push(`a pair of dog ears adorning ${his} head.`); + r.push(`a pair of ${App.Utils.translate("dog")} ears adorning ${his} head.`); } else if (slave.earT === "fox") { - r.push(`a pair of fox ears adorning ${his} head.`); + r.push(`a pair of ${App.Utils.translate("fox")} ears adorning ${his} head.`); } else if (slave.earT === "tanuki") { r.push(`a pair of tanuki ears adorning ${his} head.`); } else if (slave.earT === "rabbit") { - r.push(`a pair of rabbit ears adorning ${his} head.`); + r.push(`a pair of ${App.Utils.translate("rabbit")} ears adorning ${his} head.`); } else { r.push(`You done goofed.`); r.push(`<span class="note">Report This</span>`); diff --git a/src/npc/descriptions/butt/butt.js b/src/npc/descriptions/butt/butt.js index fe81eb79756..837a26cb1e7 100644 --- a/src/npc/descriptions/butt/butt.js +++ b/src/npc/descriptions/butt/butt.js @@ -1271,23 +1271,23 @@ App.Desc.butt = function(slave, {market, eventDescription} = {}) { } if (slave.tailShape === "cat") { - r.push(`${He} has a long, slender, ${slave.tailColor} cat tail which tends to sway side to side when ${he} is focused on a task.`); + r.push(`${He} has a long, slender, ${slave.tailColor} ${App.Utils.translate("cat")} tail which tends to sway side to side when ${he} is focused on a task.`); } else if (slave.tailShape === "dog") { - r.push(`${He} has a bushy, ${slave.tailColor} dog tail which tends to wag energetically when ${he} gets exited.`); + r.push(`${He} has a bushy, ${slave.tailColor} ${App.Utils.translate("dog")} tail which tends to wag energetically when ${he} gets exited.`); } else if (slave.tailShape === "fox") { - r.push(`${He} has a soft, fluffy, ${slave.tailColor} fox tail.`); + r.push(`${He} has a soft, fluffy, ${slave.tailColor} ${App.Utils.translate("fox")} tail.`); } else if (slave.tailShape === "kitsune") { r.push(`${He} has three incredibly soft, fluffy, ${slave.tailColor} fox tails; they feel heavenly to the touch.`); } else if (slave.tailShape === "tanuki") { r.push(`${He} has a long, fluffy, ${slave.tailColor} tanuki tail with a dark stripe running down the middle.`); } else if (slave.tailShape === "cow") { - r.push(`${He} has a long, ${slave.tailColor} cow tail; it has a small tuft of hair at the end and tends to swat at things absentmindedly.`); + r.push(`${He} has a long, ${slave.tailColor} ${App.Utils.translate("cow")} tail; it has a small tuft of hair at the end and tends to swat at things absentmindedly.`); } else if (slave.tailShape === "rabbit") { - r.push(`${He} has a short and fluffy ${slave.tailColor} rabbit tail.`); + r.push(`${He} has a short and fluffy ${slave.tailColor} ${App.Utils.translate("rabbit")} tail.`); } else if (slave.tailShape === "squirrel") { - r.push(`${He} has a big and bushy ${slave.tailColor} squirrel tail.`); + r.push(`${He} has a big and bushy ${slave.tailColor} ${App.Utils.translate("squirrel")} tail.`); } else if (slave.tailShape === "horse") { - r.push(`${He} has a long horse tail consisting of consisting of ${slave.tailColor} hair.`); + r.push(`${He} has a long ${App.Utils.translate("horse")} tail consisting of consisting of ${slave.tailColor} hair.`); } else if (slave.tail === "combat") { r.push(`${He} has a very long ${slave.tailColor} metallic tail that can lash out, constrict, and deploy razor sharp spikes on command.`); } else if (slave.tail === "sex") { diff --git a/src/npc/descriptions/ears.js b/src/npc/descriptions/ears.js index 06ab4f4c233..6a0cbb48b44 100644 --- a/src/npc/descriptions/ears.js +++ b/src/npc/descriptions/ears.js @@ -43,7 +43,7 @@ App.Desc.ears = function(slave) { } if (slave.earT === "cat") { - r.push(`${He} has cute, ${slave.earTColor} cat ears on ${his} head; they`); + r.push(`${He} has cute, ${slave.earTColor} ${App.Utils.translate("cat")} ears on ${his} head; they`); if (slave.earImplant === 1) { r.push(`perk up at`); if (slave.devotion > 20) { @@ -54,7 +54,7 @@ App.Desc.ears = function(slave) { } r.push(`${either(`tend to droop when ${he} is relaxed or sad`, `twitch at the slightest touch`)}.`); } else if (slave.earT === "dog") { - r.push(`${He} has cute, ${slave.earTColor} dog ears on ${his} head; they`); + r.push(`${He} has cute, ${slave.earTColor} ${App.Utils.translate("dog")} ears on ${his} head; they`); if (slave.earImplant === 1) { r.push(`perk up at`); if (slave.devotion > 50) { @@ -65,7 +65,7 @@ App.Desc.ears = function(slave) { } r.push(`${either(`tend to droop when ${he} is relaxed or sad`, `twitch at the slightest touch`)}.`); } else if (slave.earT === "fox") { - r.push(`${He} has elegant, ${slave.earTColor} fox ears on ${his} head; they`); + r.push(`${He} has elegant, ${slave.earTColor} ${App.Utils.translate("fox")} ears on ${his} head; they`); if (slave.earImplant === 1) { r.push(`perk up at`); if (slave.devotion > 50) { @@ -87,7 +87,7 @@ App.Desc.ears = function(slave) { } r.push(`${either(`tend to droop when ${he} is relaxed or sad`, `twitch at the slightest touch`)}.`); } else if (slave.earT === "rabbit") { - r.push(`${He} has long, ${slave.earTColor}, fluffy rabbit ears on ${his} head; they`); + r.push(`${He} has long, ${slave.earTColor}, fluffy ${App.Utils.translate("rabbit")} ears on ${his} head; they`); if (slave.earImplant === 1) { r.push(`perk up at`); if (slave.devotion > 50) { -- GitLab