Skip to content

Commit b1000d1

Browse files
committed
Don't list CSV as a valid extension for Translation resource
1 parent 0a4aedb commit b1000d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/localization_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "editor/filesystem_dock.h"
3838
#include "editor/gui/editor_file_dialog.h"
3939
#include "editor/pot_generator.h"
40-
#include "editor/themes/editor_scale.h"
4140
#include "scene/gui/control.h"
4241

4342
void LocalizationEditor::_notification(int p_what) {
@@ -49,6 +48,7 @@ void LocalizationEditor::_notification(int p_what) {
4948

5049
List<String> tfn;
5150
ResourceLoader::get_recognized_extensions_for_type("Translation", &tfn);
51+
tfn.erase("csv"); // CSV is recognized by the resource importer to generate translation files, but it's not a translation file itself.
5252
for (const String &E : tfn) {
5353
translation_file_open->add_filter("*." + E);
5454
}

0 commit comments

Comments
 (0)