summaryrefslogtreecommitdiffstats
path: root/editor/pot_generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pot_generator.cpp')
-rw-r--r--editor/pot_generator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pot_generator.cpp b/editor/pot_generator.cpp
index f70a795683..9428d29088 100644
--- a/editor/pot_generator.cpp
+++ b/editor/pot_generator.cpp
@@ -55,7 +55,9 @@ void POTGenerator::_print_all_translation_strings() {
#endif
void POTGenerator::generate_pot(const String &p_file) {
- if (!ProjectSettings::get_singleton()->has_setting("internationalization/locale/translations_pot_files")) {
+ Vector<String> files = GLOBAL_GET("internationalization/locale/translations_pot_files");
+
+ if (files.is_empty()) {
WARN_PRINT("No files selected for POT generation.");
return;
}
@@ -63,8 +65,6 @@ void POTGenerator::generate_pot(const String &p_file) {
// Clear all_translation_strings of the previous round.
all_translation_strings.clear();
- Vector<String> files = GLOBAL_GET("internationalization/locale/translations_pot_files");
-
// Collect all translatable strings according to files order in "POT Generation" setting.
for (int i = 0; i < files.size(); i++) {
Vector<String> msgids;