diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-12-07 10:05:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 10:05:18 +0100 |
commit | a6952efba078e49d6555b0586230986a2cb7ed40 (patch) | |
tree | dc9a4d1a107902f0b4de21eeb503c4d901379ce0 /extension/src/openvic-extension/singletons/LoadLocalisation.hpp | |
parent | e01d332f407420db84fbfd207f18c3fec1c1b6a3 (diff) | |
parent | 291022316a4a3c742be92abd0d2b94256df60143 (diff) |
Merge pull request #167 from Spartan322/update/godot4.2-stable
Diffstat (limited to 'extension/src/openvic-extension/singletons/LoadLocalisation.hpp')
-rw-r--r-- | extension/src/openvic-extension/singletons/LoadLocalisation.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extension/src/openvic-extension/singletons/LoadLocalisation.hpp b/extension/src/openvic-extension/singletons/LoadLocalisation.hpp index b093fdf..aeee076 100644 --- a/extension/src/openvic-extension/singletons/LoadLocalisation.hpp +++ b/extension/src/openvic-extension/singletons/LoadLocalisation.hpp @@ -10,6 +10,8 @@ namespace OpenVic { static inline LoadLocalisation* _singleton = nullptr; + godot::Ref<godot::Translation> translations[Dataloader::_LocaleCount]; + godot::Error _load_file(godot::String const& file_path, godot::Ref<godot::Translation> translation) const; godot::Ref<godot::Translation> _get_translation(godot::String const& locale) const; @@ -26,6 +28,6 @@ namespace OpenVic { godot::Error load_locale_dir(godot::String const& dir_path, godot::String const& locale) const; godot::Error load_localisation_dir(godot::String const& dir_path) const; - static bool add_message(std::string_view key, Dataloader::locale_t locale, std::string_view localisation); + bool add_message(std::string_view key, Dataloader::locale_t locale, std::string_view localisation); }; } |