mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Add localization POC
Added example TKeys Added it and en locale
This commit is contained in:
parent
4b32fe93dc
commit
ab841f6f72
5
tools/configurator/locales/interface.csv
Normal file
5
tools/configurator/locales/interface.csv
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
keys,en,it
|
||||||
|
TK_SYSTEM,"System","Sistema"
|
||||||
|
TK_GAME_CONTROL,"Game Control","Controllo del Gioco"
|
||||||
|
TK_QRESUME,"Quick Resume","Riepilogo Rapido"
|
||||||
|
TK_ADVANCED,"Advanced","Avanzate"
|
|
17
tools/configurator/locales/interface.csv.import
Normal file
17
tools/configurator/locales/interface.csv.import
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="csv_translation"
|
||||||
|
type="Translation"
|
||||||
|
uid="uid://cwb782o5jh5lx"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
files=["res://locales/interface.en.translation", "res://locales/interface.it.translation"]
|
||||||
|
|
||||||
|
source_file="res://locales/interface.csv"
|
||||||
|
dest_files=["res://locales/interface.en.translation", "res://locales/interface.it.translation"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress=true
|
||||||
|
delimiter=0
|
BIN
tools/configurator/locales/interface.en.translation
Normal file
BIN
tools/configurator/locales/interface.en.translation
Normal file
Binary file not shown.
BIN
tools/configurator/locales/interface.it.translation
Normal file
BIN
tools/configurator/locales/interface.it.translation
Normal file
Binary file not shown.
|
@ -112,79 +112,79 @@ layout_mode = 2
|
||||||
tab_alignment = 1
|
tab_alignment = 1
|
||||||
script = ExtResource("3_id6l4")
|
script = ExtResource("3_id6l4")
|
||||||
|
|
||||||
[node name="System" type="MarginContainer" parent="Background/MarginContainer/TabContainer"]
|
[node name="TK_SYSTEM" type="MarginContainer" parent="Background/MarginContainer/TabContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_constants/margin_right = 240
|
theme_override_constants/margin_right = 240
|
||||||
|
|
||||||
[node name="ScrollContainer" type="ScrollContainer" parent="Background/MarginContainer/TabContainer/System"]
|
[node name="ScrollContainer" type="ScrollContainer" parent="Background/MarginContainer/TabContainer/TK_SYSTEM"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
follow_focus = true
|
follow_focus = true
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="Background/MarginContainer/TabContainer/System/ScrollContainer"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
theme_override_constants/separation = 64
|
theme_override_constants/separation = 64
|
||||||
|
|
||||||
[node name="game_control_container" type="VBoxContainer" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer"]
|
[node name="game_control_container" type="VBoxContainer" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="game_control_label" type="Label" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container"]
|
[node name="game_control_label" type="Label" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Game Control"
|
text = "TK_GAME_CONTROL"
|
||||||
|
|
||||||
[node name="game_control_label2" type="HSeparator" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container"]
|
[node name="game_control_label2" type="HSeparator" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="GridContainer" type="GridContainer" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container"]
|
[node name="GridContainer" type="GridContainer" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
columns = 2
|
columns = 2
|
||||||
|
|
||||||
[node name="resume" type="CheckButton" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="resume" type="CheckButton" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
theme_override_constants/h_separation = 128
|
theme_override_constants/h_separation = 128
|
||||||
button_pressed = true
|
button_pressed = true
|
||||||
text = "Quick Resume"
|
text = "TK_QRESUME"
|
||||||
metadata/description = "This is a test description set to this element"
|
metadata/description = "This is a test description set to this element"
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="Button" type="Button" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
text = "Advanced"
|
text = "TK_ADVANCED"
|
||||||
|
|
||||||
[node name="rewind" type="CheckButton" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="rewind" type="CheckButton" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
theme_override_constants/h_separation = 256
|
theme_override_constants/h_separation = 256
|
||||||
text = "Rewind"
|
text = "Rewind"
|
||||||
metadata/description = "This is another, very long and convoluted, description, that I put too much commas in to make in LONGER and more SOPHISTICATED. And I did it twice!!!This is another, very long and convoluted, description, that I put too much commas in to make in LONGER and more SOPHISTICATED."
|
metadata/description = "This is another, very long and convoluted, description, that I put too much commas in to make in LONGER and more SOPHISTICATED. And I did it twice!!!This is another, very long and convoluted, description, that I put too much commas in to make in LONGER and more SOPHISTICATED."
|
||||||
|
|
||||||
[node name="Button2" type="Button" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="Button2" type="Button" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
disabled = true
|
disabled = true
|
||||||
text = "Advanced"
|
text = "TK_ADVANCED"
|
||||||
|
|
||||||
[node name="quitconfirm" type="CheckButton" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="quitconfirm" type="CheckButton" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
button_pressed = true
|
button_pressed = true
|
||||||
text = "Quit Confirmation
|
text = "Quit Confirmation
|
||||||
"
|
"
|
||||||
|
|
||||||
[node name="Button3" type="Button" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="Button3" type="Button" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
disabled = true
|
disabled = true
|
||||||
text = "Advanced"
|
text = "TK_ADVANCED"
|
||||||
|
|
||||||
[node name="cheats" type="CheckButton" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="cheats" type="CheckButton" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
disabled = true
|
disabled = true
|
||||||
text = "Cheats (coming soon)"
|
text = "Cheats (coming soon)"
|
||||||
|
|
||||||
[node name="Button4" type="Button" parent="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
[node name="Button4" type="Button" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
disabled = true
|
disabled = true
|
||||||
text = "Advanced"
|
text = "TK_ADVANCED"
|
||||||
|
|
||||||
[node name="Graphics" type="MarginContainer" parent="Background/MarginContainer/TabContainer"]
|
[node name="Graphics" type="MarginContainer" parent="Background/MarginContainer/TabContainer"]
|
||||||
visible = false
|
visible = false
|
||||||
|
@ -925,5 +925,5 @@ sprite_frames = SubResource("SpriteFrames_p8gbs")
|
||||||
animation = &"speech"
|
animation = &"speech"
|
||||||
frame_progress = 0.664627
|
frame_progress = 0.664627
|
||||||
|
|
||||||
[connection signal="pressed" from="Background/MarginContainer/TabContainer/System/ScrollContainer/VBoxContainer/game_control_container/GridContainer/Button" to="." method="_on_quickresume_advanced_pressed"]
|
[connection signal="pressed" from="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container/GridContainer/Button" to="." method="_on_quickresume_advanced_pressed"]
|
||||||
[connection signal="pressed" from="Background/Exit" to="." method="_on_exit_button_pressed"]
|
[connection signal="pressed" from="Background/Exit" to="." method="_on_exit_button_pressed"]
|
||||||
|
|
|
@ -79,6 +79,11 @@ previous_tab={
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[internationalization]
|
||||||
|
|
||||||
|
locale/translations=PackedStringArray("res://locales/interface.en.translation", "res://locales/interface.it.translation")
|
||||||
|
locale/test="it"
|
||||||
|
|
||||||
[rendering]
|
[rendering]
|
||||||
|
|
||||||
renderer/rendering_method="gl_compatibility"
|
renderer/rendering_method="gl_compatibility"
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue