Improve translation support (part 1)

This commit is contained in:
LoafyLemon 2024-04-28 18:39:12 +01:00
parent 32f7971c24
commit 2b409db496
19 changed files with 123 additions and 122 deletions

View File

@ -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") define g16 = Character(None, show_side_image=Image("characters/genie/mage16.webp", xpos=20), show_icon="genie")
# Students # 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 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 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 ger = Character(_("George"), show_side_image=Image("characters/misc/weasley_twins/george_01.webp", xalign=1.0), show_icon="george")
# Teachers # Teachers
define spo = Character("Professor Sprout") define spo = Character(_("Professor Sprout"))
# Side characters # Side characters
define hat = Character("Sorting Hat", show_side_image=Image("characters/misc/hat.webp", xalign=1.0), show_icon="hat") 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 helf = Character(_("House-Elf"), show_side_image=Image("characters/misc/elf.webp", xalign=0.95))
define malf = Character("Malfoy") define malf = Character(_("Malfoy"))
define cra = Character("Crabbe") define cra = Character(_("Crabbe"))
define goy = Character("Goyle") define goy = Character(_("Goyle"))
define maf = Character("Madam Mafkin", show_side_image=Image("characters/misc/mafkin.webp", xalign=1.0)) define maf = Character(_("Madam Mafkin"), show_side_image=Image("characters/misc/mafkin.webp", xalign=1.0))
define myr = Character("Moaning Myrtle") define myr = Character(_("Moaning Myrtle"))
define faw = Character("Fawkes", show_icon="fawkes") define faw = Character(_("Fawkes"), show_icon="fawkes")
define abe = Character("Aberforth") define abe = Character(_("Aberforth"))
# Non-important characters # Non-important characters
define fem = Character("Female Student") define fem = Character(_("Female Student"))
define femv = Character("Female Voice") define femv = Character(_("Female Voice"))
define mal = Character("Male Student") define mal = Character(_("Male Student"))
define mal2 = Character("Another Male Student") define mal2 = Character(_("Another Male Student"))
define sly1 = Character("Slytherin student") define sly1 = Character(_("Slytherin student"))
define sly2 = Character("Another Slytherin student") define sly2 = Character(_("Another Slytherin student"))
define qcr = Character("Quidditch Crowd") define qcr = Character(_("Quidditch Crowd"))
# Special # Special
define nar = Character("", what_prefix=">", show_icon="narrator", callback=narrator_fade) 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 narrator = nar # Note: Without this definition, anonymous narrator style will be overridden by Renpy.
define anon = Character("???") define anon = Character(_("???"))
# Dumbledore # Dumbledore
define dum1 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_1.webp"), show_icon="dumbledore", dynamic=True) define dum1 = Character("name_dumbledore_genie", show_side_image=Image("characters/misc/dumbledore/dum_1.webp"), show_icon="dumbledore", dynamic=True)

View File

@ -1,9 +1,9 @@
label update_astoria: label update_astoria:
$ name_susan_astoria = renpy.random.choice(["Suzy","Cow","Cow Tits","Milk Bag","Slut","Whore","Piggy","Pig","Bessie","Moo Moo"]) $ 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_tonks_astoria = renpy.random.choice([_("Hag"),_("Old Hag"),_("Punk"),_("Dyke"),_("Lesbo")])
$ name_astoria_tonks = renpy.random.choice(["Cutie","Kitty","Princess","Cupcake","Honey"]) $ name_astoria_tonks = renpy.random.choice([_("Cutie"),_("Kitty"),_("Princess"),_("Cupcake"),_("Honey")])
# Chibi Update # Chibi Update
$ astoria_chibi.update() $ astoria_chibi.update()

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,8 @@ default states.ast.ev.imperio_with_susan.completed_once = False
# Names # Names
default name_astoria_genie = "Astoria" default name_astoria_genie = _("Astoria")
default name_genie_astoria = "Sir" default name_genie_astoria = _("Sir")
default name_susan_astoria = "Cow" default name_susan_astoria = _("Cow")
default name_tonks_astoria = "Old Hag" default name_tonks_astoria = _("Old Hag")

View File

@ -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 "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") 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") 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") 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 "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") 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") cho "(...)" ("annoyed", "base", "base", "mid")
gen "And I believe I've just found my very own golden snatch!" ("base", xpos="far_left", ypos="head") gen "And I believe I've just found my very own golden snatch!" ("base", xpos="far_left", ypos="head")

View File

@ -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") gen "Nice, I still got her panties!" ("grin", xpos="far_left", ypos="head")
# Panties acquired message! # 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.\"": "\"Not even close.\"":
$ states.cho.mood += 15 $ states.cho.mood += 15
@ -395,7 +395,7 @@ label cc_pf_strip_T2_E3_hermione_choices:
call bld call bld
gen "Nice, I still got her panties!" ("grin", xpos="far_left", ypos="head") 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 $ states.cho.ev.panty_thief.acquired = True
# Reset Hermione clothing. # Reset Hermione clothing.

View File

@ -1173,7 +1173,7 @@ label .succubus_E2:
# Unlock outfit message. Should only appear once. # Unlock outfit message. Should only appear once.
if not ton_outfit_succubus.unlocked: 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") 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") ton @ hair horny "Maybe I could dress as a Succubus for Halloween. I'm sure the boys would love it..." ("base", "narrow", "base", "mid")

View File

@ -19,7 +19,7 @@ label cho_panties_response_T2:
call cho_walk("desk", "base") call cho_walk("desk", "base")
pause .8 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" play sound "sounds/cloth_sound3.ogg"
pause .4 pause .4
@ -115,7 +115,7 @@ label cho_panties_response_T3:
call cho_walk("desk", "base") call cho_walk("desk", "base")
pause .8 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) cho @ cheeks blush "(...)" ("upset", "base", "base", "down", xpos="mid", ypos="base", trans=blackfade)
gen "Something wrong?" ("base", xpos="far_left", ypos="head") gen "Something wrong?" ("base", xpos="far_left", ypos="head")

View File

@ -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) 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 = [ define cho_favors = [
("cho_eventqueue_talk_to_me", "Talk to me!"), ("cho_eventqueue_talk_to_me", _("Talk to me!")),
("cho_eventqueue_inspect_her_body", "Let me inspect you!"), ("cho_eventqueue_inspect_her_body", _("Let me inspect you!")),
("cho_eventqueue_suck_it", "Suck it!"), ("cho_eventqueue_suck_it", _("Suck it!")),
] ]

View File

@ -191,5 +191,5 @@ label cho_favor_menu:
jump cho_requests jump cho_requests
label not_available: 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 return

File diff suppressed because it is too large Load Diff

View File

@ -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_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_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.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.position = "" # Valid choices: "front", "above", "close"
default states.cho.ev.quidditch.lock_training = False default states.cho.ev.quidditch.lock_training = False
default states.cho.ev.quidditch.lock_practice = True default states.cho.ev.quidditch.lock_practice = True
@ -109,6 +109,6 @@ default states.cho.ev.manipulate_girls.t3_e4_complete = False
# Names # Names
default name_genie_cho = "Professor" default name_genie_cho = _("Professor")
default name_cho_genie = "Cho" default name_cho_genie = _("Cho")
default name_cho_tonks = "Sweetie" default name_cho_tonks = _("Sweetie")

View File

@ -1,5 +1,5 @@
define character.genie_say = Character("Genie", show_icon="genie") define character.genie_say = Character(_("Genie"), show_icon="genie")
init python: init python:
def gen(what, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs): def gen(what, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):

View File

@ -27,7 +27,7 @@ default states.gen.ev.tonks.metamorphmagi_aware = False # Genie knows about Tonk
# Statistics # 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_hermione = 0
default states.gen.stats.masturbated_to_luna = 0 default states.gen.stats.masturbated_to_luna = 0
default states.gen.stats.masturbated_to_cho = 0 default states.gen.stats.masturbated_to_cho = 0
@ -35,4 +35,4 @@ default states.gen.stats.hangouts_with_snape = 0
# Names # Names
default name_dumbledore_genie = "Albus Dumbledore" default name_dumbledore_genie = _("Albus Dumbledore")

View File

@ -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"]) 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 = [ define hermione_jobs = [
("her_eventqueue_jobs_maid", "Work as a maid!"), ("her_eventqueue_jobs_maid", _("Work as a maid!")),
("her_eventqueue_jobs_promoter", "Work as a promoter!"), ("her_eventqueue_jobs_promoter", _("Work as a promoter!")),
("her_eventqueue_panty_thief", "Ditch the panties!"), ("her_eventqueue_panty_thief", _("Ditch the panties!")),
] ]

View File

@ -230,7 +230,7 @@ label hg_pr_panty_thief_e1:
call her_walk(action="leave") call her_walk(action="leave")
$ states.her.ev.panty_thief.acquired = True $ 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 jump end_hermione_event
@ -238,7 +238,7 @@ label hg_pr_panty_thief_e1_reactions:
# Hermione responds the cum on her panties # Hermione responds the cum on her panties
$ states.her.ev.panty_thief.acquired = False $ 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: if states.her.tier == 3:
her "*Hmm*....?" ("annoyed", "narrow", "worried", "down") her "*Hmm*....?" ("annoyed", "narrow", "worried", "down")

View File

@ -101,7 +101,7 @@ label her_promoter_job_return:
her @ cheeks blush "Thanks!" ("open","happy") her @ cheeks blush "Thanks!" ("open","happy")
her "Here's your payment." ("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 $ game.gold += 20
gen "Well done [name_hermione_genie], fifteen points to Gryffindor." ("base", xpos="far_left", ypos="head") gen "Well done [name_hermione_genie], fifteen points to Gryffindor." ("base", xpos="far_left", ypos="head")
$ gryffindor += 15 $ gryffindor += 15
@ -130,7 +130,7 @@ label her_promoter_job_return:
gen "How noble of you..." ("base", xpos="far_left", ypos="head") gen "How noble of you..." ("base", xpos="far_left", ypos="head")
her "Here's your payment." ("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 $ game.gold += 20
gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head") gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head")
$ gryffindor += 20 $ gryffindor += 20
@ -171,7 +171,7 @@ label her_promoter_job_return:
her "Anyway..." ("base", "base", "base", "mid") her "Anyway..." ("base", "base", "base", "mid")
her "Here's your payment." ("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 $ game.gold += 20
gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head") gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head")
$ gryffindor += 20 $ gryffindor += 20
@ -208,7 +208,7 @@ label her_promoter_job_return:
her "glad you agree." ("base", "happy", "base", "mid_soft") her "glad you agree." ("base", "happy", "base", "mid_soft")
her "Here's your payment." ("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 $ game.gold += 20
gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head") gen "Well done [name_hermione_genie], twenty points to Gryffindor." ("base", xpos="far_left", ypos="head")
$ gryffindor += 20 $ gryffindor += 20
@ -239,7 +239,7 @@ label her_promoter_job_return:
her "Anyway..." ("open", "base", "base", "mid") her "Anyway..." ("open", "base", "base", "mid")
her "Here's your payment." ("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 $ game.gold += 20
gen "Well done [name_hermione_genie], twenty-five points to Gryffindor." ("base", xpos="far_left", ypos="head") gen "Well done [name_hermione_genie], twenty-five points to Gryffindor." ("base", xpos="far_left", ypos="head")
$ gryffindor += 25 $ gryffindor += 25

View File

@ -428,7 +428,7 @@ label hg_pr_flirt_teacher_T2_E2:
her "Thank you for understanding, [name_genie_hermione]." ("base", "happyCl", "base", "mid") her "Thank you for understanding, [name_genie_hermione]." ("base", "happyCl", "base", "mid")
$ hermione.wear("all") $ 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 jump end_hg_pr_flirt_teacher

View File

@ -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) 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 = [ define hermione_favors = [
("her_eventqueue_talk_to_me", "Talk to me!"), ("her_eventqueue_talk_to_me", _("Talk to me!")),
("her_eventqueue_admire_breasts", "Show me your tits!"), ("her_eventqueue_admire_breasts", _("Show me your tits!")),
("her_eventqueue_admire_panties", "Show me your panties!"), ("her_eventqueue_admire_panties", _("Show me your panties!")),
("her_eventqueue_grope", "Grope her!"), ("her_eventqueue_grope", _("Grope her!")),
("her_eventqueue_strip_for_me", "Strip for me!"), ("her_eventqueue_strip_for_me", _("Strip for me!")),
("her_eventqueue_handjob", "Give me a handy!"), ("her_eventqueue_handjob", _("Give me a handy!")),
("her_eventqueue_titjob", "Give me a tittyjob!"), ("her_eventqueue_titjob", _("Give me a tittyjob!")),
("her_eventqueue_blowjob", "Suck it!"), ("her_eventqueue_blowjob", _("Suck it!")),
("her_eventqueue_sex", "Let's have sex!"), ("her_eventqueue_sex", _("Let's have sex!")),
] ]