mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-08 06:14:48 -04:00
Localization in English and Swedish
- New localization for English (obviously) and now Swedish. The system is very straight forward, but I'd suggest checking out Godot's documentation for a proper understanding on how it works. https://docs.godotengine.org/en/3.0/getting_started/workflow/assets/importing_translations.html
This commit is contained in:
parent
f021869131
commit
67747196b7
10 changed files with 36 additions and 10 deletions
|
@ -78,9 +78,9 @@ pressed = true
|
||||||
enabled_focus_mode = 2
|
enabled_focus_mode = 2
|
||||||
shortcut = null
|
shortcut = null
|
||||||
group = null
|
group = null
|
||||||
text = "Music"
|
text = "KMUS"
|
||||||
flat = false
|
flat = false
|
||||||
align = 0
|
align = 1
|
||||||
_sections_unfolded = [ "custom_colors" ]
|
_sections_unfolded = [ "custom_colors" ]
|
||||||
|
|
||||||
[node name="CreditsBtn" type="Button" parent="ReferenceRect/VertContainer" index="1"]
|
[node name="CreditsBtn" type="Button" parent="ReferenceRect/VertContainer" index="1"]
|
||||||
|
@ -103,7 +103,7 @@ toggle_mode = false
|
||||||
enabled_focus_mode = 2
|
enabled_focus_mode = 2
|
||||||
shortcut = null
|
shortcut = null
|
||||||
group = null
|
group = null
|
||||||
text = "Credits"
|
text = "KCRE"
|
||||||
flat = false
|
flat = false
|
||||||
align = 1
|
align = 1
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ toggle_mode = false
|
||||||
enabled_focus_mode = 2
|
enabled_focus_mode = 2
|
||||||
shortcut = null
|
shortcut = null
|
||||||
group = null
|
group = null
|
||||||
text = "About"
|
text = "KABO"
|
||||||
flat = false
|
flat = false
|
||||||
align = 1
|
align = 1
|
||||||
_sections_unfolded = [ "Margin" ]
|
_sections_unfolded = [ "Margin" ]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
[ext_resource path="res://Clothes.tscn" type="PackedScene" id=4]
|
[ext_resource path="res://Clothes.tscn" type="PackedScene" id=4]
|
||||||
[ext_resource path="res://Interface.tscn" type="PackedScene" id=5]
|
[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"]
|
[node name="Background" type="Sprite" parent="." index="0"]
|
||||||
|
|
||||||
|
|
5
lang/local.csv
Normal file
5
lang/local.csv
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
,en,sv
|
||||||
|
KMUS,Music,Musik
|
||||||
|
KCRE,Credits,Eftertexter
|
||||||
|
KABO,About,Handla om
|
||||||
|
KSOO,Coming Soon,Kommer snart
|
|
16
lang/local.csv.import
Normal file
16
lang/local.csv.import
Normal file
|
@ -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
|
BIN
lang/local.en.translation
Normal file
BIN
lang/local.en.translation
Normal file
Binary file not shown.
BIN
lang/local.sv.translation
Normal file
BIN
lang/local.sv.translation
Normal file
Binary file not shown.
|
@ -21,6 +21,11 @@ window/size/width=800
|
||||||
window/size/height=554
|
window/size/height=554
|
||||||
window/size/resizable=false
|
window/size/resizable=false
|
||||||
|
|
||||||
|
[locale]
|
||||||
|
|
||||||
|
locale_filter=[ 1, [ "en", "sv" ] ]
|
||||||
|
translations=PoolStringArray( "res://lang/local.en.translation", "res://lang/local.sv.translation" )
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
environment/default_environment="res://default_env.tres"
|
environment/default_environment="res://default_env.tres"
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
[ext_resource path="res://widgets/WindowControl.tscn" type="PackedScene" id=1]
|
[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 )]
|
[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.
|
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.
|
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.
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
[ext_resource path="res://widgets/WindowControl.tscn" type="PackedScene" id=1]
|
[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 )]
|
[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_text = "This feature has not been implemented yet."
|
||||||
content_height = 30
|
content_height = 30
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
[node name="WindowControl" parent="." index="0" instance=ExtResource( 1 )]
|
[node name="WindowControl" parent="." index="0" instance=ExtResource( 1 )]
|
||||||
|
|
||||||
toolbar_title = "Credits"
|
toolbar_title = "KCRE"
|
||||||
content_text = "[center]Created by
|
content_text = "[center]Created by
|
||||||
Anthony Wilcox
|
Anthony Wilcox
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue