Skip to content

Commit

Permalink
Merge pull request godotengine#97222 from timothyqiu/csv-not-translation
Browse files Browse the repository at this point in the history
Don't list CSV as a valid extension for `Translation` resource
  • Loading branch information
akien-mga committed Sep 20, 2024
2 parents 34dd5e0 + b1000d1 commit 8ea7f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/localization_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}
Expand Down

0 comments on commit 8ea7f5e

Please sign in to comment.