summaryrefslogtreecommitdiffstats
path: root/editor/localization_editor.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-09-20 15:21:50 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-09-20 15:21:50 +0800
commitb1000d1830e2a0486a68e787d032ef5c2bc6a576 (patch)
tree47b2fc19987a1aa9d8266e637411b94c5712543f /editor/localization_editor.cpp
parent0a4aedb36065f66fc7e99cb2e6de3e55242f9dfb (diff)
downloadredot-engine-b1000d1830e2a0486a68e787d032ef5c2bc6a576.tar.gz
Don't list CSV as a valid extension for Translation resource
Diffstat (limited to 'editor/localization_editor.cpp')
-rw-r--r--editor/localization_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/localization_editor.cpp b/editor/localization_editor.cpp
index 6bc3a27a95..3c07e85758 100644
--- a/editor/localization_editor.cpp
+++ b/editor/localization_editor.cpp
@@ -37,7 +37,6 @@
#include "editor/filesystem_dock.h"
#include "editor/gui/editor_file_dialog.h"
#include "editor/pot_generator.h"
-#include "editor/themes/editor_scale.h"
#include "scene/gui/control.h"
void LocalizationEditor::_notification(int p_what) {
@@ -49,6 +48,7 @@ void LocalizationEditor::_notification(int p_what) {
List<String> tfn;
ResourceLoader::get_recognized_extensions_for_type("Translation", &tfn);
+ tfn.erase("csv"); // CSV is recognized by the resource importer to generate translation files, but it's not a translation file itself.
for (const String &E : tfn) {
translation_file_open->add_filter("*." + E);
}