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

Mobile: Share screen: Update headings and labels for consistency with desktop #10395

Conversation

personalizedrefrigerator
Copy link
Collaborator

Summary

As requested elsewhere, this pull request updates the UI strings in the "accept share" screen to be closer to those used on desktop. As there is no analogous screen on desktop, with the exception of "leave notebook", the changed UI strings are still new.

Screenshot

Before:
screenshot: Headers are "incoming shares" and "accepted shares", button under "accepted share" is "leave share"

After:
screenshot: Headers are "incoming invitations" and "accepted invitations", button under an accepted invitation is "leave notebook"

Other possibility

The below screenshot uses "New" and "Accepted" headers. While "Accepted" is a new string, "New" already has a translation.

screenshot

@personalizedrefrigerator personalizedrefrigerator changed the title Chore: Mobile: Share screen: Update UI strings Mobile: Share screen: Update headings and labels for consistency with desktop May 2, 2024
@@ -64,7 +64,7 @@ const AcceptedShareItem: React.FC<Props> = props => {
} catch (error) {
logger.error('Failed to leave share', error);
await shim.showMessageBox(
_('Failed to leave share. Please verify that Joplin is connected to the internet and able to sync.\nError: %s', error),
_('Failed to leave shared notebook. Please verify that Joplin is connected to the internet and able to sync.\nError: %s', error),
Copy link
Owner

Choose a reason for hiding this comment

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

Actually I think we should try to keep our error messages a bit simpler to make translation easier

Most of them will never be seen by the user and the error that was thrown should be sufficiently descriptive and if it's not that's when we start improving error messages.

But we should start with something simple, like I've done in the desktop implementation. Just Error: %s is enough most of the time

@laurent22 laurent22 merged commit f764e76 into laurent22:dev May 7, 2024
10 checks 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.

None yet

2 participants