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

Improve the text version of a location message #7554

Conversation

andybalaam
Copy link
Contributor

@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
Contributor 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
Contributor 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
Copy link
Contributor Author

Closing in favour of #7552.

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

Successfully merging this pull request may close these issues.

None yet

3 participants