PolyMeilex / rfd

Rusty File Dialog
MIT License
524 stars 60 forks source link

fix file picker text #175

Closed czf0613 closed 4 months ago

czf0613 commented 4 months ago

We are developing an application in zh_CN, but we find the "Open" and "Cancel" word in the file picker provided by rfd. Just like this photo:

284267999-8cdf20e5-25c7-46d8-bb1d-014b9374bc01

To fix this bug, I change the cstring into the null ptr, which will use the gtk's default i18n support, instead of using the "Select" or "Cancel" text. You can check the doc of GTK in this site: https://docs.gtk.org/gtk4/ctor.FileChooserNative.new.html

Thanks a million.

PolyMeilex commented 4 months ago

Thanks!