Hello, everyone
I'm using the Godot engine for a cople of days and still have some problems trying to access information and putting new scenes on the screen.
Recently i was trying to apply a translation to a project. I am using a .csv file and trying to apply English, Portuguese and Spanish to the Menu of the game and them load the menu.
Sorry for any english mistake, not my first language, and any code mistake, i'm very new to gdscript.
The buttons have the name of the languages they should show the Menu
extends Control
func _on_English_pressed():
Translation.Server.set_locale("en")
get_tree().change_scene("res://Menu.tscn")
func _on_Espanol_pressed():
Translation.Server.set_locale("es")
get_tree().change_scene("res://Menu.tscn")
func _on_Portugues_pressed():
Translation.Server.set_locale("pt")
get_tree().change_scene("res://Menu.tscn")