Compare commits

...

14 Commits

Author SHA1 Message Date
LoafyLemon 336b7905a8 Translation tools 2024-01-08 14:44:43 +00:00
LoafyLemon 98671e3459 Chinese Translation ver 1.45.1
Authored-by: @aler & friends
2023-12-17 18:23:29 +00:00
LoafyLemon aac7249e84 Merge branch 'dev' into chinese-tl 2023-12-17 17:56:34 +00:00
LoafyLemon 1b1bc53759 Bug fixes and improvements
* Fixed renpy.input not working with Chinese translation
* Improved language handling for preferences
2022-11-05 21:27:34 +00:00
LoafyLemon 8af7186c97 Bug fixes
* Fixed polyjuice Luna potion file encoding (UTF8)
* Fixed typos
2022-11-05 20:12:25 +00:00
aler 9660dc1ba6 Translation support - Part 1 Complete 2022-11-05 14:09:15 +08:00
LoafyLemon 4a1d831b82 Updated translation files 2022-10-31 20:36:36 +00:00
LoafyLemon 5c952fe7da Translation support - Part 1
* Added language switch option (WIP)
* Fixed translation generation cache cleanup
* Fixed python strings being untranslatable (partially)
2022-10-31 20:35:00 +00:00
LoafyLemon 24c27d40ce Updated translation files
* Updated translation files and merged them with the current translation
2022-10-26 23:03:39 +01:00
LoafyLemon fb3cc812a0 Merge branch 'dev' into chinese-tl 2022-10-26 22:58:57 +01:00
aler 2c8e17107b complete 2022-10-22 23:31:45 +08:00
aler 86134e19ae Complete 2022-10-22 19:47:09 +08:00
aler 992b0f77d5 complete 2022-10-22 14:42:27 +08:00
LoafyLemon 64476c1767 Initial commit 2022-10-21 18:32:45 +01:00
306 changed files with 356580 additions and 207 deletions

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:
def gen(what, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, **kwargs):

View File

@ -4,7 +4,7 @@ default _no_clothes = False
label potion_ass_make:
call give_reward("You have successfully created a new potion!", ass_potion_ITEM)
call give_reward(_("You have successfully created a new potion!"), ass_potion_ITEM)
gen "There we go." ("base", xpos="far_left", ypos="head")
play sound "sounds/sniff.ogg"

View File

@ -1,7 +1,7 @@
label potion_breasts_make:
call give_reward("You have successfully created a new potion!", breast_potion_ITEM)
call give_reward(_("You have successfully created a new potion!"), breast_potion_ITEM)
gen "There we go." ("base", xpos="far_left", ypos="head")
play sound "sounds/sniff.ogg"

View File

@ -1,7 +1,7 @@
label potion_cat_make:
call give_reward("You have successfully created a new potion!", cat_potion_ITEM)
call give_reward(_("You have successfully created a new potion!"), cat_potion_ITEM)
play sound "sounds/sniff.ogg"
gen "Yep..." ("base", xpos="far_left", ypos="head")

View File

@ -1,7 +1,7 @@
label potion_luna_make:
call give_reward("You have successfully created a new potion!", luna_potion_ITEM)
call give_reward(_("You have successfully created a new potion!"), luna_potion_ITEM)
play sound "sounds/sniff.ogg"
gen "It does have a distinctive smell of grass, among other things..." ("base", xpos="far_left", ypos="head")

View File

@ -965,7 +965,7 @@ label ll_pf_inspect_T2_E3_intro:
gen "(*Hmm*... What's this?)" ("base", xpos="far_left", ypos="head")
$ hair_luna_ITEM.owned = 1
call give_reward("You found a string of blonde hair!", gift=hair_luna_ITEM)
call give_reward(_("You found a string of blonde hair!"), gift=hair_luna_ITEM)
gen "(Looks like she's left me a parting gift.)" ("base", xpos="far_left", ypos="head")
if states.map.snape_office.intro_e2:

View File

@ -2,7 +2,7 @@ label update_snape:
$ states.sna.image.xzoom = 1
return
define character.snape_say = Character("Severus Snape", show_icon="snape")
define character.snape_say = Character(_("Severus Snape"), show_icon="snape")
init python:
def sna(what, face=None, xpos=None, ypos=None, pos=None, flip=None, trans=None, animation=False, wand=False, **kwargs):

View File

@ -1,2 +1,6 @@
define ALLOWED_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "
define LANGUAGE_TRANSCRIPTS = {
"english": "{font=gui/CreativeBlockRegular.ttf}English{/font}",
"chinese": "{font=tl/chinese/NotoSansSC-Bold.otf}汉语{/font}",
}

View File

@ -81,35 +81,35 @@ screen controls_help():
text _("Page Down or Mouse Wheel Down")
hbox:
label "Hide Interface"
label _("Hide Interface")
text _("H or Middle Mouse Button")
hbox:
label "Screenshot"
label _("Screenshot")
text _("Print Screen")
hbox:
label "Sleep"
label _("Sleep")
text _("s")
hbox:
label "Map"
label _("Map")
text _("m")
hbox:
label "Stats"
label _("Stats")
text _("c")
hbox:
label "Inventory"
label _("Inventory")
text _("i")
hbox:
label "Fap-Fap-Fap"
label _("Fap-Fap-Fap")
text _("f")
hbox:
label "Summon"
label _("Summon")
text _("d")
screen gamepad_help():

View File

@ -68,7 +68,7 @@ style light_confirm_frame is light_gui_frame:
screen skip_indicator():
zorder 100
text "{unicode}{size=66}▶▶{/size}{/unicode}\nSkipping":
text _("{unicode}{size=66}▶▶{/size}{/unicode}\nSkipping"):
at blink
style "skip_text"

View File

@ -106,8 +106,8 @@ screen mods():
else:
text "{color=#228B22}[compat]{/color}" align (1.0, 1.0) offset (-6, -3)
text "Author:\n{size=-4}[author]{/size}" size 14
text "Description:\n{size=-4}[desc]{/size}" size 14
text _("Author:\n{size=-4}[author]{/size}") size 14
text _("Description:\n{size=-4}[desc]{/size}") size 14
style mods_text is slot_button_text:
selected_color "#000"

View File

@ -138,10 +138,10 @@ screen brewing_menu(xx, yy):
pos (6, 384)
if current_filter == None:
textbutton "Show: All" action Return("filter")
textbutton _("Show: All") action Return("filter")
else:
textbutton "Show: [current_filter]" action Return("filter")
textbutton "Sort by: [current_sorting]" action Return("sort")
textbutton _("Show: [current_filter]") action Return("filter")
textbutton _("Sort by: [current_sorting]") action Return("sort")
screen brewing_menuitem(xx, yy):
default turned_on = False
@ -161,7 +161,7 @@ screen brewing_menuitem(xx, yy):
else:
add "interface/brewing/bg_off.webp" align (0.5, 1.0) xsize 548 fit "contain" yoffset -6
text "Brewing Station" size 22 xalign 0.5 ypos 65
text _("Brewing Station") size 22 xalign 0.5 ypos 65
if current_item:
vbox:
@ -170,7 +170,7 @@ screen brewing_menuitem(xx, yy):
spacing 5
text "[current_item.desc]" size 12
text "Usable on:" size 12
text _("Usable on:") size 12
hbox:
for c in current_item.usable_on:
add "interface/icons/head/{}.webp".format(c) size (24, 24)

View File

@ -60,13 +60,13 @@ init python:
icon = item.image
if quantity == 1:
text = "You have received one {}.".format(item.name)
text = _("You have received one {}.".format(item.name))
else:
text = "You have received {} pieces of {}.".format(num_to_word(quantity), item.name)
text = _("You have received {} pieces of {}.".format(num_to_word(quantity), item.name))
else:
items = ", ".join( [" ".join( [str(x[1]), x[0].name] ) for x in self.contents] )
icon = "interface/icons/box_brown_"+str(random.randint(1, 4))+".webp"
text = "You have received your ordered items:\n{size=-4}"+items+"{/size}"
text = _("You have received your ordered items:\n{size=-4}"+items+"{/size}")
return (text, icon)

View File

@ -292,7 +292,7 @@ label snape_third_duel:
sna "(You were a good card, my boy... But it's time to grow up.)" ("snape_05")
$ states.sna.ev.cardgame.stage = 3
$ unlocked_cards += [card_snape]
call give_reward("You have received a special card!", "images/cardgame/t1/special/snape_v1.webp")
call give_reward(_("You have received a special card!"), "images/cardgame/t1/special/snape_v1.webp")
$ tokens += 3
else:
$ tokens += 1
@ -341,7 +341,7 @@ label snape_random_duel:
sna "Ah, yes... something from my collection." ("snape_05")
$ item.owned += 1
call give_reward("You've received [item.name] from Snape!", item)
call give_reward(_("You've received [item.name] from Snape!"), item)
gen "What the fuck is this?" ("angry", xpos="far_left", ypos="head")
sna "As I said..." ("snape_01")
@ -403,7 +403,7 @@ label snape_random_duel:
sna "Well played though." ("snape_04")
$ item.owned += 1
call give_reward("You've received [item.name] from Snape!", item)
call give_reward(_("You've received [item.name] from Snape!"), item)
if not states.map.snape_office.intro_e3:
gen "(I still don't have any use for it, but I won't turn down free shit.)" ("base", xpos="far_left", ypos="head")

View File

@ -1,6 +1,6 @@
label a_christmas_tale_rewards:
if not card_exist(unlocked_cards, card_santa):
call give_reward("You have received a special card as a gift!", "images/cardgame/t1/special/santa_v1.webp")
call give_reward(_("You have received a special card as a gift!"), "images/cardgame/t1/special/santa_v1.webp")
$ unlocked_cards += [card_santa]
if not xmas_phoenix_ITEM.owned:
@ -11,7 +11,7 @@ label a_christmas_tale_rewards:
$ xmas_wreaths_ITEM.owned = 1
$ xmas_giftchair_ITEM.owned = 1
call give_reward("Christmas decorations have been unlocked!", gift="interface/icons/xmas_wreaths.webp")
call give_reward(_("Christmas decorations have been unlocked!"), gift="interface/icons/xmas_wreaths.webp")
return

View File

@ -18,7 +18,7 @@ label a_christmas_tale2_rewards:
$ xmas_wreaths_ITEM.owned = 1
$ xmas_giftchair_ITEM.owned = 1
call give_reward("Christmas decorations have been unlocked!", gift="interface/icons/xmas_wreaths.webp")
call give_reward(_("Christmas decorations have been unlocked!"), gift="interface/icons/xmas_wreaths.webp")
return

View File

@ -12,7 +12,7 @@ label a_white_christmas_rewards:
$ xmas_wreaths_ITEM.owned = 1
$ xmas_giftchair_ITEM.owned = 1
call give_reward("Christmas decorations have been unlocked!", gift="interface/icons/xmas_wreaths.webp")
call give_reward(_("Christmas decorations have been unlocked!"), gift="interface/icons/xmas_wreaths.webp")
return

View File

@ -1,7 +1,7 @@
label anal_pirate_rewards:
if not card_exist(unlocked_cards, card_maslab):
call give_reward("Ye plundered a special card from 'er cavern.", "images/cardgame/t1/genie_realm/maslab_v1.webp")
call give_reward(_("Ye plundered a special card from 'er cavern."), "images/cardgame/t1/genie_realm/maslab_v1.webp")
$ unlocked_cards += [card_maslab]
return

View File

@ -143,11 +143,11 @@ label puzzle_minigame:
call book_end
gen "(I've seen enough magic to know where this is going... I should investigate that corridor on the seventh floor.)" ("base", xpos="far_left", ypos="head")
call give_reward("You've unlocked something on the 7th floor, check your map to get there.","/images/rooms/room_of_requirement/mirror.webp")
call give_reward(_("You've unlocked something on the 7th floor, check your map to get there."),"/images/rooms/room_of_requirement/mirror.webp")
if states.cardgame.unlocked:
gen "What's this?" ("base", xpos="far_left", ypos="head")
call give_reward("You have found a card at the bottom of the box!", "images/cardgame/t1/other/elf_v1.webp")
call give_reward(_("You have found a card at the bottom of the box!"), "images/cardgame/t1/other/elf_v1.webp")
$ unlocked_cards += [card_item_elf]
$ states.map.seventh_floor.unlocked = True
$ puzzle_box_ITEM.owned = 0

View File

@ -64,6 +64,7 @@ define config.help = None
define config.side_image_only_not_showing = True
define config.allow_underfull_grids = True
define config.crop_relative_default = False
define config.enable_language_autodetect = True
# Graphics and cache settings
define config.gl2 = True

Some files were not shown because too many files have changed in this diff Show More