btzy / nativefiledialog-extended

Cross platform (Windows, Mac, Linux) native file dialog library with C and C++ bindings, based on mlabbe/nativefiledialog.
zlib License
598 stars 89 forks source link

All files wildcard filter description cannot be localized #93

Open jragan-work opened 1 year ago

jragan-work commented 1 year ago

I cannot find a way to change the default All files wildcard filter description to match my locale.

It looks like it was hard coded in all platform specific code. I can add my own wildcard filter and it functions properly, but it does not override the default: sample

btzy commented 1 year ago

Unfortunately, it is not possible to change that, since it is hardcoded. This behaviour was inherited from https://github.com/mlabbe/nativefiledialog, and on hindsight was a bad decision. There is also a similar issue in the titles of Linux dialogs (both GTK and Portals); they are hardcoded too.

This should be fixable by https://github.com/btzy/nativefiledialog-extended/issues/92, where we could make an NFD_OpenFileDialog_SetFilterList that doesn't automatically add the "All files" option (so the user can add it manually).