mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Update Keychain
This commit is contained in:
parent
ab9a5aa0fd
commit
e5fd34aa91
2 changed files with 5 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
## Keychain
|
||||
|
||||
- Upstream: https://github.com/Orama-Interactive/Keychain
|
||||
- Version: [8860f66e880ff2fe876d45e681751fd6c6946558](https://github.com/Orama-Interactive/Keychain/commit/8860f66e880ff2fe876d45e681751fd6c6946558)
|
||||
- Version: [34bd83ab13f32c932479db8be4bb8c8b7e594fa2](https://github.com/Orama-Interactive/Keychain/commit/34bd83ab13f32c932479db8be4bb8c8b7e594fa2)
|
||||
- License: [MIT](https://github.com/Orama-Interactive/Keychain/blob/main/LICENSE)
|
||||
|
||||
## gdgifexporter
|
||||
|
|
|
@ -107,7 +107,10 @@ func action_erase_events(action: StringName) -> void:
|
|||
|
||||
|
||||
func load_translation(locale: String) -> void:
|
||||
var translation = load("res://addons/keychain/translations".path_join(locale + ".po"))
|
||||
var translation_file_path := "res://addons/keychain/translations".path_join(locale + ".po")
|
||||
if not ResourceLoader.exists(translation_file_path, "Translation"):
|
||||
return
|
||||
var translation := load(translation_file_path)
|
||||
if is_instance_valid(translation) and translation is Translation:
|
||||
TranslationServer.add_translation(translation)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue