diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-04 10:53:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 10:53:48 +0100 |
commit | 12db0cddf4ac630cabe07a665be384ec270e8821 (patch) | |
tree | 5f014ff5b1d7861e9e37843dca65c646b9762edb /platform/osx/export/export_plugin.cpp | |
parent | 9b94a1dc4a61660f178d1a5fe65a8da0700c7c8b (diff) | |
parent | 5fdea6927616bdf2222c0375d644befe28af96e1 (diff) |
Merge pull request #58733 from bruvzg/plist_locale
Diffstat (limited to 'platform/osx/export/export_plugin.cpp')
-rw-r--r-- | platform/osx/export/export_plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/osx/export/export_plugin.cpp b/platform/osx/export/export_plugin.cpp index 24b9bc02a2..4d0fc9add6 100644 --- a/platform/osx/export/export_plugin.cpp +++ b/platform/osx/export/export_plugin.cpp @@ -787,6 +787,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p String fname = tmp_app_path_name + "/Contents/Resources/en.lproj"; tmp_app_dir->make_dir_recursive(fname); FileAccessRef f = FileAccess::open(fname + "/InfoPlist.strings", FileAccess::WRITE); + f->store_line("CFBundleDisplayName = \"" + ProjectSettings::get_singleton()->get("application/config/name").operator String() + "\";"); } for (const String &E : translations) { @@ -795,6 +796,10 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p String fname = tmp_app_path_name + "/Contents/Resources/" + tr->get_locale() + ".lproj"; tmp_app_dir->make_dir_recursive(fname); FileAccessRef f = FileAccess::open(fname + "/InfoPlist.strings", FileAccess::WRITE); + String prop = "application/config/name_" + tr->get_locale(); + if (ProjectSettings::get_singleton()->has_setting(prop)) { + f->store_line("CFBundleDisplayName = \"" + ProjectSettings::get_singleton()->get(prop).operator String() + "\";"); + } } } } |