Mark your texts as translatable smh. Reenables language stuff

This commit is contained in:
GManon 2023-05-17 00:28:18 -03:00
parent 610b158f21
commit d001c20957
6 changed files with 94 additions and 45 deletions

View File

@ -292,10 +292,10 @@ screen quick_menu():
use quick_buttons("gui/button/uioptionbuttons/template_idle.png",
[
[ "Skip", Skip() ],
[ "Save", ShowMenu('save') ],
[ "Auto", Preference("auto-forward", "toggle") ],
[ "Load", ShowMenu('load') ]
[ _("Skip"), Skip() ],
[ _("Save"), ShowMenu('save') ],
[ _("Auto"), Preference("auto-forward", "toggle") ],
[ _("Load"), ShowMenu('load') ]
] )
screen debug_menu():
@ -525,10 +525,10 @@ screen main_menu():
# use bonus_chapter_button()
use main_menu_buttons("gui/button/menubuttons/title_button.png",
[
[ "Load", ShowMenu("load") ],
[ "Options", ShowMenu("preferences") ],
[ "Extras", ShowMenu("extras") ], \
[ "Quit", Quit(confirm=not main_menu) ]
[ _("Load"), ShowMenu("load") ],
[ _("Options"), ShowMenu("preferences") ],
[ _("Extras"), ShowMenu("extras") ], \
[ _("Quit"), Quit(confirm=not main_menu) ]
] )
#on "show" action renpy.start_predict_screen("cg_gallery")
vbox:
@ -936,23 +936,23 @@ screen preferences():
label _("Naughty Stuff")
textbutton _("Enable Saucy Images") action [Function(onclick_audio, persistent.lewd), ToggleVariable("persistent.lewd", True, False)]
#vbox:
# style_prefix "check"
# label _("Language")
# vpgrid:
# rows len(languages)
# cols 1
# mousewheel True
# draggable True
# xsize 300
# ysize 250
# if len(languages)>4:
# scrollbars "vertical"
# for lang in languages:
# fixed:
# xsize 300
# ysize 60
# use lang_button(lang)
vbox:
style_prefix "check"
label _("Language")
vpgrid:
rows len(languages)
cols 1
mousewheel True
draggable True
xsize 300
ysize 250
if len(languages)>4:
scrollbars "vertical"
for lang in languages:
fixed:
xsize 300
ysize 60
use lang_button(lang)
vbox:
style_prefix "check"
@ -1730,10 +1730,10 @@ screen quick_menu():
yalign 0.975
use quick_buttons("gui/button/uioptionbuttons/template_idle.png", \
[ \
[ "Back", Rollback() ], \
[ "Skip", Skip() ], \
[ "Auto", Preference("auto-forward", "toggle") ], \
[ "Menu", ShowMenu() ] \
[ _("Back"), Rollback() ], \
[ _("Skip"), Skip() ], \
[ _("Auto"), Preference("auto-forward", "toggle") ], \
[ _("Menu"), ShowMenu() ] \
] )
screen extrasnavigation(): #Updates are removed (not even supported by Ren'Py)
@ -1752,11 +1752,11 @@ screen extrasnavigation(): #Updates are removed (not even supported by Ren'Py)
yalign 0.9
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
[
[ "Help", ShowMenu("help") ],
[ "About", ShowMenu("about") ],
#[ "Gallery", ShowMenu("cg_gallery") ],
[ "Mods", ShowMenu("mod_menu") ],
[ "Return", ShowMenu("main_menu") ]
[ _("Help"), ShowMenu("help") ],
[ _("About"), ShowMenu("about") ],
#["Gallery", ShowMenu("cg_gallery") ],
[ _("Mods"), ShowMenu("mod_menu") ],
[ _("Return"), ShowMenu("main_menu") ]
] )
style radio_button:

View File

@ -572,17 +572,17 @@ screen _draw_screen(draw_object):
if persistent.drawn == 1:
use draw_menu_buttons("gui/button/menubuttons/menu_button.png",
[
[ "Skip", Function(draw_object.skip), 0.0],
[ "Undo", Function(draw_object.back), 0.1],
[ "Clear All", Function(draw_object.clear_all), 0.2],
[ "Done", Function(draw_object.save, False), 0.3]
[ _("Skip"), Function(draw_object.skip), 0.0],
[ _("Undo"), Function(draw_object.back), 0.1],
[ _("Clear All"), Function(draw_object.clear_all), 0.2],
[ _("Done"), Function(draw_object.save, False), 0.3]
] )
else:
use draw_menu_buttons("gui/button/menubuttons/menu_button.png",
[
[ "Undo", Function(draw_object.back), 0.0],
[ "Clear All", Function(draw_object.clear_all), 0.1],
[ "Done", Function(draw_object.save, False), 0.2] #Dissolve(1.0)
[ ("Undo"), Function(draw_object.back), 0.0],
[ ("Clear All"), Function(draw_object.clear_all), 0.1],
[ ("Done"), Function(draw_object.save, False), 0.2] #Dissolve(1.0)
] )
#if draw_object.reference:

View File

@ -7,10 +7,10 @@ label splashscreen:
pause 11.2
stop sound
#if (persistent.languaged_up is None):
# $ persistent.languaged_up = True
# $ preferences.set_volume('ui', config.default_sfx_volume) # hack
# call screen lang_sel
if (persistent.languaged_up is None):
$ persistent.languaged_up = True
$ preferences.set_volume('ui', config.default_sfx_volume) # hack
call screen lang_sel
return

View File

@ -28,6 +28,7 @@ screen OkPrompt(message, go_menu):
textbutton _("OK") activate_sound "audio/ui/snd_ui_click.wav" action If(go_menu, true=MainMenu(False,False), false=Hide())
default persistent.seenWarning = []
default persistent.languaged_up = None
init python:

View File

@ -334,3 +334,39 @@ translate es strings:
old "Skipping"
new "Skipping"
# TODO: Translation updated at 2023-05-17 00:27
translate es strings:
# game/screens.rpy:293
old "Auto"
new "Auto"
# game/screens.rpy:526
old "Extras"
new "Extras"
# game/screens.rpy:941
old "Language"
new "Language"
# game/screens.rpy:1731
old "Back"
new "Back"
# game/screens.rpy:1731
old "Menu"
new "Menu"
# game/screens.rpy:1753
old "Help"
new "Help"
# game/screens.rpy:1753
old "About"
new "About"
# game/screens.rpy:1753
old "Mods"
new "Mods"

View File

@ -10,3 +10,15 @@ translate es strings:
old "A draw added in gallery."
new "A draw added in gallery."
# TODO: Translation updated at 2023-05-17 00:27
translate es strings:
# game/src/draw.rpy:573
old "Undo"
new "Undo"
# game/src/draw.rpy:573
old "Clear All"
new "Clear All"