summaryrefslogtreecommitdiff
path: root/demos/gui/translation/main.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/gui/translation/main.gd')
-rw-r--r--demos/gui/translation/main.gd32
1 files changed, 0 insertions, 32 deletions
diff --git a/demos/gui/translation/main.gd b/demos/gui/translation/main.gd
deleted file mode 100644
index c3e788f82b..0000000000
--- a/demos/gui/translation/main.gd
+++ /dev/null
@@ -1,32 +0,0 @@
-
-extends Panel
-
-
-func _goto_scene():
- var s = load("res://controls.scn")
- var si = s.instance()
- get_parent().add_child(si)
- queue_free()
-
-
-func _on_system_pressed():
- # Will autodetect based on system, then fall back
- # to english if not found
- _goto_scene()
-
-# 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")
- _goto_scene()
-
-
-func _on_spanish_pressed():
- TranslationServer.set_locale("es")
- _goto_scene()
-
-
-func _on_japanese_pressed():
- TranslationServer.set_locale("ja")
- _goto_scene()