mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Implement the new alt text flow (bug 1909604)
For the Firefox pdf viewer, we want to use AI to guess an alt-text when adding an image to a pdf. For now the telemtry stuff is not implemented and will come soon. In order to test it locally: - set enableAltText, enableFakeMLManager and enableUpdatedAddImage to true. or in Firefox: - set browser.ml.enable, pdfjs.enableAltText and pdfjs.enableUpdatedAddImage to true.
This commit is contained in:
parent
8378c40f4c
commit
ed22d934e5
22 changed files with 1366 additions and 91 deletions
|
@ -416,3 +416,52 @@ pdfjs-editor-colorpicker-red =
|
|||
pdfjs-editor-highlight-show-all-button-label = Show all
|
||||
pdfjs-editor-highlight-show-all-button =
|
||||
.title = Show all
|
||||
|
||||
## New alt-text dialog
|
||||
## Group note for entire feature: Alternative text (alt text) helps when people can't see the image. This feature includes a tool to create alt text automatically using an AI model that works locally on the user's device to preserve privacy.
|
||||
|
||||
# Modal header positioned above a text box where users can edit the alt text.
|
||||
pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)
|
||||
|
||||
# Modal header positioned above a text box where users can add the alt text.
|
||||
pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)
|
||||
|
||||
pdfjs-editor-new-alt-text-textarea =
|
||||
.placeholder = Write your description here…
|
||||
|
||||
# This text refers to the alt text box above this description. It offers a definition of alt text.
|
||||
pdfjs-editor-new-alt-text-description = Short description for people who can’t see the image or when the image doesn’t load.
|
||||
|
||||
# This is a required legal disclaimer that refers to the automatically created text inside the alt text box above this text. It disappears if the text is edited by a human.
|
||||
pdfjs-editor-new-alt-text-disclaimer = This alt text was created automatically.
|
||||
pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more
|
||||
|
||||
pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically
|
||||
pdfjs-editor-new-alt-text-not-now-button = Not now
|
||||
pdfjs-editor-new-alt-text-error-title = Couldn’t create alt text automatically
|
||||
pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.
|
||||
pdfjs-editor-new-alt-text-error-close-button = Close
|
||||
|
||||
# Variables:
|
||||
# $totalSize (Number) - the total size (in MB) of the AI model.
|
||||
# $downloadedSize (Number) - the downloaded size (in MB) of the AI model.
|
||||
# $percent (Number) - the percentage of the downloaded size.
|
||||
pdfjs-editor-new-alt-text-ai-model-downloading-progress =
|
||||
.aria-valuemin = 0
|
||||
.aria-valuemax = { $totalSize }
|
||||
.aria-valuenow = { $downloadedSize }
|
||||
.aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
|
||||
|
||||
# This is a button that users can click to edit the alt text they have already added.
|
||||
pdfjs-editor-new-alt-text-added-button-label = Alt text added
|
||||
|
||||
# This is a button that users can click to open the alt text editor and add alt text when it is not present.
|
||||
pdfjs-editor-new-alt-text-missing-button-label = Missing alt text
|
||||
|
||||
# This is a button that opens up the alt text modal where users should review the alt text that was automatically generated.
|
||||
pdfjs-editor-new-alt-text-to-review-button-label = Review alt text
|
||||
|
||||
# "Created automatically" is a prefix that will be added to the beginning of any alt text that has been automatically generated. After the colon, the user will see/hear the actual alt text description. If the alt text has been edited by a human, this prefix will not appear.
|
||||
# Variables:
|
||||
# $generatedAltText (String) - the generated alt-text.
|
||||
pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue