diff --git a/Interface.tscn b/Interface.tscn index 8119808..9d3c0bf 100644 --- a/Interface.tscn +++ b/Interface.tscn @@ -78,9 +78,9 @@ pressed = true enabled_focus_mode = 2 shortcut = null group = null -text = "Music" +text = "KMUS" flat = false -align = 0 +align = 1 _sections_unfolded = [ "custom_colors" ] [node name="CreditsBtn" type="Button" parent="ReferenceRect/VertContainer" index="1"] @@ -103,7 +103,7 @@ toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null -text = "Credits" +text = "KCRE" flat = false align = 1 @@ -127,7 +127,7 @@ toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null -text = "About" +text = "KABO" flat = false align = 1 _sections_unfolded = [ "Margin" ] diff --git a/MainScreen.tscn b/MainScreen.tscn index 7a55a1b..43fe4d4 100644 --- a/MainScreen.tscn +++ b/MainScreen.tscn @@ -6,7 +6,7 @@ [ext_resource path="res://Clothes.tscn" type="PackedScene" id=4] [ext_resource path="res://Interface.tscn" type="PackedScene" id=5] -[node name="MainScreen" type="Node2D" index="0"] +[node name="MainScreen" type="Node2D"] [node name="Background" type="Sprite" parent="." index="0"] diff --git a/lang/local.csv b/lang/local.csv new file mode 100644 index 0000000..4c2d134 --- /dev/null +++ b/lang/local.csv @@ -0,0 +1,5 @@ +,en,sv +KMUS,Music,Musik +KCRE,Credits,Eftertexter +KABO,About,Handla om +KSOO,Coming Soon,Kommer snart \ No newline at end of file diff --git a/lang/local.csv.import b/lang/local.csv.import new file mode 100644 index 0000000..beece0d --- /dev/null +++ b/lang/local.csv.import @@ -0,0 +1,16 @@ +[remap] + +importer="csv_translation" +type="Translation" + +[deps] + +files=[ "res://lang/local.en.translation", "res://lang/local.sv.translation" ] + +source_file="res://lang/local.csv" +dest_files=[ "res://lang/local.en.translation", "res://lang/local.sv.translation" ] + +[params] + +compress=true +delimiter=0 diff --git a/lang/local.en.translation b/lang/local.en.translation new file mode 100644 index 0000000..d9dc37e Binary files /dev/null and b/lang/local.en.translation differ diff --git a/lang/local.sv.translation b/lang/local.sv.translation new file mode 100644 index 0000000..b3893b6 Binary files /dev/null and b/lang/local.sv.translation differ diff --git a/project.godot b/project.godot index 3fa3389..be686e6 100644 --- a/project.godot +++ b/project.godot @@ -21,6 +21,11 @@ window/size/width=800 window/size/height=554 window/size/resizable=false +[locale] + +locale_filter=[ 1, [ "en", "sv" ] ] +translations=PoolStringArray( "res://lang/local.en.translation", "res://lang/local.sv.translation" ) + [rendering] environment/default_environment="res://default_env.tres" diff --git a/windows/About.tscn b/windows/About.tscn index e2f5594..59b11af 100644 --- a/windows/About.tscn +++ b/windows/About.tscn @@ -2,11 +2,11 @@ [ext_resource path="res://widgets/WindowControl.tscn" type="PackedScene" id=1] -[node name="About" type="Node"] +[node name="About" type="Node" index="0"] [node name="WindowControl" parent="." index="0" instance=ExtResource( 1 )] -toolbar_title = "About" +toolbar_title = "KABO" content_text = "Zack's Dress Up is a port and remake of ZC's Dress Up. Both created by Anthony Wilcox. This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. diff --git a/windows/ComingSoon.tscn b/windows/ComingSoon.tscn index de9d9e2..15c28d9 100644 --- a/windows/ComingSoon.tscn +++ b/windows/ComingSoon.tscn @@ -2,11 +2,11 @@ [ext_resource path="res://widgets/WindowControl.tscn" type="PackedScene" id=1] -[node name="ComingSoon" type="Node"] +[node name="ComingSoon" type="Node" index="0"] [node name="WindowControl" parent="." index="0" instance=ExtResource( 1 )] -toolbar_title = "Coming Soon" +toolbar_title = "KSOO" content_text = "This feature has not been implemented yet." content_height = 30 diff --git a/windows/Credits.tscn b/windows/Credits.tscn index 3ed1442..3ea648f 100644 --- a/windows/Credits.tscn +++ b/windows/Credits.tscn @@ -6,7 +6,7 @@ [node name="WindowControl" parent="." index="0" instance=ExtResource( 1 )] -toolbar_title = "Credits" +toolbar_title = "KCRE" content_text = "[center]Created by Anthony Wilcox