mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[Editor] Fix l10n issues
Remove the strings containing only a variable.
This commit is contained in:
parent
501da85222
commit
63d0fa5733
3 changed files with 6 additions and 5 deletions
|
@ -447,9 +447,6 @@ pdfjs-editor-new-alt-text-error-close-button = Close
|
||||||
# $downloadedSize (Number) - the downloaded 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.
|
# $percent (Number) - the percentage of the downloaded size.
|
||||||
pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
|
pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
|
||||||
.aria-valuemin = 0
|
|
||||||
.aria-valuemax = { $totalSize }
|
|
||||||
.aria-valuenow = { $downloadedSize }
|
|
||||||
.aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)
|
.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.
|
# This is a button that users can click to edit the alt text they have already added.
|
||||||
|
|
|
@ -299,9 +299,13 @@ class NewAltTextManager {
|
||||||
totalLoaded = Math.min(0.99 * total, totalLoaded);
|
totalLoaded = Math.min(0.99 * total, totalLoaded);
|
||||||
|
|
||||||
// Update the progress.
|
// Update the progress.
|
||||||
|
const totalSize = (this.#downloadModelDescription.ariaValueMax =
|
||||||
|
Math.round(total / ONE_MEGA_BYTES));
|
||||||
|
const downloadedSize = (this.#downloadModelDescription.ariaValueNow =
|
||||||
|
Math.round(totalLoaded / ONE_MEGA_BYTES));
|
||||||
this.#downloadModelDescription.setAttribute(
|
this.#downloadModelDescription.setAttribute(
|
||||||
"data-l10n-args",
|
"data-l10n-args",
|
||||||
`{"totalSize": ${Math.round(total / ONE_MEGA_BYTES)}, "downloadedSize": ${Math.round(totalLoaded / ONE_MEGA_BYTES)}}`
|
JSON.stringify({ totalSize, downloadedSize })
|
||||||
);
|
);
|
||||||
if (!finished) {
|
if (!finished) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -576,7 +576,7 @@ See https://github.com/adobe-type-tools/cmap-resources
|
||||||
<label for="newAltTextCreateAutomaticallyButton" class="togglerLabel" data-l10n-id="pdfjs-editor-new-alt-text-create-automatically-button-label">Create alt text automatically</label>
|
<label for="newAltTextCreateAutomaticallyButton" class="togglerLabel" data-l10n-id="pdfjs-editor-new-alt-text-create-automatically-button-label">Create alt text automatically</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="newAltTextDownloadModel" class="hidden">
|
<div id="newAltTextDownloadModel" class="hidden">
|
||||||
<span id="newAltTextDownloadModelDescription" data-l10n-id="pdfjs-editor-new-alt-text-ai-model-downloading-progress" data-l10n-args='{ "totalSize": 0, "downloadedSize": 0 }'>Downloading alt text AI model (0 of 0 MB)</span>
|
<span id="newAltTextDownloadModelDescription" data-l10n-id="pdfjs-editor-new-alt-text-ai-model-downloading-progress" aria-valuemin="0" data-l10n-args='{ "totalSize": 0, "downloadedSize": 0 }'>Downloading alt text AI model (0 of 0 MB)</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="newAltTextImagePreview"></div>
|
<div id="newAltTextImagePreview"></div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue