forked from Cavemanon/SnootGame
Bare-bones translation selector, making some texts translatable and common translation
This commit is contained in:
@ -467,7 +467,7 @@ screen bonus_chapter_button(f="gui/button/menubuttons/template_idle.png"):
|
|||||||
$ persistent.old_endings = persistent.endings
|
$ persistent.old_endings = persistent.endings
|
||||||
else:
|
else:
|
||||||
add f xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
add f xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
||||||
text "Bonus Chapters" xalign 0.5 yalign 0.5 xanchor 0.5
|
text _("Bonus Chapters") xalign 0.5 yalign 0.5 xanchor 0.5
|
||||||
|
|
||||||
# label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ]
|
# label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ]
|
||||||
# Reuse the same image string and keep things 'neat'.
|
# Reuse the same image string and keep things 'neat'.
|
||||||
@ -506,9 +506,9 @@ screen main_menu():
|
|||||||
add Solid(gui.accent_color)
|
add Solid(gui.accent_color)
|
||||||
at bonus_notif
|
at bonus_notif
|
||||||
if persistent.endings == 0b1111:
|
if persistent.endings == 0b1111:
|
||||||
text "You have unlocked all bonus chapters!" style "main_menu_text" yalign 0.5
|
text _("You have unlocked all bonus chapters!") style "main_menu_text" yalign 0.5
|
||||||
else:
|
else:
|
||||||
text "You have unlocked new bonus chapters, complete unseen endings to see more!" style "main_menu_text" yalign 0.5
|
text _("You have unlocked new bonus chapters, complete unseen endings to see more!") style "main_menu_text" yalign 0.5
|
||||||
|
|
||||||
## The use statement includes another screen inside this one. The actual
|
## The use statement includes another screen inside this one. The actual
|
||||||
## contents of the main menu are in the navigation screen.
|
## contents of the main menu are in the navigation screen.
|
||||||
@ -524,24 +524,24 @@ screen main_menu():
|
|||||||
xpos 1885
|
xpos 1885
|
||||||
ypos 1130
|
ypos 1130
|
||||||
if renpy.seen_image('big ending'):
|
if renpy.seen_image('big ending'):
|
||||||
use main_menu_button("template_black", "Start", Start())
|
use main_menu_button("template_black", _("Start"), Start())
|
||||||
use bonus_chapter_button("template_black")
|
use bonus_chapter_button("template_black")
|
||||||
use main_menu_buttons("template_black",
|
use main_menu_buttons("template_black",
|
||||||
[
|
[
|
||||||
[ "Load", ShowMenu("load") ],
|
[ "Load", ShowMenu("load") ],
|
||||||
[ "Options", ShowMenu("preferences") ],
|
[ "Options", ShowMenu("preferences") ],
|
||||||
[ "Extras", ShowMenu("extras") ], \
|
[ "Extras", ShowMenu("extras") ], \
|
||||||
[ "Quit", Quit(confirm=not main_menu) ]
|
[ _("Quit"), Quit(confirm=not main_menu) ]
|
||||||
] )
|
] )
|
||||||
else:
|
else:
|
||||||
use main_menu_button("gui/button/menubuttons/template_idle.png", "Start", Start())
|
use main_menu_button("gui/button/menubuttons/template_idle.png", _("Start"), Start())
|
||||||
use bonus_chapter_button()
|
use bonus_chapter_button()
|
||||||
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
|
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
|
||||||
[
|
[
|
||||||
[ "Load", ShowMenu("load") ],
|
[ "Load", ShowMenu("load") ],
|
||||||
[ "Options", ShowMenu("preferences") ],
|
[ "Options", ShowMenu("preferences") ],
|
||||||
[ "Extras", ShowMenu("extras") ], \
|
[ "Extras", ShowMenu("extras") ], \
|
||||||
[ "Quit", Quit(confirm=not main_menu) ]
|
[ _("Quit"), Quit(confirm=not main_menu) ]
|
||||||
] )
|
] )
|
||||||
on "show" action renpy.start_predict_screen("cg_gallery")
|
on "show" action renpy.start_predict_screen("cg_gallery")
|
||||||
|
|
||||||
@ -1007,6 +1007,13 @@ screen preferences():
|
|||||||
## Additional vboxes of type "radio_pref" or "check_pref" can be
|
## Additional vboxes of type "radio_pref" or "check_pref" can be
|
||||||
## added here, to add additional creator-defined preferences.
|
## added here, to add additional creator-defined preferences.
|
||||||
|
|
||||||
|
vbox:
|
||||||
|
style_prefix "check"
|
||||||
|
label _("Language")
|
||||||
|
$ persistent.chose_lang = True
|
||||||
|
textbutton "English" action Language(None)
|
||||||
|
textbutton "Español" action Language("es")
|
||||||
|
|
||||||
null height (4 * gui.pref_spacing)
|
null height (4 * gui.pref_spacing)
|
||||||
|
|
||||||
hbox:
|
hbox:
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2,6 +2,21 @@
|
|||||||
|
|
||||||
translate es strings:
|
translate es strings:
|
||||||
|
|
||||||
|
old "You have unlocked all bonus chapters!"
|
||||||
|
new "¡Has desbloqueado todos los capítulos extra!"
|
||||||
|
|
||||||
|
old "You have unlocked new bonus chapters, complete unseen endings to see more!"
|
||||||
|
new "Has desbloqueado nuevos capítulos de extra, ¡completa los finales no vistos para ver más!"
|
||||||
|
|
||||||
|
old "Start"
|
||||||
|
new "Comenzar"
|
||||||
|
|
||||||
|
old "Bonus Chapters"
|
||||||
|
new "Capitulos extra"
|
||||||
|
|
||||||
|
old "Language"
|
||||||
|
new "Lenguaje"
|
||||||
|
|
||||||
# game/screens.rpy:381
|
# game/screens.rpy:381
|
||||||
old "History"
|
old "History"
|
||||||
new "Historia"
|
new "Historia"
|
||||||
|
Reference in New Issue
Block a user