Tatoeba / tatoeba2

Tatoeba is a platform whose purpose is to create a collaborative and open dataset of sentences and their translations.
https://tatoeba.org
GNU Affero General Public License v3.0
678 stars 131 forks source link

Add "unknown" audio contributor text when author is null #3120

Closed cblanken closed 2 months ago

cblanken commented 2 months ago

This PR solves issue #2551 On the sentences/show/<id> page conditionally render "unknown" for the audio contributor field when an audio has no associated user.

Before

image

After

image

jiru commented 2 months ago

Great! I think it would look even better using an alternative text such as "unknown author" instead of "by unknown". "by unknown" feels like robot talk.

cblanken commented 2 months ago

Great! I think it would look even better using an alternative text such as "unknown author" instead of "by unknown". "by unknown" feels like robot talk.

@jiru do you mean I should remove the attribution text "by" as well like this? image

or add "author" to the existing text like this? image

I think it may also make sense to make the "unknown user" text red in contrast to the green text used for an existing user. Like this image

Thoughts?

jiru commented 2 months ago

do you mean I should remove the attribution text "by" as well like this?

Yes that’s what I meant. My point is that "by" is normally followed by a name or a pronoun, but "unknown" is not a name, it’s an adjective, so it sounds weird to me. If you want to keep "by", then "by an unknown author" is correct English I think. Sorry I’m just very picky when it comes to syntax :zany_face:

I think it may also make sense to make the "unknown user" text red in contrast to the green text used for an existing user.

I think plain red color should be limited to express serious warnings, danger etc. See for example how Github uses red in "Delete account" of https://github.com/settings/admin, "Delete" key button of https://github.com/settings/keys. In my opinion the absence of green and absence of hyperlink is appropriate to mean "something’s missing here".

jiru commented 2 months ago

Thank you :+1: