Skip to content

Conversation

@KonerDev
Copy link
Member

@KonerDev KonerDev commented Sep 9, 2025

Description

This PR replaces hardcoded strings in the file action dialog with references to the appropriate XML string resources. This improves localization support.

Changes:

Clarification

  1. However, I'm not sure about the FileType info row in the file info dialog. Why would you display the name of the file's corresponding Java class to the user? Isn't this unnecessary because the Type info row already exists?
grafik
  1. I also used all the XML resources that already existed (Were all these unused XML strings already prepared for this refactor?), one of them is file_size, it might be better to abbreviate it to size, since all the other strings do not start with file_ either.

@RohitKushvaha01 RohitKushvaha01 merged commit cd04af7 into Xed-Editor:main Sep 10, 2025
@RohitKushvaha01
Copy link
Member

FileType represents a wrapper class: native files use FileWrapper, and files accessed through SAF use UriWrapper. Sometimes it's important to know which type we're working with, since they behave a little differently.

@KonerDev
Copy link
Member Author

FileType represents a wrapper class: native files use FileWrapper, and files accessed through SAF use UriWrapper. Sometimes it's important to know which type we're working with, since they behave a little differently.

Maybe we should then rename it to e.g. WrapperType. Because it's not really a proper file type (txt, png, ...)

@KonerDev KonerDev deleted the feature/strings-refactor branch October 1, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants