From d6b36e800dfa8970c6bdeab2ed9a0e027e30068b Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Thu, 2 Mar 2023 14:38:59 +0800 Subject: Improve POT Generation dialog * Avoid "property not found" warnings when adding a file for the first time. * When no file is added, disable the Generate POT button instead of printing a warning. (cherry picked from commit 584136271cf92b7731f82dce22c4e99075b9b5d7) --- core/config/project_settings.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/config/project_settings.cpp b/core/config/project_settings.cpp index ac51380c30..123e01860e 100644 --- a/core/config/project_settings.cpp +++ b/core/config/project_settings.cpp @@ -1348,6 +1348,7 @@ ProjectSettings::ProjectSettings() { GLOBAL_DEF_INTERNAL("application/config/features", PackedStringArray()); GLOBAL_DEF_INTERNAL("internationalization/locale/translation_remaps", PackedStringArray()); GLOBAL_DEF_INTERNAL("internationalization/locale/translations", PackedStringArray()); + GLOBAL_DEF_INTERNAL("internationalization/locale/translations_pot_files", PackedStringArray()); } ProjectSettings::~ProjectSettings() { -- cgit v1.2.3