-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Move Image Occlusion's "Camera" and "Gallery" out of "Select image" submenu #19396
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
Move Image Occlusion's "Camera" and "Gallery" out of "Select image" submenu #19396
Conversation
|
Important Maintainers: This PR contains Strings changes
|
19e52b8 to
8b5e1d5
Compare
lukstbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this and I think it's an improvement. Left below minor issues related to the appearance and the strings used.
| <string name="note_message">Note saved</string> | ||
| <string name="CardEditorCardDeck">Card deck:</string> | ||
| <string name="CardEditorNoteDeck">Deck:</string> | ||
| <string name="imageSelectionForOcclusionLabel">Image:</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to introduce a new string and we could use instead the backend string TR.notetypesIoSelectImage()(the actual text it produces is Select Image(needs sentence case)). It doesn't have ":" at the end but I don't think it's relevant anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Select Image, which is imperative form, is inconsistent with other labels here. It looks a bit odd to me.
Also, users come to the screen to add Image Occlusion note, so it is already clear for users that the screen (with the conspicuous buttons) is prompting them to select an image.
So, the minimal label "Image:" is sufficient; "Select Image" would be verbose here, IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
users come to the screen to add Image Occlusion note, so it is already clear for users that the screen (with the conspicuous buttons) is prompting them to select an image.
For those users, yes it's verbose(and mostly not important), but for someone new might be more useful.
Also this would avoid having to ask for translations for a string which kind of has a backend counterpart.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the backend string. This will be gone some day. Don't add extra work to the translators.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it okay to use a different backend string, notetypes-image ("Image"), not the "Select image"?
(Another reason, not yet explicitly mentioned above, why the use of the Select image here is undesirable is that it isn't consistent with the usage in the desktop version. In the context, the Select image merely means "Select an image from already-saved files", which is just equivalent to one of the actions here (i.e., "Gallery"). It doesn't imply pasting from the clipboard; it isn't a superordinate concept of the actions of buttons.
Using it as a superordinate label here would be kind of arbitrary deviation from the context and to be avoided as much as possible. It would be unnecessarily confusing.)
| <string name="CardEditorTags">Tags: %1$s</string> | ||
| <string name="CardEditorCards">Cards: %1$s</string> | ||
| <string name="edit_occlusions">Edit Occlusions</string> | ||
| <string name="clipboard_for_occlusions" comment="Button's label for pasting image from clipboard in Image Occlusion note type's Add screen" maxLength="28">Paste from clipboard</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chsnge not needed, use TR.editingFromClipboard() or the previous one TR.notetypesIoPasteImageFromClipboard()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't prefer either of them in this case.
TR.editingFromClipboard() (From clipboard) would lack consistency with "Gallery" (= it means 'From gallery') and "Camera" (= 'From camera'): it would be verbose in this case, and this inconsistency would bring no benefit to users.
TR.notetypesIoPasteImageFromClipboard() (Paste Image from Clipboard) would also be verbose here as the label already mentions "Image".
From a purely logical consistency standpoint, “Clipboard” would be appropriate, but I am a little concerned about whether the word ‘clipboard’ is familiar enough to common users, so I have left the word “paste,” which is probably more intuitive for them.
lukstbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, leaving the backend string discussion to the second reviewer.
| <string name="note_message">Note saved</string> | ||
| <string name="CardEditorCardDeck">Card deck:</string> | ||
| <string name="CardEditorNoteDeck">Deck:</string> | ||
| <string name="imageSelectionForOcclusionLabel">Image:</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
users come to the screen to add Image Occlusion note, so it is already clear for users that the screen (with the conspicuous buttons) is prompting them to select an image.
For those users, yes it's verbose(and mostly not important), but for someone new might be more useful.
Also this would avoid having to ask for translations for a string which kind of has a backend counterpart.
criticalAY
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still feel the string can be removed and we should one from backend rest is fine
|
Any chance we can change the shape of the buttons to make them larger We have a lot more space and could have much larger touch targets with icons. Don't let this block the PR, the current change is already an improvement |
|
I would merge this except:
|
|
Don't block on my comments, it's better to keep things moving |
|
@david-allison - agreed, my proposed concrete action for your comments was to peel to another issue, I think the strings thing is the real sticky point here. I don't feel comfortable just overriding the review suggestion from all the other reviewers, despite the defense. |
|
I or you may be misunderstanding something. I have merely been waiting for feedback (such as agreement or disagreement) from reviewers on the following alternative, which would use a possibly-closer-enough backend string:
Originally posted by @snowtimeglass in #19396 (comment) I have proposed that, assuming it can be in line with the reviewers' thoughts. |
|
@snowtimeglass ah! I think it is me that misunderstood that. I believe the main sticking point for other reviewers was that adding a string here vs from backend was unnecessary translator labor, therefore - if there is a backend string that is good enough (and the one you propose does seem good enough to me) - then using that backend string would free this up for merge in my opinion |
|
@mikehardy Thank you! I've updated this PR with the backend string. |
Probably, most users come to the "Add" screen of Image Occlusion note type screen just in order to use the "Camera" or the "Gallery" feature; moving these actions from the submenu to the top screen of the note editor is practical. Not only from the pragmatic point of view, but also from a theoretical standpoint, "Gallery" is equivalent to "Select image" in the desktop version, so "Camera" should be a separate option on the same level with "Gallery" and "Paste image from clipboard". In fact, in AnkiMobile, the three options are placed in the same hierarchy. (Besides, there is more than enough space on the current "Add" screen for Image Occlusion note type (the screen doesn't show deck selector, tag field, toolbar, and keyboard); adding more parts will rather improve the visual balance.)
fa53a66 to
1180cea
Compare
mikehardy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe all the review comment are addressed
I don't want to inadvertently make a taste error contra- to one of the prior reviewers
(as my taste is sometimes questionable, see #19381 ) - so asking for a re-review
lukstbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.
|
Maintainers: Please Sync Translations to produce a commit with only the automated changes from this PR. Read more about updating strings on the wiki, |


[edit from @mikehardy - see updated screenshot below https://github.com//pull/19396#issuecomment-3551240334 ]
Purpose / Description
(Screenshots of one of recent

main: 4c812d)Probably, most users come to the "Add" screen of Image Occlusion note type just in order to use the "Camera" or the "Gallery" feature; moving these actions from the submenu to the top screen of the note editor is practical.
Not only from the pragmatic point of view, but also from a theoretical standpoint, "Gallery" is equivalent to "Select image" in the desktop version, so "Camera" should be a separate option on the same level with "Gallery" and "Paste image from clipboard". In fact, in AnkiMobile, the three options are placed in the same hierarchy.
(Besides, there is more than enough space on the current "Add" screen for Image Occlusion note type (the screen doesn't show deck selector, tag field, toolbar, and keyboard); adding more parts will rather improve the visual balance.)

Approach
How Has This Been Tested?
Checked on a physical device (Android 15)
Checklist