Improve translation support (part 5)
This commit is contained in:
parent
8d799e4b99
commit
4ad2be031f
@ -50,9 +50,9 @@ screen ui_top_bar():
|
|||||||
if room_menu_active:
|
if room_menu_active:
|
||||||
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_menu.webp"))
|
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_menu.webp"))
|
||||||
if toggle_menu:
|
if toggle_menu:
|
||||||
tooltip "Close menu"
|
tooltip _("Close menu")
|
||||||
else:
|
else:
|
||||||
tooltip "Open menu"
|
tooltip _("Open menu")
|
||||||
action ToggleScreenVariable("toggle_menu", True, False)
|
action ToggleScreenVariable("toggle_menu", True, False)
|
||||||
|
|
||||||
# Sleep button
|
# Sleep button
|
||||||
@ -64,10 +64,10 @@ screen ui_top_bar():
|
|||||||
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_sleep.webp"))
|
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_sleep.webp"))
|
||||||
if game.daytime:
|
if game.daytime:
|
||||||
action Jump("night_start")
|
action Jump("night_start")
|
||||||
tooltip "Doze Off (s)"
|
tooltip _("Doze Off (s)")
|
||||||
else:
|
else:
|
||||||
action Jump("day_start")
|
action Jump("day_start")
|
||||||
tooltip "Sleep (s)"
|
tooltip _("Sleep (s)")
|
||||||
|
|
||||||
hbox:
|
hbox:
|
||||||
if renpy.android:
|
if renpy.android:
|
||||||
@ -81,7 +81,7 @@ screen ui_top_bar():
|
|||||||
idle gui.format("interface/topbar/buttons/{}/ui_achievements.webp")
|
idle gui.format("interface/topbar/buttons/{}/ui_achievements.webp")
|
||||||
if room_menu_active:
|
if room_menu_active:
|
||||||
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_achievements.webp"))
|
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_achievements.webp"))
|
||||||
tooltip "Achievements"
|
tooltip _("Achievements")
|
||||||
action Jump("achievement")
|
action Jump("achievement")
|
||||||
|
|
||||||
# Stats button
|
# Stats button
|
||||||
@ -89,7 +89,7 @@ screen ui_top_bar():
|
|||||||
idle gui.format("interface/topbar/buttons/{}/ui_stats.webp")
|
idle gui.format("interface/topbar/buttons/{}/ui_stats.webp")
|
||||||
if room_menu_active:
|
if room_menu_active:
|
||||||
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_stats.webp"))
|
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_stats.webp"))
|
||||||
tooltip "Characters (c)"
|
tooltip _("Characters (c)")
|
||||||
action Jump("stats")
|
action Jump("stats")
|
||||||
|
|
||||||
# Inventory button
|
# Inventory button
|
||||||
@ -97,7 +97,7 @@ screen ui_top_bar():
|
|||||||
idle gui.format("interface/topbar/buttons/{}/ui_inv.webp")
|
idle gui.format("interface/topbar/buttons/{}/ui_inv.webp")
|
||||||
if room_menu_active:
|
if room_menu_active:
|
||||||
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_inv.webp"))
|
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_inv.webp"))
|
||||||
tooltip "Inventory (i)"
|
tooltip _("Inventory (i)")
|
||||||
action Jump("inventory")
|
action Jump("inventory")
|
||||||
|
|
||||||
# Work button
|
# Work button
|
||||||
@ -106,7 +106,7 @@ screen ui_top_bar():
|
|||||||
idle gui.format("interface/topbar/buttons/{}/ui_work.webp")
|
idle gui.format("interface/topbar/buttons/{}/ui_work.webp")
|
||||||
if room_menu_active:
|
if room_menu_active:
|
||||||
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_work.webp"))
|
hover image_hover(gui.format("interface/topbar/buttons/{}/ui_work.webp"))
|
||||||
tooltip "Work (w)"
|
tooltip _("Work (w)")
|
||||||
action Jump("paperwork")
|
action Jump("paperwork")
|
||||||
|
|
||||||
screen ui_points():
|
screen ui_points():
|
||||||
@ -144,7 +144,7 @@ screen ui_points():
|
|||||||
if room_menu_active:
|
if room_menu_active:
|
||||||
imagebutton:
|
imagebutton:
|
||||||
idle "interface/topbar/hover_zone.webp"
|
idle "interface/topbar/hover_zone.webp"
|
||||||
tooltip "House Points\n{size=-2}Click to toggle style display{/size}"
|
tooltip _("House Points\n{size=-2}Click to toggle style display{/size}")
|
||||||
hovered SetLocalVariable("toggle_points", True)
|
hovered SetLocalVariable("toggle_points", True)
|
||||||
unhovered SetLocalVariable("toggle_points", False)
|
unhovered SetLocalVariable("toggle_points", False)
|
||||||
action ToggleVariable("persistent.toggle_points", True, False)
|
action ToggleVariable("persistent.toggle_points", True, False)
|
||||||
@ -213,11 +213,11 @@ screen ui_menu():
|
|||||||
textbutton "Save" action ShowMenu("save") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
textbutton "Save" action ShowMenu("save") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
||||||
textbutton "Load" action ShowMenu("load") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
textbutton "Load" action ShowMenu("load") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
||||||
if game.cheats and game.difficulty <= 2 and game.day > 1:
|
if game.cheats and game.difficulty <= 2 and game.day > 1:
|
||||||
textbutton "Cheats" action [SetScreenVariable("toggle_menu", False), Jump("cheats")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
textbutton _("Cheats") action [SetScreenVariable("toggle_menu", False), Jump("cheats")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
||||||
if game.day > 1 and renpy.android:
|
if game.day > 1 and renpy.android:
|
||||||
textbutton "Preferences" action ShowMenu("preferences") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
textbutton _("Preferences") action ShowMenu("preferences") background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
||||||
if game.day > 1 and persistent.game_complete:
|
if game.day > 1 and persistent.game_complete:
|
||||||
textbutton "Gallery" action [SetScreenVariable("toggle_menu", False), Jump("scene_gallery")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
textbutton _("Gallery") action [SetScreenVariable("toggle_menu", False), Jump("scene_gallery")] background None xalign 0.5 text_outlines [ (2, "#00000080", 1, 0) ]
|
||||||
|
|
||||||
#if game.day > 1 and config.developer:
|
#if game.day > 1 and config.developer:
|
||||||
# textbutton "{size=-11}Show Chars{/size}" action [SetScreenVariable("toggle_menu", False), Jump("summon_characters")] background "#000"
|
# textbutton "{size=-11}Show Chars{/size}" action [SetScreenVariable("toggle_menu", False), Jump("summon_characters")] background "#000"
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
default main_room = Room("main_room")
|
default main_room = Room("main_room")
|
||||||
|
|
||||||
default fireplace_OBJ = RoomObject(main_room, "fireplace", pos=(693, 277), idle="fireplace_idle_shadow", focus_mask="fireplace_hover", foreground=None, action=Jump("fireplace"), tooltip="Light/Extinguish")
|
default fireplace_OBJ = RoomObject(main_room, "fireplace", pos=(693, 277), idle="fireplace_idle_shadow", focus_mask="fireplace_hover", foreground=None, action=Jump("fireplace"), tooltip=_("Light/Extinguish"))
|
||||||
default cupboard_OBJ = RoomObject(main_room, "cupboard", pos=(260, 280), idle="cupboard_idle", action=Jump("cupboard"), tooltip="Rummage")
|
default cupboard_OBJ = RoomObject(main_room, "cupboard", pos=(260, 280), idle="cupboard_idle", action=Jump("cupboard"), tooltip=_("Rummage"))
|
||||||
default phoenix_OBJ = RoomObject(main_room, "phoenix", pos=(557, 272), idle="phoenix_idle", hover="phoenix_hover", focus_mask="phoenix_idle", background="phoenix_feather", action=Jump("phoenix"), tooltip="Interact")
|
default phoenix_OBJ = RoomObject(main_room, "phoenix", pos=(557, 272), idle="phoenix_idle", hover="phoenix_hover", focus_mask="phoenix_idle", background="phoenix_feather", action=Jump("phoenix"), tooltip=_("Interact"))
|
||||||
default door_OBJ = RoomObject(main_room, "door", pos=(898, 315), idle="door_idle", focus_mask="door_hover", action=Jump("door"), tooltip="Summon")
|
default door_OBJ = RoomObject(main_room, "door", pos=(898, 315), idle="door_idle", focus_mask="door_hover", action=Jump("door"), tooltip=_("Summon"))
|
||||||
default candleL_OBJ = RoomObject(main_room, "candle_left", pos=(350, 160), idle="candle_left", foreground=None, action=ToggleVariable("candleL_OBJ.foreground", "candle_fire", None), zorder=3)
|
default candleL_OBJ = RoomObject(main_room, "candle_left", pos=(350, 160), idle="candle_left", foreground=None, action=ToggleVariable("candleL_OBJ.foreground", "candle_fire", None), zorder=3)
|
||||||
default candleR_OBJ = RoomObject(main_room, "candle_right", pos=(833, 225), idle="candle_right", foreground=None, action=ToggleVariable("candleR_OBJ.foreground", "candle_fire", None), zorder=3)
|
default candleR_OBJ = RoomObject(main_room, "candle_right", pos=(833, 225), idle="candle_right", foreground=None, action=ToggleVariable("candleR_OBJ.foreground", "candle_fire", None), zorder=3)
|
||||||
default desk_OBJ = RoomObject(main_room, "desk", pos=(370, 336), idle="ch_gen sit_behind_desk", hover="ch_gen sit_behind_desk_hover", focus_mask="ch_gen sit_behind_desk", action=Jump("desk"), hovered=Show("gui_tooltip", img="emo_exclaim", xx=335, yy=210), unhovered=Hide("gui_tooltip"), tooltip="Desk", zorder=1)
|
default desk_OBJ = RoomObject(main_room, "desk", pos=(370, 336), idle="ch_gen sit_behind_desk", hover="ch_gen sit_behind_desk_hover", focus_mask="ch_gen sit_behind_desk", action=Jump("desk"), hovered=Show("gui_tooltip", img="emo_exclaim", xx=335, yy=210), unhovered=Hide("gui_tooltip"), tooltip=_("Desk"), zorder=1)
|
||||||
default poster_OBJ = RoomObject(main_room, "poster", pos=(364, 285), idle=Null(127, 166), action=Jump("enlarge_poster"), zorder=-1)
|
default poster_OBJ = RoomObject(main_room, "poster", pos=(364, 285), idle=Null(127, 166), action=Jump("enlarge_poster"), zorder=-1)
|
||||||
default trophy_OBJ = RoomObject(main_room, "trophy", pos=(650, 120), idle=Null(), action=None, zorder=-1)
|
default trophy_OBJ = RoomObject(main_room, "trophy", pos=(650, 120), idle=Null(), action=None, zorder=-1)
|
||||||
default chair_OBJ = RoomObject(main_room, "chair", pos=(793, 300), idle="chair_right", action=None, zorder=0)
|
default chair_OBJ = RoomObject(main_room, "chair", pos=(793, 300), idle="chair_right", action=None, zorder=0)
|
||||||
default chair_left_OBJ = RoomObject(main_room, "chair", pos=(333, 300), idle="chair_left", action=None, zorder=0, hidden=True)
|
default chair_left_OBJ = RoomObject(main_room, "chair", pos=(333, 300), idle="chair_left", action=None, zorder=0, hidden=True)
|
||||||
|
|
||||||
default owl_OBJ = RoomObject(main_room, "owl", pos=(455, 289), idle="owl_letter", hover="owl_letter_hover", action=Jump("letter_open_all"), tooltip="Check Mail", hidden=True, anchor=(0.5, 1.0))
|
default owl_OBJ = RoomObject(main_room, "owl", pos=(455, 289), idle="owl_letter", hover="owl_letter_hover", action=Jump("letter_open_all"), tooltip=_("Check Mail"), hidden=True, anchor=(0.5, 1.0))
|
||||||
default parcel_OBJ = RoomObject(main_room, "parcel", pos=(402, 290), idle="parcel", action=Jump("parcel_open_all"), tooltip="Check Parcel", hidden=True, anchor=(0.5, 1.0))
|
default parcel_OBJ = RoomObject(main_room, "parcel", pos=(402, 290), idle="parcel", action=Jump("parcel_open_all"), tooltip=_("Check Parcel"), hidden=True, anchor=(0.5, 1.0))
|
||||||
|
|
||||||
default rug_OBJ = RoomObject(main_room, "rug", pos=(482, 392), idle=Null(), action=None, zorder=0)
|
default rug_OBJ = RoomObject(main_room, "rug", pos=(482, 392), idle=Null(), action=None, zorder=0)
|
||||||
default chandelier_OBJ = RoomObject(main_room, "chandelier", pos=(536, 24), idle=Null(), action=None, zorder=5)
|
default chandelier_OBJ = RoomObject(main_room, "chandelier", pos=(536, 24), idle=Null(), action=None, zorder=5)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
default room_of_requirement = Room("room_of_requirement")
|
default room_of_requirement = Room("room_of_requirement")
|
||||||
|
|
||||||
default ror_door_OBJ = RoomObject(room_of_requirement, "door", pos=(897, 315), idle="door_idle_night", action=Jump("main_room"), tooltip="Return to office")
|
default ror_door_OBJ = RoomObject(room_of_requirement, "door", pos=(897, 315), idle="door_idle_night", action=Jump("main_room"), tooltip=_("Return to office"))
|
||||||
default ror_mirror_OBJ = RoomObject(room_of_requirement, "mirror", pos=(180, 492), anchor=(0.5, 1.0), idle="mirror", hover="mirror_hover", action=Jump("mirror"), tooltip="Look into the mirror")
|
default ror_mirror_OBJ = RoomObject(room_of_requirement, "mirror", pos=(180, 492), anchor=(0.5, 1.0), idle="mirror", hover="mirror_hover", action=Jump("mirror"), tooltip=_("Look into the mirror"))
|
||||||
|
|
||||||
default mirror_image = Null()
|
default mirror_image = Null()
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
default snape_office = Room("snape_office")
|
default snape_office = Room("snape_office")
|
||||||
|
|
||||||
default snape_office_brewing_station_OBJ = RoomObject(snape_office, "snape_office_brewing_station", pos=(367, 325), idle="snape_office_brewing_station_off", focus_mask=None, action=Jump("brewing_station"), tooltip="Brewing Station", zorder=-1)
|
default snape_office_brewing_station_OBJ = RoomObject(snape_office, "snape_office_brewing_station", pos=(367, 325), idle="snape_office_brewing_station_off", focus_mask=None, action=Jump("brewing_station"), tooltip=_("Brewing Station"), zorder=-1)
|
||||||
default snape_office_shelves_OBJ = RoomObject(snape_office, "snape_office_shelves", pos=(695, 240), idle="snape_office_shelves", foreground="snape_office_shelves_anim", focus_mask=None, action=Jump("shelves"), tooltip="Shelves", zorder=-1)
|
default snape_office_shelves_OBJ = RoomObject(snape_office, "snape_office_shelves", pos=(695, 240), idle="snape_office_shelves", foreground="snape_office_shelves_anim", focus_mask=None, action=Jump("shelves"), tooltip=_("Shelves"), zorder=-1)
|
||||||
default snape_office_picture_OBJ = RoomObject(snape_office, "snape_office_picture", pos=(879, 219), idle="snape_office_picture", action=Jump("snape_picture"), tooltip="Picture", zorder=-1)
|
default snape_office_picture_OBJ = RoomObject(snape_office, "snape_office_picture", pos=(879, 219), idle="snape_office_picture", action=Jump("snape_picture"), tooltip=_("Picture"), zorder=-1)
|
||||||
default snape_office_statue_OBJ = RoomObject(snape_office, "snape_office_statue", pos=(541, 137), idle="snape_office_statue", action=Jump("snake_statue"), tooltip="Snake Head", zorder=-1)
|
default snape_office_statue_OBJ = RoomObject(snape_office, "snape_office_statue", pos=(541, 137), idle="snape_office_statue", action=Jump("snake_statue"), tooltip=_("Snake Head"), zorder=-1)
|
||||||
default snape_office_desk_OBJ = RoomObject(snape_office, "snape_office_desk", pos=(737, 369), idle="snape_office_desk", action=Jump("snape_at_desk"), tooltip="Snape's Desk", zorder=0)
|
default snape_office_desk_OBJ = RoomObject(snape_office, "snape_office_desk", pos=(737, 369), idle="snape_office_desk", action=Jump("snape_at_desk"), tooltip=_("Snape's Desk"), zorder=0)
|
||||||
default snape_office_candelabra_OBJ = RoomObject(snape_office, "snape_office_candelabra", pos=(540, 300), idle="snape_office_candelabra_on", foreground="snape_office_candelabra_anim", focus_mask=None, action=Jump("candelabra"), tooltip="Examine", zorder=0)
|
default snape_office_candelabra_OBJ = RoomObject(snape_office, "snape_office_candelabra", pos=(540, 300), idle="snape_office_candelabra_on", foreground="snape_office_candelabra_anim", focus_mask=None, action=Jump("candelabra"), tooltip=_("Examine"), zorder=0)
|
||||||
default snape_office_door_OBJ = RoomObject(snape_office, "snape_office_door", pos=(185, 307), idle="snape_office_door", action=Jump("snape_office_door"), tooltip="Return to office", zorder=0)
|
default snape_office_door_OBJ = RoomObject(snape_office, "snape_office_door", pos=(185, 307), idle="snape_office_door", action=Jump("snape_office_door"), tooltip=_("Return to office"), zorder=0)
|
||||||
|
|
||||||
screen snape_office():
|
screen snape_office():
|
||||||
tag room
|
tag room
|
||||||
|
@ -1,20 +1,6 @@
|
|||||||
translate chinese python:
|
translate chinese python:
|
||||||
def replace_text(s):
|
def replace_text(s):
|
||||||
s = s.replace("Light/Extinguish","点燃/熄灭")
|
|
||||||
s = s.replace("Rummage","翻找")
|
|
||||||
s = s.replace("Interact","互动")
|
|
||||||
s = s.replace("Summon","传唤")
|
|
||||||
s = s.replace("Desk","办公桌")
|
|
||||||
s = s.replace("Check Mail","查看邮件")
|
|
||||||
s = s.replace("Check Parcel","查看包裹")
|
|
||||||
s = s.replace("Open menu","打开选项")
|
|
||||||
s = s.replace("Close menu","关闭选项")
|
|
||||||
s = s.replace("House Points\n{size=-2}Click to toggle style display{/size}","学院积分\n{size=-2}点击切换显示样式{/size}")
|
s = s.replace("House Points\n{size=-2}Click to toggle style display{/size}","学院积分\n{size=-2}点击切换显示样式{/size}")
|
||||||
s = s.replace("Achievements","成就")
|
|
||||||
s = s.replace("Characters (c)","角色 (c)")
|
|
||||||
s = s.replace("Inventory (i)","库存 (i)")
|
|
||||||
s = s.replace("Work (w)","工作 (w)")
|
|
||||||
s = s.replace("Doze Off (s)","打盹 (s)")
|
|
||||||
s = s.replace("Brewing Station","酿造站")
|
s = s.replace("Brewing Station","酿造站")
|
||||||
s = s.replace("Shelves","书架")
|
s = s.replace("Shelves","书架")
|
||||||
s = s.replace("Examine","检查")
|
s = s.replace("Examine","检查")
|
||||||
|
Loading…
Reference in New Issue
Block a user