Skip to content

Conversation

amire80
Copy link
Collaborator

@amire80 amire80 commented Oct 9, 2025

This fixes #6466.

Also fix the messages themselves a bit:

  • Removed "successfully" from the success message. This word is usually redundant, because the message already says that it was done. (In MediaWiki, there's a specific convention about it: Avoid_jargon_and_slang.)
  • Added a missing preposition to the failure message.

Till now, I've made a bunch of rather trivial localization fixes in this repo, but this is the first time I'm sending actual Kotlin code, so please:

  1. Be careful in review!
  2. Be gentle with me! :)

Tests performed (required)

I ran it in the emulator in Android Studio, sent thanks to a user, and it appeared with the correct username.

amire80 and others added 2 commits October 9, 2025 10:15
This fixes commons-app#6466.

Also fix the messages themselves a bit:
* Removed "successfully" from the success message. This word
  is usually redundant, because the message already says that it
  was done. (In MediaWiki, there's a specific convention about it:
  https://www.mediawiki.org/wiki/Help:System_message#Avoid_jargon_and_slanghttps://www.mediawiki.org/wiki/Help:System_message#Avoid_jargon_and_slang
)
* Added a missing preposition to the failure message.
Copy link

✅ Generated APK variants!

@nicolas-raoul
Copy link
Member

I just tested.
The app shows two toasts, the first "Sending thanks for " and the second "Sent thanks to ".
Is that the ideal behavior?
I have no strong opinion on this and let you decide. :-)

Not sure how to simulate an error, with no Internet the button does not react. But otherwise it works, so I assume both should be OK.

@amire80
Copy link
Collaborator Author

amire80 commented Oct 10, 2025

Yeah, I think it makes sense that it's "for" in one message and "to" in the others.

@nicolas-raoul nicolas-raoul merged commit dd1814c into commons-app:main Oct 11, 2025
1 check passed
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.

[Bug]: "Thanks sent" toast shows the image name instead of the uploader name

2 participants