Ensure translation support in navigation and credits
This commit is contained in:
parent
f7c91ebcf7
commit
1f0c5ecb90
@ -36,7 +36,7 @@ define credits_images = [] # TODO: Add images once new chibis are in.
|
||||
|
||||
define credits_mods = "\n\n## Game Mods\n\n" + "\n\n".join(["### " + i[1]["Name"] + "\n- " + i[1]["Author"] for i in mods_list.items()]) if mods_list else ""
|
||||
|
||||
define credits = credits.convert(f"""{{image=game_logo}}{{vspace=10}}
|
||||
define credits = credits.convert(_(f"""{{image=game_logo}}{{vspace=10}}
|
||||
## Development Team
|
||||
|
||||
### Project Lead
|
||||
@ -229,7 +229,7 @@ define credits = credits.convert(f"""{{image=game_logo}}{{vspace=10}}
|
||||
- [renpy.license!t]{{vspace=300}}
|
||||
|
||||
# Thank you for playing!{{vspace=300}}
|
||||
""")
|
||||
"""))
|
||||
|
||||
style credits_header1:
|
||||
color "#ffffff"
|
||||
|
@ -189,49 +189,49 @@ screen navigation():
|
||||
vbox:
|
||||
style_prefix "navigation_tabs"
|
||||
|
||||
textbutton "Save" action [SetLocalVariable("subcategory", None), SetLocalVariable("category", "save")] selected (category=="save") at navigation_tabs
|
||||
textbutton "Load" action [SetLocalVariable("subcategory", None), SetLocalVariable("category", "load")] selected (category=="load") at navigation_tabs
|
||||
textbutton "Settings" action [SetLocalVariable("subcategory", "general"), SetLocalVariable("category", "settings")] at navigation_tabs
|
||||
textbutton "Main Menu" action MainMenu() at navigation_tabs
|
||||
textbutton _("Save") action [SetLocalVariable("subcategory", None), SetLocalVariable("category", "save")] selected (category=="save") at navigation_tabs
|
||||
textbutton _("Load") action [SetLocalVariable("subcategory", None), SetLocalVariable("category", "load")] selected (category=="load") at navigation_tabs
|
||||
textbutton _("Settings") action [SetLocalVariable("subcategory", "general"), SetLocalVariable("category", "settings")] at navigation_tabs
|
||||
textbutton _("Main Menu") action MainMenu() at navigation_tabs
|
||||
null height 35
|
||||
textbutton "Return" action [SetScreenVariable("navigation_last_frame_atl", navigation_last_frame_hide), SetScreenVariable("navigation_atl", navigation_hide), SetScreenVariable("navigation_exit", True)] keysym "game_menu" at navigation_tabs
|
||||
textbutton _("Return") action [SetScreenVariable("navigation_last_frame_atl", navigation_last_frame_hide), SetScreenVariable("navigation_atl", navigation_hide), SetScreenVariable("navigation_exit", True)] keysym "game_menu" at navigation_tabs
|
||||
null height 35
|
||||
textbutton "Credits" action Show("credits") at navigation_tabs
|
||||
textbutton _("Credits") action Show("credits") at navigation_tabs
|
||||
|
||||
if category == "save":
|
||||
vbox:
|
||||
style_prefix "navigation_subtabs"
|
||||
|
||||
textbutton "A.Saves" action FilePage("auto") at navigation_tabs
|
||||
textbutton "Q.Saves" action FilePage("quick") at navigation_tabs
|
||||
textbutton _("A.Saves") action FilePage("auto") at navigation_tabs
|
||||
textbutton _("Q.Saves") action FilePage("quick") at navigation_tabs
|
||||
null height 35
|
||||
textbutton "Next" action FilePageNext() at navigation_tabs
|
||||
textbutton "Previous" action FilePagePrevious() at navigation_tabs
|
||||
textbutton _("Next") action FilePageNext() at navigation_tabs
|
||||
textbutton _("Previous") action FilePagePrevious() at navigation_tabs
|
||||
null height 35
|
||||
textbutton "Last Page" action FilePageLast() at navigation_tabs
|
||||
textbutton _("Last Page") action FilePageLast() at navigation_tabs
|
||||
|
||||
use file_slots(_("Save"))
|
||||
elif category == "load":
|
||||
vbox:
|
||||
style_prefix "navigation_subtabs"
|
||||
|
||||
textbutton "A.Saves" action FilePage("auto") at navigation_tabs
|
||||
textbutton "Q.Saves" action FilePage("quick") at navigation_tabs
|
||||
textbutton _("A.Saves") action FilePage("auto") at navigation_tabs
|
||||
textbutton _("Q.Saves") action FilePage("quick") at navigation_tabs
|
||||
null height 35
|
||||
textbutton "Next" action FilePageNext() at navigation_tabs
|
||||
textbutton "Previous" action FilePagePrevious() at navigation_tabs
|
||||
textbutton _("Next") action FilePageNext() at navigation_tabs
|
||||
textbutton _("Previous") action FilePagePrevious() at navigation_tabs
|
||||
null height 35
|
||||
textbutton "Last Page" action FilePageLast() at navigation_tabs
|
||||
textbutton _("Last Page") action FilePageLast() at navigation_tabs
|
||||
|
||||
use file_slots(_("Load"))
|
||||
elif category == "settings":
|
||||
vbox:
|
||||
style_prefix "navigation_subtabs"
|
||||
|
||||
textbutton "General" action SetLocalVariable("subcategory", "general") at navigation_tabs
|
||||
textbutton "Display" action SetLocalVariable("subcategory", "display") at navigation_tabs
|
||||
textbutton "Audio" action SetLocalVariable("subcategory", "audio") at navigation_tabs
|
||||
textbutton "Other" action SetLocalVariable("subcategory", "other") at navigation_tabs
|
||||
textbutton _("General") action SetLocalVariable("subcategory", "general") at navigation_tabs
|
||||
textbutton _("Display") action SetLocalVariable("subcategory", "display") at navigation_tabs
|
||||
textbutton _("Audio") action SetLocalVariable("subcategory", "audio") at navigation_tabs
|
||||
textbutton _("Other") action SetLocalVariable("subcategory", "other") at navigation_tabs
|
||||
|
||||
if subcategory == "audio":
|
||||
use settings_audio
|
||||
|
@ -10,7 +10,7 @@ screen player(pos=(0.025, 0.2)):
|
||||
frame style "empty":
|
||||
pos pos
|
||||
|
||||
text "{bounce}Currently Playing{/bounce}"
|
||||
text _("{bounce}Currently Playing{/bounce}")
|
||||
bar value AudioPositionValue() ypos 20
|
||||
text "[renpy.music.get_playing()!i]" style "player_text_title" ypos 40
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user