From 0350d680b403ddc38d7d14831ea966ad4dee1d0a Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Sun, 28 Apr 2024 18:39:12 +0100 Subject: [PATCH] Improve translation support (part 1) (cherry picked from commit 2b409db496116c18e1d97541a7eeda66cd117377) --- game/scripts/characters.rpy | 42 +++++------ game/scripts/characters/astoria/common.rpy | 6 +- game/scripts/characters/astoria/summon.rpy | 38 +++++----- game/scripts/characters/astoria/vars.rpy | 9 ++- .../events/favors/inspect_her_body_tier2.rpy | 4 +- .../inspect_her_body_tier2_hermione.rpy | 4 +- .../favors/inspect_her_body_tier3_tonks.rpy | 2 +- .../scripts/characters/cho/events/panties.rpy | 4 +- game/scripts/characters/cho/favors.rpy | 6 +- game/scripts/characters/cho/summon.rpy | 2 +- game/scripts/characters/cho/talk.rpy | 74 +++++++++---------- game/scripts/characters/cho/vars.rpy | 8 +- game/scripts/characters/genie/common.rpy | 2 +- game/scripts/characters/genie/vars.rpy | 4 +- .../hermione/events/odd_jobs/init.rpy | 6 +- .../hermione/events/odd_jobs/panty_thief.rpy | 4 +- .../hermione/events/odd_jobs/promoter.rpy | 10 +-- .../events/requests/flirt_with_teachers.rpy | 2 +- game/scripts/characters/hermione/favors.rpy | 18 ++--- 19 files changed, 123 insertions(+), 122 deletions(-) diff --git a/game/scripts/characters.rpy b/game/scripts/characters.rpy index 3e0f1760..61c18f75 100644 --- a/game/scripts/characters.rpy +++ b/game/scripts/characters.rpy @@ -33,37 +33,37 @@ define g15 = Character(None, show_side_image=Image("characters/genie/mage15.webp define g16 = Character(None, show_side_image=Image("characters/genie/mage16.webp", xpos=20), show_icon="genie") # Students -define twi = Character("Fred and George", show_side_image=Image("characters/misc/weasley_twins/base_01.webp", xalign=1.0), show_icon="fred") -define fre = Character("Fred", show_side_image=Image("characters/misc/weasley_twins/fred_01.webp", xalign=1.0), show_icon="fred") -define ger = Character("George", show_side_image=Image("characters/misc/weasley_twins/george_01.webp", xalign=1.0), show_icon="george") +define twi = Character(_("Fred and George"), show_side_image=Image("characters/misc/weasley_twins/base_01.webp", xalign=1.0), show_icon="fred") +define fre = Character(_("Fred"), show_side_image=Image("characters/misc/weasley_twins/fred_01.webp", xalign=1.0), show_icon="fred") +define ger = Character(_("George"), show_side_image=Image("characters/misc/weasley_twins/george_01.webp", xalign=1.0), show_icon="george") # Teachers -define spo = Character("Professor Sprout") +define spo = Character(_("Professor Sprout")) # Side characters -define hat = Character("Sorting Hat", show_side_image=Image("characters/misc/hat.webp", xalign=1.0), show_icon="hat") -define helf = Character("House-Elf", show_side_image=Image("characters/misc/elf.webp", xalign=0.95)) -define malf = Character("Malfoy") -define cra = Character("Crabbe") -define goy = Character("Goyle") -define maf = Character("Madam Mafkin", show_side_image=Image("characters/misc/mafkin.webp", xalign=1.0)) -define myr = Character("Moaning Myrtle") -define faw = Character("Fawkes", show_icon="fawkes") -define abe = Character("Aberforth") +define hat = Character(_("Sorting Hat"), show_side_image=Image("characters/misc/hat.webp", xalign=1.0), show_icon="hat") +define helf = Character(_("House-Elf"), show_side_image=Image("characters/misc/elf.webp", xalign=0.95)) +define malf = Character(_("Malfoy")) +define cra = Character(_("Crabbe")) +define goy = Character(_("Goyle")) +define maf = Character(_("Madam Mafkin"), show_side_image=Image("characters/misc/mafkin.webp", xalign=1.0)) +define myr = Character(_("Moaning Myrtle")) +define faw = Character(_("Fawkes"), show_icon="fawkes") +define abe = Character(_("Aberforth")) # Non-important characters -define fem = Character("Female Student") -define femv = Character("Female Voice") -define mal = Character("Male Student") -define mal2 = Character("Another Male Student") -define sly1 = Character("Slytherin student") -define sly2 = Character("Another Slytherin student") -define qcr = Character("Quidditch Crowd") +define fem = Character(_("Female Student")) +define femv = Character(_("Female Voice")) +define mal = Character(_("Male Student")) +define mal2 = Character(_("Another Male Student")) +define sly1 = Character(_("Slytherin student")) +define sly2 = Character(_("Another Slytherin student")) +define qcr = Character(_("Quidditch Crowd")) # Special define nar = Character("", what_prefix=">", show_icon="narrator", callback=narrator_fade) define narrator = nar # Note: Without this definition, anonymous narrator style will be overridden by Renpy. -define anon = Character("???") +define anon = Character(_("???")) # Dumbledore define dum1 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_1.webp"), show_icon="dumbledore", dynamic=True) diff --git a/game/scripts/characters/astoria/common.rpy b/game/scripts/characters/astoria/common.rpy index 1a2191d3..083826ef 100644 --- a/game/scripts/characters/astoria/common.rpy +++ b/game/scripts/characters/astoria/common.rpy @@ -1,9 +1,9 @@ label update_astoria: - $ name_susan_astoria = renpy.random.choice(["Suzy","Cow","Cow Tits","Milk Bag","Slut","Whore","Piggy","Pig","Bessie","Moo Moo"]) - $ name_tonks_astoria = renpy.random.choice(["Hag","Old Hag","Punk","Dyke","Lesbo"]) - $ name_astoria_tonks = renpy.random.choice(["Cutie","Kitty","Princess","Cupcake","Honey"]) + $ name_susan_astoria = renpy.random.choice([_("Suzy"),_("Cow"),_("Cow Tits"),_("Milk Bag"),_("Slut"),_("Whore"),_("Piggy"),_("Pig"),_("Bessie"),_("Moo Moo")]) + $ name_tonks_astoria = renpy.random.choice([_("Hag"),_("Old Hag"),_("Punk"),_("Dyke"),_("Lesbo")]) + $ name_astoria_tonks = renpy.random.choice([_("Cutie"),_("Kitty"),_("Princess"),_("Cupcake"),_("Honey")]) # Chibi Update $ astoria_chibi.update() diff --git a/game/scripts/characters/astoria/summon.rpy b/game/scripts/characters/astoria/summon.rpy index 791e87b9..e307969f 100644 --- a/game/scripts/characters/astoria/summon.rpy +++ b/game/scripts/characters/astoria/summon.rpy @@ -91,27 +91,27 @@ label astoria_talk: menu: "-Sir-": label .sir: - $ name_genie_astoria = "Sir" + $ name_genie_astoria = _("Sir") ast "Very well, [name_genie_astoria]." ("base", "base", "base", "mid") jump astoria_talk "-Dumbledore-": label .dumbledore: - $ name_genie_astoria = "Dumbledore" + $ name_genie_astoria = _("Dumbledore") ast "Of course, [name_genie_astoria]." ("base", "base", "base", "mid") jump astoria_talk "-Professor-": label .professor: - $ name_genie_astoria = "Professor" + $ name_genie_astoria = _("Professor") ast "Of course, [name_genie_astoria]." ("base", "base", "base", "mid") jump astoria_talk "-Old man-": label .old_man: - $ name_genie_astoria = "Old man" + $ name_genie_astoria = _("Old man") ast "Alrighty, [name_genie_astoria]." ("base", "base", "base", "mid") jump astoria_talk "-Genie-": label .genie: - $ name_genie_astoria = "Genie" + $ name_genie_astoria = _("Genie") ast "What?! You are a genie? For real?" ("grin", "base", "base", "mid") ast "That's so cool!" ("grin", "base", "base", "mid") gen "(Oh right. Nobody is supposed to know that.)" ("base", xpos="far_left", ypos="head") @@ -120,7 +120,7 @@ label astoria_talk: jump astoria_talk "-Lord Voldemort-": label .lord_voldemort: - $ name_genie_astoria = "Lord Voldemort" + $ name_genie_astoria = _("Lord Voldemort") ast "Voldemort? Like that mean, evil wizard?" ("clench", "narrow", "angry", "mid") ast "You aren't him, are you?" ("clench", "narrow", "angry", "mid") gen "No, just role-playing..." ("base", xpos="far_left", ypos="head") @@ -129,7 +129,7 @@ label astoria_talk: jump astoria_talk "-Daddy-": label .daddy: - $ name_genie_astoria = "Daddy" + $ name_genie_astoria = _("Daddy") ast "Daddy? Don't you think that's a little weird?" ("clench", "narrow", "angry", "mid") gen "Not at all!" ("base", xpos="far_left", ypos="head") ast "*Hmph*..." ("upset", "narrow", "angry", "mid") @@ -137,7 +137,7 @@ label astoria_talk: jump astoria_talk "-Master-" (style="disabled") if states.ast.level < 18: label .master_fail: - $ name_genie_astoria = "Dumby" # Tricked + $ name_genie_astoria = _("Master") # Tricked ast "*Ha-ha-ha-ha*-- you want me to call you master?" ("grin", "base", "base", "mid") ast "That's so dumb!" ("grin", "base", "base", "mid") ast "Oh I know!" ("grin", "base", "base", "mid") @@ -150,7 +150,7 @@ label astoria_talk: jump astoria_talk "-Master-" if states.ast.level >= 18: label .master: - $ name_genie_astoria = "Master" + $ name_genie_astoria = _("Master") ast "*Ha-ha-ha-ha*-- You want me to call you master?" ("grin", "base", "base", "mid") ast "That's so silly!" ("grin", "base", "base", "mid") gen "(...)" ("base", xpos="far_left", ypos="head") @@ -165,10 +165,10 @@ label astoria_talk: jump astoria_talk "-Custom Input-" if states.ast.level >= 18: - $ temp_name = renpy.input("(Please enter the name.)", name_genie_astoria, ALLOWED_CHARACTERS, length=14) + $ temp_name = renpy.input(_("(Please enter the name.)"), name_genie_astoria, ALLOWED_CHARACTERS, length=14) $ temp_name = temp_name.strip() - if temp_name.lower() in ("sir", "dumbledore", "professor", "old man", "genie", "lord voldemort", "daddy", "master"): + if temp_name.lower() in (_("sir"), _("dumbledore"), _("professor"), _("old man"), _("genie"), _("lord voldemort"), _("daddy"), _("master")): if temp_name.lower() == "master" and states.ast.level < 18: jump astoria_talk.master_fail $ renpy.jump("astoria_talk."+temp_name.lower().replace(" ", "_")) # Jump to local label @@ -186,28 +186,28 @@ label astoria_talk: menu: "-Miss Greengrass-": label .miss_greengrass: - $ name_astoria_genie = "Miss Greengrass" + $ name_astoria_genie = _("Miss Greengrass") ast "Sure, [name_genie_astoria]." ("grin", "base", "base", "mid") jump astoria_talk "-Astoria-": label .Astoria: - $ name_astoria_genie = "Astoria" + $ name_astoria_genie = _("Astoria") ast "Finally getting rid of this formal bullshit? I approve!" ("grin", "base", "base", "mid") jump astoria_talk "-Girl-": label .girl: - $ name_astoria_genie = "Girl" + $ name_astoria_genie = _("Girl") ast "Okay, [name_genie_astoria]." ("base", "base", "base", "mid") jump astoria_talk "-Princess-": label .princess: - $ name_astoria_genie = "Princess" + $ name_astoria_genie = _("Princess") ast "I really do feel like a princess!" ("grin", "base", "base", "mid") ast "After all, I can do whatever I want!" ("upset", "narrow", "angry", "mid") jump astoria_talk "-Cutie-": label .cutie: - $ name_astoria_genie = "Cutie" + $ name_astoria_genie = _("Cutie") ast "Fine... If you really have to, [name_genie_astoria]." ("clench", "narrow", "angry", "mid") jump astoria_talk "-Slave-" (style="disabled") if states.ast.level < 18: @@ -219,7 +219,7 @@ label astoria_talk: jump astoria_talk "-Slave-" if states.ast.level >= 18: label .slave: - $ name_astoria_genie = "Slave" + $ name_astoria_genie = _("Slave") ast "I'm not your slave, [name_genie_astoria]!" ("upset", "narrow", "angry", "mid") gen "Of course you aren't! We are just playing a game, that's all..." ("base", xpos="far_left", ypos="head") ast "I like games!" ("grin", "base", "base", "mid") @@ -231,10 +231,10 @@ label astoria_talk: jump astoria_talk "-Custom Input-" if states.ast.level >= 18: - $ temp_name = renpy.input("(Please enter the name.)", name_astoria_genie, ALLOWED_CHARACTERS, length=14) + $ temp_name = renpy.input(_("(Please enter the name.)"), name_astoria_genie, ALLOWED_CHARACTERS, length=14) $ temp_name = temp_name.strip() - if temp_name.lower() in ("miss greengrass", "girl", "princess", "cutie", "slave"): + if temp_name.lower() in (_("miss greengrass"), _("girl"), _("princess"), _("cutie"), _("slave")): if temp_name.lower() == "slave" and states.ast.level < 18: jump astoria_talk.slave_fail $ renpy.jump("astoria_talk."+temp_name.lower().replace(" ", "_")) # Jump to local label diff --git a/game/scripts/characters/astoria/vars.rpy b/game/scripts/characters/astoria/vars.rpy index 8c079d9d..85d01768 100644 --- a/game/scripts/characters/astoria/vars.rpy +++ b/game/scripts/characters/astoria/vars.rpy @@ -37,7 +37,8 @@ default states.ast.ev.imperio_with_susan.completed_once = False # Names -default name_astoria_genie = "Astoria" -default name_genie_astoria = "Sir" -default name_susan_astoria = "Cow" -default name_tonks_astoria = "Old Hag" +default name_astoria_genie = _("Astoria") +default name_genie_astoria = _("Sir") +default name_susan_astoria = _("Cow") +default name_tonks_astoria = _("Old Hag") + diff --git a/game/scripts/characters/cho/events/favors/inspect_her_body_tier2.rpy b/game/scripts/characters/cho/events/favors/inspect_her_body_tier2.rpy index 2defd5de..b670605b 100644 --- a/game/scripts/characters/cho/events/favors/inspect_her_body_tier2.rpy +++ b/game/scripts/characters/cho/events/favors/inspect_her_body_tier2.rpy @@ -552,7 +552,7 @@ label cc_pf_strip_T2_intro_E2: gen "After all, they are two soft, meaty \"bludgers\"!" ("grin", xpos="far_left", ypos="head") gen "And I'm a \"beater\"!" ("grin", xpos="far_left", ypos="head") - $ states.gen.stats.quidditch_position = "beater" + $ states.gen.stats.quidditch_position = _("beater") cho "You are childish.{w} That's what you are..." ("soft", "narrow", "angry", "mid") gen "You're the one playing games." ("base", xpos="far_left", ypos="head") @@ -610,7 +610,7 @@ label cc_pf_strip_T2_intro_E2: gen "Yes..." ("base", xpos="far_left", ypos="head") gen "You see, I think I've become quite a bit of a seeker myself!" ("grin", xpos="far_left", ypos="head") - $ states.gen.stats.quidditch_position = "seeker" + $ states.gen.stats.quidditch_position = _("seeker") cho "(...)" ("annoyed", "base", "base", "mid") gen "And I believe I've just found my very own golden snatch!" ("base", xpos="far_left", ypos="head") diff --git a/game/scripts/characters/cho/events/favors/inspect_her_body_tier2_hermione.rpy b/game/scripts/characters/cho/events/favors/inspect_her_body_tier2_hermione.rpy index 05996504..bc1610dd 100644 --- a/game/scripts/characters/cho/events/favors/inspect_her_body_tier2_hermione.rpy +++ b/game/scripts/characters/cho/events/favors/inspect_her_body_tier2_hermione.rpy @@ -150,7 +150,7 @@ label cc_pf_strip_T2_E3_hermione_choices: gen "Nice, I still got her panties!" ("grin", xpos="far_left", ypos="head") # Panties acquired message! - call give_reward("You have acquired Cho's panties!", "interface/icons/panties.webp") + call give_reward(_("You have acquired Cho's panties!"), "interface/icons/panties.webp") "\"Not even close.\"": $ states.cho.mood += 15 @@ -395,7 +395,7 @@ label cc_pf_strip_T2_E3_hermione_choices: call bld gen "Nice, I still got her panties!" ("grin", xpos="far_left", ypos="head") - call give_reward("You have acquired Cho's panties!", "interface/icons/panties.webp") + call give_reward(_("You have acquired Cho's panties!"), "interface/icons/panties.webp") $ states.cho.ev.panty_thief.acquired = True # Reset Hermione clothing. diff --git a/game/scripts/characters/cho/events/favors/inspect_her_body_tier3_tonks.rpy b/game/scripts/characters/cho/events/favors/inspect_her_body_tier3_tonks.rpy index b3b6a0a7..27816c71 100644 --- a/game/scripts/characters/cho/events/favors/inspect_her_body_tier3_tonks.rpy +++ b/game/scripts/characters/cho/events/favors/inspect_her_body_tier3_tonks.rpy @@ -1173,7 +1173,7 @@ label .succubus_E2: # Unlock outfit message. Should only appear once. if not ton_outfit_succubus.unlocked: - call unlock_clothing(text="New clothing items for Tonks have been unlocked!", item=ton_outfit_succubus) + call unlock_clothing(text=_("New clothing items for Tonks have been unlocked!"), item=ton_outfit_succubus) cho @ cheeks heavy_blush "" ("horny", "narrow", "worried", "L") ton @ hair horny "Maybe I could dress as a Succubus for Halloween. I'm sure the boys would love it..." ("base", "narrow", "base", "mid") diff --git a/game/scripts/characters/cho/events/panties.rpy b/game/scripts/characters/cho/events/panties.rpy index 436c1096..2d29a7e5 100644 --- a/game/scripts/characters/cho/events/panties.rpy +++ b/game/scripts/characters/cho/events/panties.rpy @@ -19,7 +19,7 @@ label cho_panties_response_T2: call cho_walk("desk", "base") pause .8 - call give_reward("You hand over the panties...", "interface/icons/panties_cum.webp") + call give_reward(_("You hand over the panties..."), "interface/icons/panties_cum.webp") play sound "sounds/cloth_sound3.ogg" pause .4 @@ -115,7 +115,7 @@ label cho_panties_response_T3: call cho_walk("desk", "base") pause .8 - call give_reward("You hand over the panties...", "interface/icons/panties_cum.webp") + call give_reward(_("You hand over the panties..."), "interface/icons/panties_cum.webp") cho @ cheeks blush "(...)" ("upset", "base", "base", "down", xpos="mid", ypos="base", trans=blackfade) gen "Something wrong?" ("base", xpos="far_left", ypos="head") diff --git a/game/scripts/characters/cho/favors.rpy b/game/scripts/characters/cho/favors.rpy index a0e28a62..96700e8e 100644 --- a/game/scripts/characters/cho/favors.rpy +++ b/game/scripts/characters/cho/favors.rpy @@ -25,7 +25,7 @@ default cho_ev_suck_it_t3_e2 = Event(id="cho_ev_suck_it_t3_e2", label="cc_pf_blo default cho_ev_suck_it_t3_e3 = Event(id="cho_ev_suck_it_t3_e3", label="cc_pf_blowjob_T3_E3", req="states.cho.tier >= 3", queue="cho_eventqueue_suck_it", autoenqueue=True, autodequeue=False) define cho_favors = [ - ("cho_eventqueue_talk_to_me", "Talk to me!"), - ("cho_eventqueue_inspect_her_body", "Let me inspect you!"), - ("cho_eventqueue_suck_it", "Suck it!"), + ("cho_eventqueue_talk_to_me", _("Talk to me!")), + ("cho_eventqueue_inspect_her_body", _("Let me inspect you!")), + ("cho_eventqueue_suck_it", _("Suck it!")), ] diff --git a/game/scripts/characters/cho/summon.rpy b/game/scripts/characters/cho/summon.rpy index 392da71d..1ac11c5e 100644 --- a/game/scripts/characters/cho/summon.rpy +++ b/game/scripts/characters/cho/summon.rpy @@ -191,5 +191,5 @@ label cho_favor_menu: jump cho_requests label not_available: - $ TBA_message("This feature is currently not available as of version %s." % config.version) + $ TBA_message(_("This feature is currently not available as of version %s.") % config.version) return diff --git a/game/scripts/characters/cho/talk.rpy b/game/scripts/characters/cho/talk.rpy index 37cbe6c4..3990283e 100644 --- a/game/scripts/characters/cho/talk.rpy +++ b/game/scripts/characters/cho/talk.rpy @@ -17,23 +17,23 @@ label cho_talk: "\"-Address me only as-\"" if states.cho.ev.quidditch.e1_complete: menu: "\"-Sir-\"": - $ name_genie_cho = "Sir" + $ name_genie_cho = _("Sir") "\"-Dumbledore-\"": - $ name_genie_cho = "Dumbledore" + $ name_genie_cho = _("Dumbledore") "\"-Professor-\"": - $ name_genie_cho = "Professor" + $ name_genie_cho = _("Professor") "\"-Coach-\"": - $ name_genie_cho = "Coach" + $ name_genie_cho = _("Coach") "\"-Sergeant-\"": - $ name_genie_cho = "Sergeant" + $ name_genie_cho = _("Sergeant") "\"-Captain-\"": - $ name_genie_cho = "Captain" + $ name_genie_cho = _("Captain") "\"-Old Man-\"": - $ name_genie_cho = "Old Man" + $ name_genie_cho = _("Old Man") "\"-Daddy-\"" if states.cho.tier >= 4: - $ name_genie_cho = "Daddy" + $ name_genie_cho = _("Daddy") "-Custom Input-": - $ name_genie_cho = renpy.input("(Please enter the name.)", name_genie_cho, ALLOWED_CHARACTERS, length=14).strip() or "Professor" + $ name_genie_cho = renpy.input(_("(Please enter the name.)"), name_genie_cho, ALLOWED_CHARACTERS, length=14).strip() or "Professor" "\"-Never mind-\"": jump cho_talk @@ -42,25 +42,25 @@ label cho_talk: "\"-From now on, I will refer to you as-\"" if states.cho.ev.quidditch.e1_complete: menu: "\"-Miss Chang-\"": - $ name_cho_genie = "Miss Chang" + $ name_cho_genie = _("Miss Chang") "\"-Cho-\"": - $ name_cho_genie = "Cho" + $ name_cho_genie = _("Cho") "\"-Cadet-\"": - $ name_cho_genie = "Cadet" + $ name_cho_genie = _("Cadet") "\"-Pilot-\"": - $ name_cho_genie = "Pilot" + $ name_cho_genie = _("Pilot") "\"-Maggot-\"": - $ name_cho_genie = "Maggot" + $ name_cho_genie = _("Maggot") "\"-Tomboy-\"": - $ name_cho_genie = "Tomboy" + $ name_cho_genie = _("Tomboy") "\"-Boy-\"": - $ name_cho_genie = "Boy" + $ name_cho_genie = _("Boy") "\"-Champ-\"" if states.cho.tier >= 4: - $ name_cho_genie = "Champ" + $ name_cho_genie = _("Champ") "\"-Slut-\"" if states.cho.tier >= 4: - $ name_cho_genie = "Slut" + $ name_cho_genie = _("Slut") "-Custom Input-": - $ name_cho_genie = renpy.input("(Please enter the name.)", name_cho_genie, ALLOWED_CHARACTERS, length=14).strip() or "Miss Chang" + $ name_cho_genie = renpy.input(_("(Please enter the name.)"), name_cho_genie, ALLOWED_CHARACTERS, length=14).strip() or "Miss Chang" "\"-Never mind-\"": jump cho_talk @@ -70,24 +70,24 @@ label cho_talk: jump cho_requests label genie_cho_change: - if name_genie_cho == "Sir": + if name_genie_cho == _("Sir"): cho "Certainly, sir." ("base", "base", "base", "mid") - elif name_genie_cho == "Dumbledore": + elif name_genie_cho == _("Dumbledore"): cho "Of course Dumbledore..." ("open", "base", "base", "mid") - elif name_genie_cho == "Professor": + elif name_genie_cho == _("Professor"): cho "Yes Professor..." ("open", "base", "base", "mid") - elif name_genie_cho == "Coach": + elif name_genie_cho == _("Coach"): cho "Yes Coach!" ("smile", "base", "base", "mid") - elif name_genie_cho == "Sergeant": + elif name_genie_cho == _("Sergeant"): gen "Is that clear?" ("base", xpos="far_left", ypos="head") cho "Yes Sergeant!" ("smile", "base", "base", "mid") - elif name_genie_cho == "Captain": + elif name_genie_cho == _("Captain"): cho "Yes Captain!" ("smile", "base", "base", "mid") - elif name_genie_cho == "Old Man": + elif name_genie_cho == _("Old Man"): cho "You want me to call you an old man?" ("soft", "base", "base", "mid") gen "Just \"Old man\" is good for now." ("base", xpos="far_left", ypos="head") cho "Okay then..." ("open", "base", "base", "R") - elif name_genie_cho == "Daddy": + elif name_genie_cho == _("Daddy"): cho @ cheeks blush "You want me to--" ("soft", "narrow", "base", "mid") gen "Call me daddy..." ("base", xpos="far_left", ypos="head") cho @ cheeks blush "..." ("base", "narrow", "base", "downR") @@ -97,19 +97,19 @@ label genie_cho_change: jump cho_talk label name_cho_genie: - if name_cho_genie == "Miss Chang": + if name_cho_genie == _("Miss Chang"): cho "Of course [name_genie_cho]." ("base", "base", "base", "mid") - elif name_cho_genie == "Cho": + elif name_cho_genie == _("Cho"): cho "Of course [name_genie_cho]." ("base", "base", "base", "mid") - elif name_cho_genie == "Cadet": + elif name_cho_genie == _("Cadet"): cho "Yes [name_genie_cho]!" ("smile", "base", "base", "mid") - elif name_cho_genie == "Pilot": + elif name_cho_genie == _("Pilot"): cho "Yes [name_genie_cho]!" ("base", "base", "base", "mid") - elif name_cho_genie == "Maggot": + elif name_cho_genie == _("Maggot"): cho "I--" ("angry", "narrow", "base", "mid") gen "..." ("base", xpos="far_left", ypos="head") cho "Yes [name_genie_cho]!" ("angry", "happyCl", "base", "mid") - elif name_cho_genie == "Tomboy": + elif name_cho_genie == _("Tomboy"): if states.cho.tier <= 3: cho "Tomboy?" ("soft", "base", "base", "mid") gen "Is that not accurate?" ("base", xpos="far_left", ypos="head") @@ -121,7 +121,7 @@ label name_cho_genie: gen "Except your personality..." ("base", xpos="far_left", ypos="head") cho @ cheeks blush "*Hmph*..." ("annoyed", "narrow", "base", "R") cho @ cheeks blush "Fine... I guess that's fair..." ("open", "narrow", "base", "R") - elif name_cho_genie == "Boy": + elif name_cho_genie == _("Boy"): if states.cho.tier <= 3: cho "You want to call me what?!" ("angry", "base", "base", "mid") gen "Boy!" ("base", xpos="far_left", ypos="head") @@ -141,16 +141,16 @@ label name_cho_genie: cho @ cheeks blush "But [name_genie_cho]... Won't that be weird?" ("soft", "base", "base", "mid") gen "..." ("base", xpos="far_left", ypos="head") cho @ cheeks blush "Alright then... If that's what you're into..." ("base", "base", "base", "R") - elif name_cho_genie == "Champ": + elif name_cho_genie == _("Champ"): cho "Champ?" ("open", "base", "raised", "mid") gen "Yep... Gotta give some credit where it's due." ("base", xpos="far_left", ypos="head") cho "Oh... Thank you [name_genie_cho]..." ("smile", "base", "base", "mid") - elif name_cho_genie == "Slut": + elif name_cho_genie == _("Slut"): cho @ cheeks heavy_blush "You want to call me..." ("soft", "narrow", "base", "down") gen "A slut!" ("base", xpos="far_left", ypos="head") cho @ cheeks heavy_blush "..." ("horny", "narrow", "base", "stare") #horny cho @ cheeks heavy_blush "*Ah*...{w=0.4} Yes, I suppose that's fine..." ("soft", "narrow", "base", "mid") - elif name_cho_genie == "Princess": #Custom choice + elif name_cho_genie == _("Princess"): #Custom choice if states.cho.tier <= 3: cho "Princess?!" ("angry", "base", "base", "mid") gen "Yes, is that a problem?" ("base", xpos="far_left", ypos="head") diff --git a/game/scripts/characters/cho/vars.rpy b/game/scripts/characters/cho/vars.rpy index eb319118..c3c1f372 100644 --- a/game/scripts/characters/cho/vars.rpy +++ b/game/scripts/characters/cho/vars.rpy @@ -74,7 +74,7 @@ default states.cho.ev.quidditch.slytherin_training = False # Finished Slytherin default states.cho.ev.quidditch.gryffindor_stage = "" # Dynamic string. Valid choices: 'start', 'ready', 'intro_done', 'completed', 'return'. default states.cho.ev.quidditch.gryffindor_failed = False # Found a cheerleader? (Requirements: Ask Luna) default states.cho.ev.quidditch.gryffindor_training = False # Finished Gryffindor practice match? -default states.cho.ev.quidditch.broom_name = "Purple Rocket" +default states.cho.ev.quidditch.broom_name = _("Purple Rocket") default states.cho.ev.quidditch.position = "" # Valid choices: "front", "above", "close" default states.cho.ev.quidditch.lock_training = False default states.cho.ev.quidditch.lock_practice = True @@ -109,6 +109,6 @@ default states.cho.ev.manipulate_girls.t3_e4_complete = False # Names -default name_genie_cho = "Professor" -default name_cho_genie = "Cho" -default name_cho_tonks = "Sweetie" +default name_genie_cho = _("Professor") +default name_cho_genie = _("Cho") +default name_cho_tonks = _("Sweetie") diff --git a/game/scripts/characters/genie/common.rpy b/game/scripts/characters/genie/common.rpy index 2591fc40..70a9b15a 100644 --- a/game/scripts/characters/genie/common.rpy +++ b/game/scripts/characters/genie/common.rpy @@ -1,5 +1,5 @@ -define character.genie_say = Character("Genie", show_icon="genie") +define character.genie_say = Character(_("Genie"), show_icon="genie") init python: def gen(what, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): diff --git a/game/scripts/characters/genie/vars.rpy b/game/scripts/characters/genie/vars.rpy index 615c39b7..2811933c 100644 --- a/game/scripts/characters/genie/vars.rpy +++ b/game/scripts/characters/genie/vars.rpy @@ -27,7 +27,7 @@ default states.gen.ev.tonks.metamorphmagi_aware = False # Genie knows about Tonk # Statistics -default states.gen.stats.quidditch_position = "Nobody" +default states.gen.stats.quidditch_position = _("Nobody") default states.gen.stats.masturbated_to_hermione = 0 default states.gen.stats.masturbated_to_luna = 0 default states.gen.stats.masturbated_to_cho = 0 @@ -35,4 +35,4 @@ default states.gen.stats.hangouts_with_snape = 0 # Names -default name_dumbledore_genie = "Albus Dumbledore" +default name_dumbledore_genie = _("Albus Dumbledore") diff --git a/game/scripts/characters/hermione/events/odd_jobs/init.rpy b/game/scripts/characters/hermione/events/odd_jobs/init.rpy index 2202c7b1..58eaf645 100644 --- a/game/scripts/characters/hermione/events/odd_jobs/init.rpy +++ b/game/scripts/characters/hermione/events/odd_jobs/init.rpy @@ -15,7 +15,7 @@ default her_ev_panty_thief_t3_e1 = Event(id="her_ev_panty_thief_t3_e1", label="h default her_ev_panty_thief_t3_e1_hub = Event(id="her_ev_panty_thief_t3_e1_hub", label="hg_pr_panty_thief_e1", req="states.her.tier >= 3", autoenqueue=True, autodequeue=False, queue="her_eventqueue_panty_thief", subevents=["her_ev_panty_thief_t3_e1"]) define hermione_jobs = [ - ("her_eventqueue_jobs_maid", "Work as a maid!"), - ("her_eventqueue_jobs_promoter", "Work as a promoter!"), - ("her_eventqueue_panty_thief", "Ditch the panties!"), + ("her_eventqueue_jobs_maid", _("Work as a maid!")), + ("her_eventqueue_jobs_promoter", _("Work as a promoter!")), + ("her_eventqueue_panty_thief", _("Ditch the panties!")), ] diff --git a/game/scripts/characters/hermione/events/odd_jobs/panty_thief.rpy b/game/scripts/characters/hermione/events/odd_jobs/panty_thief.rpy index 6caad79e..acab1a07 100644 --- a/game/scripts/characters/hermione/events/odd_jobs/panty_thief.rpy +++ b/game/scripts/characters/hermione/events/odd_jobs/panty_thief.rpy @@ -230,7 +230,7 @@ label hg_pr_panty_thief_e1: call her_walk(action="leave") $ states.her.ev.panty_thief.acquired = True - call give_reward("You have acquired Hermione's panties!", "interface/icons/panties.webp") + call give_reward(_("You have acquired Hermione's panties!"), "interface/icons/panties.webp") jump end_hermione_event @@ -238,7 +238,7 @@ label hg_pr_panty_thief_e1_reactions: # Hermione responds the cum on her panties $ states.her.ev.panty_thief.acquired = False - call give_reward("You hand over the panties...", "interface/icons/panties_cum.webp") + call give_reward(_("You hand over the panties..."), "interface/icons/panties_cum.webp") if states.her.tier == 3: her "*Hmm*....?" ("annoyed", "narrow", "worried", "down") diff --git a/game/scripts/characters/hermione/events/odd_jobs/promoter.rpy b/game/scripts/characters/hermione/events/odd_jobs/promoter.rpy index f1061f9b..c4c25654 100644 --- a/game/scripts/characters/hermione/events/odd_jobs/promoter.rpy +++ b/game/scripts/characters/hermione/events/odd_jobs/promoter.rpy @@ -101,7 +101,7 @@ label her_promoter_job_return: her @ cheeks blush "Thanks!" ("open","happy") her "Here's your payment." ("open", "base", "base", "mid") - call give_reward("You have received twenty gold", "interface/icons/gold.webp") + call give_reward(_("You have received twenty gold"), "interface/icons/gold.webp") $ game.gold += 20 gen "Well done [name_hermione_genie], fifteen points to Gryffindor." ("base", xpos="far_left", ypos="head") $ gryffindor += 15 @@ -130,7 +130,7 @@ label her_promoter_job_return: gen "How noble of you..." ("base", xpos="far_left", ypos="head") her "Here's your payment." ("open", "base", "base", "mid") - call give_reward("You have received twenty gold", "interface/icons/gold.webp") + call give_reward(_("You have received twenty gold"), "interface/icons/gold.webp") $ game.gold += 20 gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head") $ gryffindor += 20 @@ -171,7 +171,7 @@ label her_promoter_job_return: her "Anyway..." ("base", "base", "base", "mid") her "Here's your payment." ("open", "base", "base", "mid") - call give_reward("You have received twenty gold", "interface/icons/gold.webp") + call give_reward(_("You have received twenty gold"), "interface/icons/gold.webp") $ game.gold += 20 gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head") $ gryffindor += 20 @@ -208,7 +208,7 @@ label her_promoter_job_return: her "glad you agree." ("base", "happy", "base", "mid_soft") her "Here's your payment." ("open", "base", "base", "mid") - call give_reward("You have received twenty gold", "interface/icons/gold.webp") + call give_reward(_("You have received twenty gold"), "interface/icons/gold.webp") $ game.gold += 20 gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head") $ gryffindor += 20 @@ -239,7 +239,7 @@ label her_promoter_job_return: her "Anyway..." ("open", "base", "base", "mid") her "Here's your payment." ("open", "base", "base", "mid") - call give_reward("You have received twenty gold", "interface/icons/gold.webp") + call give_reward(_("You have received twenty gold"), "interface/icons/gold.webp") $ game.gold += 20 gen "Well done [name_hermione_genie], twenty-five points to Gryffindor." ("base", xpos="far_left", ypos="head") $ gryffindor += 25 diff --git a/game/scripts/characters/hermione/events/requests/flirt_with_teachers.rpy b/game/scripts/characters/hermione/events/requests/flirt_with_teachers.rpy index f4afee2c..57f22c37 100644 --- a/game/scripts/characters/hermione/events/requests/flirt_with_teachers.rpy +++ b/game/scripts/characters/hermione/events/requests/flirt_with_teachers.rpy @@ -428,7 +428,7 @@ label hg_pr_flirt_teacher_T2_E2: her "Thank you for understanding, [name_genie_hermione]." ("base", "happyCl", "base", "mid") $ hermione.wear("all") - call unlock_clothing(text="A new tattoo for Hermione has been unlocked!", item=her_tattoo_lockhart) + call unlock_clothing(text=_("A new tattoo for Hermione has been unlocked!"), item=her_tattoo_lockhart) jump end_hg_pr_flirt_teacher diff --git a/game/scripts/characters/hermione/favors.rpy b/game/scripts/characters/hermione/favors.rpy index 3f68cf37..68915f97 100644 --- a/game/scripts/characters/hermione/favors.rpy +++ b/game/scripts/characters/hermione/favors.rpy @@ -106,13 +106,13 @@ default her_ev_anal_t6_e2 = Event(id="her_ev_anal_t6_e2", label="hg_anal_sex_2_i default her_ev_anal_t6_e3 = Event(id="her_ev_anal_t6_e3", label="hg_anal_sex_3", priority=7, req="states.her.tier >= 6", queue="her_eventqueue_anal", autoenqueue=True, autodequeue=False) define hermione_favors = [ - ("her_eventqueue_talk_to_me", "Talk to me!"), - ("her_eventqueue_admire_breasts", "Show me your tits!"), - ("her_eventqueue_admire_panties", "Show me your panties!"), - ("her_eventqueue_grope", "Grope her!"), - ("her_eventqueue_strip_for_me", "Strip for me!"), - ("her_eventqueue_handjob", "Give me a handy!"), - ("her_eventqueue_titjob", "Give me a tittyjob!"), - ("her_eventqueue_blowjob", "Suck it!"), - ("her_eventqueue_sex", "Let's have sex!"), + ("her_eventqueue_talk_to_me", _("Talk to me!")), + ("her_eventqueue_admire_breasts", _("Show me your tits!")), + ("her_eventqueue_admire_panties", _("Show me your panties!")), + ("her_eventqueue_grope", _("Grope her!")), + ("her_eventqueue_strip_for_me", _("Strip for me!")), + ("her_eventqueue_handjob", _("Give me a handy!")), + ("her_eventqueue_titjob", _("Give me a tittyjob!")), + ("her_eventqueue_blowjob", _("Suck it!")), + ("her_eventqueue_sex", _("Let's have sex!")), ]