Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Improve the text version of a location message #7554

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Jan 17, 2022


This change is marked as an internal change (Task), so will not be included in the changelog.

Preview: https://61e539158eef0b36a9256ea2--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@andybalaam andybalaam added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jan 17, 2022
@andybalaam andybalaam requested a review from a team as a code owner January 17, 2022 09:34
Comment on lines +122 to +124
return `Shared location "${description}" (${uri} at ${date})`;
} else {
return `Location ${uri} at ${date}`;
return `Shared their location (${uri} at ${date})`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be internationalised, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be very jarred if I send a location on Web in Polish and open it on my phone and some random english text is shown instead

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's intentionally not internationalised, because the reader will be on a different client, with potentially-different locale.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the text description of the event, right? I don't really feel like Shared their location... is a good text representation.

I already have a PR (#7552) to fix the notifications

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fallback textual description, we normally internationalise them. Like if you're sending a file without a name we say Attachment in your own language, not always in English.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks I was obviously misinformed. Sorry for missing your change Simon, it looks much better!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks I was obviously misinformed. Sorry for missing your change Simon, it looks much better!

No worries!

@andybalaam andybalaam requested a review from t3chguy January 17, 2022 10:24
@andybalaam
Copy link
Member Author

Closing in favour of #7552.

@andybalaam andybalaam closed this Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants