1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[Editor] Fix l10n issues

Remove the strings containing only a variable.
This commit is contained in:
Calixte Denizet 2024-08-02 09:28:57 +02:00
parent 501da85222
commit 63d0fa5733
3 changed files with 6 additions and 5 deletions

View file

@ -299,9 +299,13 @@ class NewAltTextManager {
totalLoaded = Math.min(0.99 * total, totalLoaded);
// 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(
"data-l10n-args",
`{"totalSize": ${Math.round(total / ONE_MEGA_BYTES)}, "downloadedSize": ${Math.round(totalLoaded / ONE_MEGA_BYTES)}}`
JSON.stringify({ totalSize, downloadedSize })
);
if (!finished) {
return;

View file

@ -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>
</div>
<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 id="newAltTextImagePreview"></div>