Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Name Validator Improvements #13577

Merged
merged 8 commits into from
Sep 18, 2024
Merged

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Sep 16, 2024

  • Tests written, or not not needed

@alperozturk96 alperozturk96 linked an issue Sep 16, 2024 that may be closed by this pull request
app/src/main/res/values/strings.xml Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@alperozturk96 alperozturk96 dismissed ZetaTom’s stale review September 18, 2024 07:35

not valid anymore. The community has already approved the first version

@ZetaTom
Copy link
Collaborator

ZetaTom commented Sep 18, 2024

@alperozturk96, first of all, my review is not invalidated because someone else has approved something. In fact, it is still valid, as the concerns raised in my comments still hold true.

To prove my point, I'll elaborate: as the string is set with this pull request, it suggests that no spaces shall be contained in any filename. This is a valid interpretation of A space character is not allowed in file names.

Obviously this isn't true, as you can still have a file called This Filename Contains Spaces.md. Because this is a perfectly valid filename, I would suggest rephrasing this sentence to reflect the real problem, the trailing spaces. So I suggested the following phrase instead: Filenames must not contain any trailing spaces, as this accurately reflects the problem and tells the user how to fix it.

So I ask you to please, simply, reconsider my review.

@alperozturk96
Copy link
Collaborator Author

alperozturk96 commented Sep 18, 2024

@ZetaTom I think your suggestion touches on another detail and is not quite right. Because "Filenames must not contain any trailing or leading spaces" not just trailing.

Feedback was received from the “Mobile apps public” (Transifex) channel regarding the mentioned translations, and their current versions were accepted.

I have no problem with either the translations you suggested or the previously approved translations. Both are suitable for me. There is an approved translation in place, and we need to consult the translators again based on your suggestion. Because the first approval was based on another translation, it would be more appropriate to ask them to review again for the new translation.

I don’t find it appropriate to portray even a single translation as a major issue. I cannot have back-and-forth exchanges between you and the translators. Such attitudes only slow us down and contribute negatively rather than positively. I don’t think engaging in lengthy arguments here will be beneficial.

As previously mentioned, I don’t believe the initial suggestion would be a massive problem for users. And I would say the most recent suggestion improves the original translation. @rakekniven @tobiasKaminsky

@rakekniven
Copy link
Member

I adapted this single change and kindly ask for merging.

Copy link

Codacy

Lint

TypemasterPR
Warnings5959
Errors33

SpotBugs

CategoryBaseNew
Bad practice6464
Correctness6363
Dodgy code297297
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness66
Performance5353
Security1818
Total510510

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/13577.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@alperozturk96 alperozturk96 merged commit b0fc628 into master Sep 18, 2024
21 checks passed
@alperozturk96 alperozturk96 deleted the file-name-validator-improvements branch September 18, 2024 18:56
@AndyScherzinger
Copy link
Member

/backport to stable-3.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(i18n): Not understandable English
5 participants