1
0
Fork 0
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:
Anthony Wilcox 2019-01-01 08:27:45 -05:00
parent f021869131
commit 67747196b7
10 changed files with 36 additions and 10 deletions

View file

@ -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" ]

View file

@ -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"]

5
lang/local.csv Normal file
View file

@ -0,0 +1,5 @@
,en,sv
KMUS,Music,Musik
KCRE,Credits,Eftertexter
KABO,About,Handla om
KSOO,Coming Soon,Kommer snart
1 en sv
2 KMUS Music Musik
3 KCRE Credits Eftertexter
4 KABO About Handla om
5 KSOO Coming Soon Kommer snart

16
lang/local.csv.import Normal file
View 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

Binary file not shown.

BIN
lang/local.sv.translation Normal file

Binary file not shown.

View file

@ -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"

View file

@ -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.

View file

@ -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

View file

@ -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