Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix Vue template parse error: drop the {regular} object argument from the t() call in the over-limit video warning so the inner braces don't clash with Vue's outer interpolation delimiters; replace the message in all 7 locales with a self-contained string that doesn't need the size parameter

Murtaza Nasir79e7ae84c9f3
diff --git a/static/locales/de.json b/static/locales/de.json
index 2cc58bdc..9dddd370 100644
--- a/static/locales/de.json
+++ b/static/locales/de.json
@@ -1538,7 +1538,7 @@
"keepAudioOnlySubtitleOff": "Videostream verwerfen",
"keepAudioOnlySubtitleOn": "Video verworfen",
"keepAudioOnlyLargerAllowed": "Größere Uploads erlaubt",
- "enableKeepAudioOnlyForLargeVideo": "Über dem normalen Limit von {{regular}} MB. Aktiviere unten „Nur Audio behalten\", um dieses Video hochzuladen."
+ "enableKeepAudioOnlyForLargeVideo": "Über dem normalen Limit. Aktiviere unten „Nur Audio behalten\", um dieses Video hochzuladen."
},
"uploadProgress": {
"title": "Upload-Fortschritt"
diff --git a/static/locales/en.json b/static/locales/en.json
index c987d2ed..c461b9bf 100644
--- a/static/locales/en.json
+++ b/static/locales/en.json
@@ -1547,7 +1547,7 @@
"keepAudioOnlySubtitleOff": "Drop video stream",
"keepAudioOnlySubtitleOn": "Video dropped",
"keepAudioOnlyLargerAllowed": "Larger uploads allowed",
- "enableKeepAudioOnlyForLargeVideo": "Over the {{regular}} MB regular limit. Enable \"Keep audio only\" below to upload this video."
+ "enableKeepAudioOnlyForLargeVideo": "Over the regular size limit. Enable \"Keep audio only\" below to upload this video."
},
"uploadProgress": {
"title": "Upload Progress"
diff --git a/static/locales/es.json b/static/locales/es.json
index b41d0be3..fd2d65ad 100644
--- a/static/locales/es.json
+++ b/static/locales/es.json
@@ -1538,7 +1538,7 @@
"keepAudioOnlySubtitleOff": "Descartar el vídeo",
"keepAudioOnlySubtitleOn": "Vídeo descartado",
"keepAudioOnlyLargerAllowed": "Se permiten subidas más grandes",
- "enableKeepAudioOnlyForLargeVideo": "Supera el límite habitual de {{regular}} MB. Activa «Conservar solo el audio» abajo para subir este vídeo."
+ "enableKeepAudioOnlyForLargeVideo": "Supera el límite habitual. Activa «Conservar solo el audio» abajo para subir este vídeo."
},
"uploadProgress": {
"title": "Progreso de Carga"
diff --git a/static/locales/fr.json b/static/locales/fr.json
index 2ad2bcbf..a17055af 100644
--- a/static/locales/fr.json
+++ b/static/locales/fr.json
@@ -1538,7 +1538,7 @@
"keepAudioOnlySubtitleOff": "Supprimer le flux vidéo",
"keepAudioOnlySubtitleOn": "Vidéo supprimée",
"keepAudioOnlyLargerAllowed": "Envois plus volumineux autorisés",
- "enableKeepAudioOnlyForLargeVideo": "Dépasse la limite normale de {{regular}} Mo. Activez « Conserver uniquement l’audio » ci-dessous pour envoyer cette vidéo."
+ "enableKeepAudioOnlyForLargeVideo": "Au-delà de la limite normale. Activez « Conserver uniquement l’audio » ci-dessous pour envoyer cette vidéo."
},
"uploadProgress": {
"title": "Progression du Téléchargement"
diff --git a/static/locales/pt-BR.json b/static/locales/pt-BR.json
index 97eaa86d..f1889293 100644
--- a/static/locales/pt-BR.json
+++ b/static/locales/pt-BR.json
@@ -1538,7 +1538,7 @@
"keepAudioOnlySubtitleOff": "Descartar o vídeo",
"keepAudioOnlySubtitleOn": "Vídeo descartado",
"keepAudioOnlyLargerAllowed": "Envios maiores permitidos",
- "enableKeepAudioOnlyForLargeVideo": "Excede o limite habitual de {{regular}} MB. Ative “Manter apenas o áudio” abaixo para enviar este vídeo."
+ "enableKeepAudioOnlyForLargeVideo": "Excede o limite habitual. Ative “Manter apenas o áudio” abaixo para enviar este vídeo."
},
"uploadProgress": {
"title": "Progresso do Envio"
diff --git a/static/locales/ru.json b/static/locales/ru.json
index 9ad36b23..af14a993 100644
--- a/static/locales/ru.json
+++ b/static/locales/ru.json
@@ -1538,7 +1538,7 @@
"keepAudioOnlySubtitleOff": "Отбросить видео",
"keepAudioOnlySubtitleOn": "Видео отброшено",
"keepAudioOnlyLargerAllowed": "Допустимы более крупные загрузки",
- "enableKeepAudioOnlyForLargeVideo": "Превышает обычный лимит в {{regular}} МБ. Включите «Сохранить только аудио» ниже, чтобы загрузить это видео."
+ "enableKeepAudioOnlyForLargeVideo": "Превышает обычный лимит. Включите «Сохранить только аудио» ниже, чтобы загрузить это видео."
},
"uploadProgress": {
"title": "Прогресс загрузки"
diff --git a/static/locales/zh.json b/static/locales/zh.json
index fa477ecc..313bd668 100644
--- a/static/locales/zh.json
+++ b/static/locales/zh.json
@@ -1538,7 +1538,7 @@
"keepAudioOnlySubtitleOff": "丢弃视频流",
"keepAudioOnlySubtitleOn": "已丢弃视频",
"keepAudioOnlyLargerAllowed": "允许更大文件",
- "enableKeepAudioOnlyForLargeVideo": "超过 {{regular}} MB 的常规限制。请在下方启用“仅保留音频”后再上传此视频。"
+ "enableKeepAudioOnlyForLargeVideo": "超过常规大小限制。请在下方启用“仅保留音频”后再上传此视频。"
},
"uploadProgress": {
"title": "上传进度"
diff --git a/templates/components/upload-view.html b/templates/components/upload-view.html
index 3930203f..5a49ea21 100644
--- a/templates/components/upload-view.html
+++ b/templates/components/upload-view.html
@@ -63,7 +63,7 @@
&& item.file.size > maxFileSizeMB * 1024 * 1024"
class="flex items-center gap-1 pl-5 text-[10px] text-amber-700 dark:text-amber-400">
<i class="fas fa-exclamation-triangle"></i>
- <span>${ t('upload.enableKeepAudioOnlyForLargeVideo', { regular: maxFileSizeMB }) }</span>
+ <span>${ t('upload.enableKeepAudioOnlyForLargeVideo') }</span>
</div>
</div>
</div>