summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-05-28 10:04:57 +0200
committerSophia Pearson <codergal89@gmail.com>2022-05-28 10:04:57 +0200
commit2ab87ab4569c032b6d9357e1bbe10b4d8da887e7 (patch)
tree51fc591b6a859b3277c2669608444b6b8e75de41
parent7d6e9ae1a3c59465e79a2889dbdf175faf46e9ef (diff)
downloadtexty-2ab87ab4569c032b6d9357e1bbe10b4d8da887e7.tar.xz
texty-2ab87ab4569c032b6d9357e1bbe10b4d8da887e7.zip
l10n: add translations for start menu
-rw-r--r--.gitignore1
-rw-r--r--Assets/Translations/menus.csv4
-rw-r--r--Assets/Translations/menus.csv.import16
-rw-r--r--Scenes/StartMenu.tscn16
-rw-r--r--project.godot4
5 files changed, 33 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 70ac9e9..e15aa3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
/.import
/.mono
/data_*
+*.translation
/export/*/*
/!export/*/.gitkeep
diff --git a/Assets/Translations/menus.csv b/Assets/Translations/menus.csv
new file mode 100644
index 0000000..6503b66
--- /dev/null
+++ b/Assets/Translations/menus.csv
@@ -0,0 +1,4 @@
+keys,en,de
+BUTTON_CREDITS,"Credits","Danksagung"
+BUTTON_QUIT_GAME,"Quit","Beenden"
+BUTTON_START_GAME,"Start Adventure","Abenteuer starten"
diff --git a/Assets/Translations/menus.csv.import b/Assets/Translations/menus.csv.import
new file mode 100644
index 0000000..bab846d
--- /dev/null
+++ b/Assets/Translations/menus.csv.import
@@ -0,0 +1,16 @@
+[remap]
+
+importer="csv_translation"
+type="Translation"
+
+[deps]
+
+files=[ "res://Assets/Translations/menus.en.translation", "res://Assets/Translations/menus.de.translation" ]
+
+source_file="res://Assets/Translations/menus.csv"
+dest_files=[ "res://Assets/Translations/menus.en.translation", "res://Assets/Translations/menus.de.translation" ]
+
+[params]
+
+compress=true
+delimiter=0
diff --git a/Scenes/StartMenu.tscn b/Scenes/StartMenu.tscn
index ba9458b..cf5d9d2 100644
--- a/Scenes/StartMenu.tscn
+++ b/Scenes/StartMenu.tscn
@@ -19,27 +19,27 @@ margin_right = 1008.0
margin_bottom = 584.0
[node name="Buttons" type="VBoxContainer" parent="MainContainer"]
-margin_left = 421.0
+margin_left = 411.0
margin_top = 222.0
-margin_right = 587.0
+margin_right = 597.0
margin_bottom = 361.0
[node name="StartButton" type="Button" parent="MainContainer/Buttons"]
-margin_right = 166.0
+margin_right = 186.0
margin_bottom = 41.0
-text = "Start Adventure"
+text = "BUTTON_START_GAME"
[node name="CreditsButton" type="Button" parent="MainContainer/Buttons"]
margin_top = 49.0
-margin_right = 166.0
+margin_right = 186.0
margin_bottom = 90.0
-text = "Credits"
+text = "BUTTON_CREDITS"
[node name="QuitButton" type="Button" parent="MainContainer/Buttons"]
margin_top = 98.0
-margin_right = 166.0
+margin_right = 186.0
margin_bottom = 139.0
-text = "Quit"
+text = "BUTTON_QUIT_GAME"
[connection signal="visibility_changed" from="." to="." method="OnVisibilityChanged"]
[connection signal="pressed" from="MainContainer/Buttons/StartButton" to="." method="OnStartButtonPressed"]
diff --git a/project.godot b/project.godot
index 8f0fffb..64ec70c 100644
--- a/project.godot
+++ b/project.godot
@@ -56,6 +56,10 @@ theme/use_hidpi=true
theme/custom="res://Assets/Themes/Texty.tres"
theme/custom_font="res://Assets/Fonts/VT323Font24.tres"
+[locale]
+
+translations=PoolStringArray( "res://Assets/Translations/menus.de.translation", "res://Assets/Translations/menus.en.translation" )
+
[physics]
common/enable_pause_aware_picking=true