Mark your texts as translatable smh. Reenables language stuff

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

View File

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

View File

@@ -7,10 +7,10 @@ label splashscreen:
pause 11.2 pause 11.2
stop sound stop sound
#if (persistent.languaged_up is None): if (persistent.languaged_up is None):
# $ persistent.languaged_up = True $ persistent.languaged_up = True
# $ preferences.set_volume('ui', config.default_sfx_volume) # hack $ preferences.set_volume('ui', config.default_sfx_volume) # hack
# call screen lang_sel call screen lang_sel
return 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()) 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.seenWarning = []
default persistent.languaged_up = None
init python: init python:

View File

@@ -334,3 +334,39 @@ translate es strings:
old "Skipping" old "Skipping"
new "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." old "A draw added in gallery."
new "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"