diff options
Diffstat (limited to 'demos/gui/translation/main.gd')
-rw-r--r-- | demos/gui/translation/main.gd | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/demos/gui/translation/main.gd b/demos/gui/translation/main.gd index bf3c0c0840..9b188cd588 100644 --- a/demos/gui/translation/main.gd +++ b/demos/gui/translation/main.gd @@ -1,31 +1,21 @@ extends Panel -# member variables here, example: -# var a=2 -# var b="textvar" - -func _ready(): - # Initialization here - pass - - func _goto_scene(): var s = load("res://controls.scn") var si = s.instance() get_parent().add_child(si) queue_free() - pass func _on_system_pressed(): - #will autodetect based on system, then fall back - #to english if not found + # will autodetect based on system, then fall back + # to english if not found _goto_scene() -#NOTE: Changling locale will not change the text in the controls, -# The scene must be reloaded for changes to take effect. +# NOTE: Changing locale will not change the text in the controls, +# The scene must be reloaded for changes to take effect. func _on_english_pressed(): TranslationServer.set_locale("en") |