-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Explain double-click behaviour on tool tip #7717
Explain double-click behaviour on tool tip #7717
Conversation
The localization logic will override this, so this change is incomplete. Instead, you need to edit https://github.com/mozilla/pdf.js/blob/master/l10n/en-US/viewer.properties#L102 and change that to Fixes #7713. |
We might need to change the L10n ID (from /cc @yurydelendik @Snuffleupagus What do you think? |
@timvandermeij That's what I did on a local version of this patch, but then I read in contribution guide:
My reading was that the patch won't be accepted as it'd be overwritten anyway. I'm happy to push that version instead. What do you think? |
As explained in https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_content_best_practices#Changing_existing_strings, you _must always_ update the l10n
Provided that we actually want to change the tooltip unconditionally like this PR suggest, I'm not really sure about the wording used here. |
I agree with the @jeenuv Everything except for the |
a010c53
to
6e51163
Compare
I've updated the PR. Please check. |
This looks better, but we need to change |
6e51163
to
1b53510
Compare
@@ -99,8 +99,8 @@ print_progress_close=Cancel | |||
# tooltips) | |||
toggle_sidebar.title=Toggle Sidebar | |||
toggle_sidebar_label=Toggle Sidebar | |||
outline.title=Show Document Outline | |||
outline_label=Document Outline | |||
document_outline_label=Show Document Outline (double-click to expand/collapse all items) |
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 label and title IDs must be swapped, i.e., this should be the title, just like before.
@@ -81,8 +81,8 @@ | |||
<button id="viewThumbnail" class="toolbarButton group toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs"> | |||
<span data-l10n-id="thumbs_label">Thumbnails</span> | |||
</button> | |||
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline"> | |||
<span data-l10n-id="outline_label">Document Outline</span> | |||
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="outline"> |
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 data-l10n-id
in this line should also be document_outline
.
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline"> | ||
<span data-l10n-id="outline_label">Document Outline</span> | ||
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="outline"> | ||
<span data-l10n-id="document_outline.title">Document Outline</span> |
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 label ID must be used here, just like before, so this should be document_outline_label
.
1b53510
to
088a071
Compare
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.
Looks good to me after this last change.
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline" tabindex="3" data-l10n-id="outline"> | ||
<span data-l10n-id="outline_label">Document Outline</span> | ||
<button id="viewOutline" class="toolbarButton group" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline"> | ||
<span data-l10n-id="document_outline_label">Outline</span> |
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.
Revert the changes on this line except for the data-l10n-id
change. The extra space is not necessary as we indent everything with two spaces and the text should remain the same as in the L10n file.
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.
Ah, sorry - that must be my editor!
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 word Document
has disappeared in this line, so that needs to be put back. Therefore, this line should be:
<span data-l10n-id="document_outline_label">Document Outline</span>
088a071
to
c65175c
Compare
The outline toggle button has a feature where it can be double-clicked to expand/collapse all items shown therein. Although this is described in the FAQ, can go potentially unnoticed. This, however, being a useful feature, advertise on the tool tip itself. l10n translation for en-US and IDs updated. Signed-off-by: Jeenu Viswambharan <[email protected]>
c65175c
to
f2dcacd
Compare
Boy, can't I make a proper commit?! Hopefully I get this one right. Thanks for your patience. |
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/cff023856a665e1/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/cff023856a665e1/output.txt Total script time: 1.91 mins Published |
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.
Looks good to me. Since this is a change that affects upstream work for translations, could you merge this if you like it as well, @yurydelendik?
Thank you! |
Explain double-click behaviour on tool tip
The outline toggle button has a feature where it can be double-clicked
to expand/collapse all items shown therein. Although this is described
in the FAQ, can go potentially unnoticed. This, however, being a useful
feature, advertise on the tool tip itself.
l10n translations are untouched.
Signed-off-by: Jeenu Viswambharan [email protected]