Merge pull request #685 from WallK/feat/gd-localization

This commit is contained in:
WallK 2024-02-16 15:54:21 +02:00 committed by GitHub
commit 8b45f0382b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 125 additions and 54 deletions

View file

@ -1,6 +1,6 @@
keys,en,it,de,se
keys,en,it,de,sv
TK_SYSTEM,"System","Sistema","System","System"
TK_GAME_CONTROL,"Game Control","Controlli di Gioco","Spieleinstellungen","Spelinställningar"
TK_GAME_SETTINGS,"Game Settings","Impostazioni di Gioco","Spieleinstellungen","Spelinställningar"
TK_QRESUME,"Quick Resume","Quick Resume","Schnellfortsetzung","Snabb Återupptagning"
TK_ADVANCED,"Advanced","Avanzate","Erweitert","Avancerat"
TK_REWIND,"Rewind","Riavvolgimento","Zurückspulen","Tillbakaspolning"
@ -54,7 +54,7 @@ TK_NETPLAYID,"Netplay ID:","ID Netplay:","Netplay ID:","Netplay ID:"
TK_NETPLAYADDRESS,"Address:","Indirizzo:","Adresse:","Address:"
TK_NETPLAYCONNECT,"Connect","Connetti","Verbinden","Anslut"
TK_DATAMNG,"Data Management","Gestione Dati","Datenverwaltung","Datahantering"
TK_SAVESSYNC,"Saves Sync","Sincronizzazione Salvataggi","Spielstände Synchronisieren","Sparfiler Sync"
TK_SAVESSYNC,"Synchronize Saves","Sincronizzazione Salvataggi","Spielstände Synchronisieren","Synkronisera Sparfiler"
TK_FTPBUTTON,"Start sFTP Server","Avvia Server sFTP","Starte sFTP Server","Starta sFTP Server"
TK_CHECKCONN,"Check Connection","Controllo Connessione","Verbindung Überprüfen","Kontrollera Anslutning"
TK_LOGSBUT,"Show Logs","Mostra Log","Logs Anzeigen","Visa Loggar"

1 keys en it de se sv
2 TK_SYSTEM System Sistema System System
3 TK_GAME_CONTROL TK_GAME_SETTINGS Game Control Game Settings Controlli di Gioco Impostazioni di Gioco Spieleinstellungen Spelinställningar
4 TK_QRESUME Quick Resume Quick Resume Schnellfortsetzung Snabb Återupptagning
5 TK_ADVANCED Advanced Avanzate Erweitert Avancerat
6 TK_REWIND Rewind Riavvolgimento Zurückspulen Tillbakaspolning
54 TK_NETPLAYADDRESS Address: Indirizzo: Adresse: Address:
55 TK_NETPLAYCONNECT Connect Connetti Verbinden Anslut
56 TK_DATAMNG Data Management Gestione Dati Datenverwaltung Datahantering
57 TK_SAVESSYNC Saves Sync Synchronize Saves Sincronizzazione Salvataggi Spielstände Synchronisieren Sparfiler Sync Synkronisera Sparfiler
58 TK_FTPBUTTON Start sFTP Server Avvia Server sFTP Starte sFTP Server Starta sFTP Server
59 TK_CHECKCONN Check Connection Controllo Connessione Verbindung Überprüfen Kontrollera Anslutning
60 TK_LOGSBUT Show Logs Mostra Log Logs Anzeigen Visa Loggar

View file

@ -6,10 +6,10 @@ uid="uid://cwb782o5jh5lx"
[deps]
files=["res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.se.translation"]
files=["res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation"]
source_file="res://locales/interface.csv"
dest_files=["res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.se.translation"]
dest_files=["res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation"]
[params]

Binary file not shown.

View file

@ -46,7 +46,7 @@ func _on_locale_selected(index):
2:
TranslationServer.set_locale("de")
3:
TranslationServer.set_locale("se")
TranslationServer.set_locale("sv")
combine_tkeys()
func combine_tkeys(): #More as a test

View file

@ -134,7 +134,7 @@ layout_mode = 2
[node name="game_control_label" type="Label" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container"]
layout_mode = 2
text = "TK_GAME_CONTROL"
text = "TK_GAME_SETTINGS"
[node name="game_control_label2" type="HSeparator" parent="Background/MarginContainer/TabContainer/TK_SYSTEM/ScrollContainer/VBoxContainer/game_control_container"]
layout_mode = 2

View file

@ -81,7 +81,10 @@ previous_tab={
[internationalization]
locale/translations=PackedStringArray("res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.se.translation")
locale/translation_remaps={
"res://res/pixel_ui_theme/8x8_ui_elements.png": PackedStringArray("res://res/pixel_ui_theme/8x8_ui_elements_de.png:de", "res://res/pixel_ui_theme/8x8_ui_elements_sv.png:sv")
}
locale/translations=PackedStringArray("res://locales/interface.en.translation", "res://locales/interface.it.translation", "res://locales/interface.de.translation", "res://locales/interface.sv.translation")
[rendering]

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cdwu4ma60tm8c"
path="res://.godot/imported/8x8_ui_elements_de.png-a4bd3fbe2599a71047fe5b87626f52d7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/pixel_ui_theme/8x8_ui_elements_de.png"
dest_files=["res://.godot/imported/8x8_ui_elements_de.png-a4bd3fbe2599a71047fe5b87626f52d7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://da7h6t366y7y2"
path="res://.godot/imported/8x8_ui_elements_sv.png-6c6ff77bee975360ad92095e77c0a153.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://res/pixel_ui_theme/8x8_ui_elements_sv.png"
dest_files=["res://.godot/imported/8x8_ui_elements_sv.png-6c6ff77bee975360ad92095e77c0a153.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

File diff suppressed because one or more lines are too long