From 59765e81b83cee47babc56bdff8036aeeaf47152 Mon Sep 17 00:00:00 2001 From: Jeremy Press Date: Fri, 2 Jun 2017 13:58:34 -0700 Subject: [PATCH] Update: Displaying file type unsupported error (#163) * Displays if no loader can be found. * Updating i18n names for clarity --- src/i18n/da-DK.properties | 4 ++-- src/i18n/de-DE.properties | 4 ++-- src/i18n/en-AU.properties | 4 ++-- src/i18n/en-CA.properties | 4 ++-- src/i18n/en-GB.properties | 4 ++-- src/i18n/en-US.properties | 4 ++-- src/i18n/es-ES.properties | 4 ++-- src/i18n/fi-FI.properties | 4 ++-- src/i18n/fr-CA.properties | 4 ++-- src/i18n/fr-FR.properties | 4 ++-- src/i18n/it-IT.properties | 4 ++-- src/i18n/ja-JP.properties | 4 ++-- src/i18n/ko-KR.properties | 4 ++-- src/i18n/nb-NO.properties | 4 ++-- src/i18n/nl-NL.properties | 4 ++-- src/i18n/pl-PL.properties | 4 ++-- src/i18n/pt-BR.properties | 4 ++-- src/i18n/ru-RU.properties | 4 ++-- src/i18n/sv-SE.properties | 4 ++-- src/i18n/tr-TR.properties | 4 ++-- src/i18n/zh-CN.properties | 4 ++-- src/i18n/zh-TW.properties | 4 ++-- src/lib/Preview.js | 3 ++- src/lib/viewers/box3d/image360/Image360Loader.js | 2 +- src/lib/viewers/box3d/model3d/Model3DLoader.js | 2 +- src/lib/viewers/box3d/model3d/Model3DRenderer.js | 2 +- src/lib/viewers/box3d/video360/Video360Loader.js | 2 +- src/lib/viewers/media/MediaLoader.js | 2 +- 28 files changed, 51 insertions(+), 50 deletions(-) diff --git a/src/i18n/da-DK.properties b/src/i18n/da-DK.properties index 34d1b6707..92eaaf2a0 100644 --- a/src/i18n/da-DK.properties +++ b/src/i18n/da-DK.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Vi beklager, eksempelvisningen kunne ikke indlæses. Upload filen igen, eller kontakt Box Support. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Vi beklager, din browser understøtter ikke eksempelvisning for {1}. +error_browser_unsupported=Vi beklager, din browser understøtter ikke eksempelvisning for {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Vi beklager, dette filformat er ikke understøttet. +error_file_type_unsupported=Vi beklager, dette filformat er ikke understøttet. # Preview error message shown when an iWork file is previewed error_iwork=Beklager, iWork-filer understøttes ikke for øjeblikket. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/de-DE.properties b/src/i18n/de-DE.properties index 1dd903c91..08bac964a 100644 --- a/src/i18n/de-DE.properties +++ b/src/i18n/de-DE.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Die Vorschau konnte leider nicht geladen werden. Laden Sie die Datei bitte erneut hoch oder wenden Sie sich an den Support von Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Leider ist es mit Ihrem Browser nicht möglich, eine Vorschau für {1} anzuzeigen. +error_browser_unsupported=Leider ist es mit Ihrem Browser nicht möglich, eine Vorschau für {1} anzuzeigen. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Leider wird dieses Dateiformat nicht unterstützt. +error_file_type_unsupported=Leider wird dieses Dateiformat nicht unterstützt. # Preview error message shown when an iWork file is previewed error_iwork=Leider werden iWork-Dateien derzeit nicht unterstützt. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/en-AU.properties b/src/i18n/en-AU.properties index 22df506e3..79dbfe729 100644 --- a/src/i18n/en-AU.properties +++ b/src/i18n/en-AU.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=We're sorry, the preview didn't load. Please re-upload the file or contact Box support. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=We're sorry, your browser doesn't support preview for {1}. +error_browser_unsupported=We're sorry, your browser doesn't support preview for {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=We're sorry, this file format is not supported. +error_file_type_unsupported=We're sorry, this file format is not supported. # Preview error message shown when an iWork file is previewed error_iwork=We're sorry, iWork files are not currently supported. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/en-CA.properties b/src/i18n/en-CA.properties index 22df506e3..79dbfe729 100644 --- a/src/i18n/en-CA.properties +++ b/src/i18n/en-CA.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=We're sorry, the preview didn't load. Please re-upload the file or contact Box support. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=We're sorry, your browser doesn't support preview for {1}. +error_browser_unsupported=We're sorry, your browser doesn't support preview for {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=We're sorry, this file format is not supported. +error_file_type_unsupported=We're sorry, this file format is not supported. # Preview error message shown when an iWork file is previewed error_iwork=We're sorry, iWork files are not currently supported. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/en-GB.properties b/src/i18n/en-GB.properties index 22df506e3..79dbfe729 100644 --- a/src/i18n/en-GB.properties +++ b/src/i18n/en-GB.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=We're sorry, the preview didn't load. Please re-upload the file or contact Box support. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=We're sorry, your browser doesn't support preview for {1}. +error_browser_unsupported=We're sorry, your browser doesn't support preview for {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=We're sorry, this file format is not supported. +error_file_type_unsupported=We're sorry, this file format is not supported. # Preview error message shown when an iWork file is previewed error_iwork=We're sorry, iWork files are not currently supported. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/en-US.properties b/src/i18n/en-US.properties index 22df506e3..79dbfe729 100644 --- a/src/i18n/en-US.properties +++ b/src/i18n/en-US.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=We're sorry, the preview didn't load. Please re-upload the file or contact Box support. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=We're sorry, your browser doesn't support preview for {1}. +error_browser_unsupported=We're sorry, your browser doesn't support preview for {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=We're sorry, this file format is not supported. +error_file_type_unsupported=We're sorry, this file format is not supported. # Preview error message shown when an iWork file is previewed error_iwork=We're sorry, iWork files are not currently supported. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/es-ES.properties b/src/i18n/es-ES.properties index 73b2277d3..b6284f021 100644 --- a/src/i18n/es-ES.properties +++ b/src/i18n/es-ES.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Lo sentimos, la previsualización no se ha cargado. Vuelva a cargar el archivo o póngase en contacto con el servicio de soporte de Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Lo sentimos, su navegador no es compatible con la previsualización de {1}. +error_browser_unsupported=Lo sentimos, su navegador no es compatible con la previsualización de {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Lo sentimos, este formato de archivo no es compatible. +error_file_type_unsupported=Lo sentimos, este formato de archivo no es compatible. # Preview error message shown when an iWork file is previewed error_iwork=Lo sentimos, los archivos de iWork no son compatibles actualmente. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/fi-FI.properties b/src/i18n/fi-FI.properties index 5d7eeb0d1..a20027b61 100644 --- a/src/i18n/fi-FI.properties +++ b/src/i18n/fi-FI.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Esikatselua ei voitu ladata. Lataa tiedosto uudelleen tai ota yhteys Boxin tukipalveluun. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Selaimesi ei tue tiedostotyypin {1} esikatselua. +error_browser_unsupported=Selaimesi ei tue tiedostotyypin {1} esikatselua. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Tätä tiedostomuotoa ei tueta. +error_file_type_unsupported=Tätä tiedostomuotoa ei tueta. # Preview error message shown when an iWork file is previewed error_iwork=iWork-tiedostomuotoa ei tueta. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/fr-CA.properties b/src/i18n/fr-CA.properties index 1ec18cb15..344df52e8 100644 --- a/src/i18n/fr-CA.properties +++ b/src/i18n/fr-CA.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Veuillez de nouveau charger le fichier ou contacter l'assistance Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}. +error_browser_unsupported=Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Nous sommes désolés, ce format de fichier n'est pas pris en charge. +error_file_type_unsupported=Nous sommes désolés, ce format de fichier n'est pas pris en charge. # Preview error message shown when an iWork file is previewed error_iwork=Nous sommes désolés, les fichiers iWork ne sont pas pris en charge pour le moment. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/fr-FR.properties b/src/i18n/fr-FR.properties index 1ec18cb15..344df52e8 100644 --- a/src/i18n/fr-FR.properties +++ b/src/i18n/fr-FR.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Nous sommes désolés, nous n'avons pas pu charger la prévisualisation. Veuillez de nouveau charger le fichier ou contacter l'assistance Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}. +error_browser_unsupported=Nous sommes désolés, votre navigateur ne prend pas en charge la prévisualisation pour {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Nous sommes désolés, ce format de fichier n'est pas pris en charge. +error_file_type_unsupported=Nous sommes désolés, ce format de fichier n'est pas pris en charge. # Preview error message shown when an iWork file is previewed error_iwork=Nous sommes désolés, les fichiers iWork ne sont pas pris en charge pour le moment. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/it-IT.properties b/src/i18n/it-IT.properties index 05de8b24b..19a418588 100644 --- a/src/i18n/it-IT.properties +++ b/src/i18n/it-IT.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Caricamento dell'anteprima non riuscito. Carica di nuovo il file o contatta il supporto Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Il tuo browser non supporta l'anteprima per {1}. +error_browser_unsupported=Il tuo browser non supporta l'anteprima per {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Il formato di file non è supportato. +error_file_type_unsupported=Il formato di file non è supportato. # Preview error message shown when an iWork file is previewed error_iwork=Errore. Errore. I file di iWork non sono attualmente supportati. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/ja-JP.properties b/src/i18n/ja-JP.properties index 646c0790d..c3b0fe08b 100644 --- a/src/i18n/ja-JP.properties +++ b/src/i18n/ja-JP.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=プレビューがロードされませんでした。ファイルを再アップロードするか、Boxサポートにお問い合わせください。 # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=お使いのブラウザは{1}のプレビューをサポートしていません。 +error_browser_unsupported=お使いのブラウザは{1}のプレビューをサポートしていません。 # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=このファイル形式はサポートされていません。 +error_file_type_unsupported=このファイル形式はサポートされていません。 # Preview error message shown when an iWork file is previewed error_iwork=iWorkファイルは現在サポートされていません。 # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/ko-KR.properties b/src/i18n/ko-KR.properties index 148fb4588..88d4a0a80 100644 --- a/src/i18n/ko-KR.properties +++ b/src/i18n/ko-KR.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=죄송합니다. 미리 보기가 로드되지 않았습니다. 파일을 다시 업로드하거나 Box 지원 팀에 문의하십시오. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=죄송합니다. 브라우저에서 {1}에 대한 미리 보기를 지원하지 않습니다. +error_browser_unsupported=죄송합니다. 브라우저에서 {1}에 대한 미리 보기를 지원하지 않습니다. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=죄송합니다. 이 파일 형식은 지원되지 않습니다. +error_file_type_unsupported=죄송합니다. 이 파일 형식은 지원되지 않습니다. # Preview error message shown when an iWork file is previewed error_iwork=죄송합니다. iWork 파일은 현재 지원되지 않습니다. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/nb-NO.properties b/src/i18n/nb-NO.properties index 9886ac301..4f2869d23 100644 --- a/src/i18n/nb-NO.properties +++ b/src/i18n/nb-NO.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Forhåndsvisningen lastet dessverre ikke. Last opp filen på nytt, eller ta kontakt med Box-kundestøtte. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Nettleseren din støtter dessverre ikke forhåndsvisning av {1}. +error_browser_unsupported=Nettleseren din støtter dessverre ikke forhåndsvisning av {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Dette filformatet støttes dessverre ikke. +error_file_type_unsupported=Dette filformatet støttes dessverre ikke. # Preview error message shown when an iWork file is previewed error_iwork=Vi beklager, iWork-filer støttes ikke for øyeblikket. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/nl-NL.properties b/src/i18n/nl-NL.properties index 057c76eaf..63c031c32 100644 --- a/src/i18n/nl-NL.properties +++ b/src/i18n/nl-NL.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Het voorbeeld kan niet worden geladen. Upload het bestand opnieuw of neem contact op met Box Support. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Uw browser ondersteunt het bekijken van een voorbeeld van {1} niet. +error_browser_unsupported=Uw browser ondersteunt het bekijken van een voorbeeld van {1} niet. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Deze bestandsindeling wordt niet ondersteund. +error_file_type_unsupported=Deze bestandsindeling wordt niet ondersteund. # Preview error message shown when an iWork file is previewed error_iwork=iWork-bestanden worden momenteel niet ondersteund. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/pl-PL.properties b/src/i18n/pl-PL.properties index 73bc28633..21521bcd0 100644 --- a/src/i18n/pl-PL.properties +++ b/src/i18n/pl-PL.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Przepraszamy, nie można wczytać podglądu. Przekaż plik ponownie lub skontaktuj się z działem pomocy technicznej usługi Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Przepraszamy, Twoja przeglądarka nie obsługuje wyświetlania podglądu pliku typu {1}. +error_browser_unsupported=Przepraszamy, Twoja przeglądarka nie obsługuje wyświetlania podglądu pliku typu {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Przepraszamy, ten format pliku nie jest obsługiwany. +error_file_type_unsupported=Przepraszamy, ten format pliku nie jest obsługiwany. # Preview error message shown when an iWork file is previewed error_iwork=Przepraszamy, pliki iWork nie są obecnie obsługiwane. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/pt-BR.properties b/src/i18n/pt-BR.properties index aaf7c2e81..1e2998e0b 100644 --- a/src/i18n/pt-BR.properties +++ b/src/i18n/pt-BR.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Lamentamos, mas a pré-visualização não foi carregada. Carregue novamente o arquivo ou entre em contato com o suporte do Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Lamentamos, mas seu navegador não é compatível com a pré-visualização de {1}. +error_browser_unsupported=Lamentamos, mas seu navegador não é compatível com a pré-visualização de {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Lamentamos, mas este formato de arquivo não é suportado. +error_file_type_unsupported=Lamentamos, mas este formato de arquivo não é suportado. # Preview error message shown when an iWork file is previewed error_iwork=Os arquivos do iWork não são suportados no momento. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/ru-RU.properties b/src/i18n/ru-RU.properties index 7af6b8723..4de792a02 100644 --- a/src/i18n/ru-RU.properties +++ b/src/i18n/ru-RU.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Не удалось загрузить предпросмотр. Загрузите файл повторно или обратитесь в службу поддержки Box. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Браузер не поддерживает предпросмотр для этого типа файлов: {1}. +error_browser_unsupported=Браузер не поддерживает предпросмотр для этого типа файлов: {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Этот формат файлов не поддерживается. +error_file_type_unsupported=Этот формат файлов не поддерживается. # Preview error message shown when an iWork file is previewed error_iwork=В настоящее время файлы iWork не поддерживаются. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/sv-SE.properties b/src/i18n/sv-SE.properties index c5d31071c..ca9b78df2 100644 --- a/src/i18n/sv-SE.properties +++ b/src/i18n/sv-SE.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Det gick inte att läsa in förhandsgranskningen. Ladda upp filen på nytt eller kontakta Box-supporten. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Webbläsaren stöder inte förhandsgranskning av {1}. +error_browser_unsupported=Webbläsaren stöder inte förhandsgranskning av {1}. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Filformatet stöds inte. +error_file_type_unsupported=Filformatet stöds inte. # Preview error message shown when an iWork file is previewed error_iwork=Tyvärr stöds inte iWork-filer för närvarande. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/tr-TR.properties b/src/i18n/tr-TR.properties index 8325c4abd..4c15ec1c7 100644 --- a/src/i18n/tr-TR.properties +++ b/src/i18n/tr-TR.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=Üzgünüz, ön görüntüleme yüklenmedi. Lütfen dosyayı yeniden yükleyin veya Box destek ile iletişime geçin. # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=Üzgünüz, tarayıcınız {1} dosya türü için ön görüntülemeyi desteklemiyor. +error_browser_unsupported=Üzgünüz, tarayıcınız {1} dosya türü için ön görüntülemeyi desteklemiyor. # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=Üzgünüz, bu dosya formatı desteklenmiyor. +error_file_type_unsupported=Üzgünüz, bu dosya formatı desteklenmiyor. # Preview error message shown when an iWork file is previewed error_iwork=Üzgünüz, iWork dosyaları şu anda desteklenmiyor. # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/zh-CN.properties b/src/i18n/zh-CN.properties index 946a02080..c4ede4d02 100644 --- a/src/i18n/zh-CN.properties +++ b/src/i18n/zh-CN.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=抱歉,预览未加载。请重新上传文件或联系 Box 支持团队。 # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=抱歉,您的浏览器不支持预览 {1}。 +error_browser_unsupported=抱歉,您的浏览器不支持预览 {1}。 # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=抱歉,此文件格式不受支持。 +error_file_type_unsupported=抱歉,此文件格式不受支持。 # Preview error message shown when an iWork file is previewed error_iwork=很抱歉,目前不支持 iWork 文件。 # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/i18n/zh-TW.properties b/src/i18n/zh-TW.properties index ec38e7e3f..fb0083b25 100644 --- a/src/i18n/zh-TW.properties +++ b/src/i18n/zh-TW.properties @@ -47,9 +47,9 @@ error_rate_limit=We're sorry, the preview didn't load because your request was r # Preview re-upload error message suggesting re-uploading the file or contacting support as a possible fix error_reupload=很抱歉,無法載入預覽。請重新上傳檔案或連絡 Box 支援部門。 # Preview error message shown when the user's browser doesn't support previews of this file type -error_unsupported=很抱歉,您的瀏覽器不支援預覽 {1}的功能。 +error_browser_unsupported=很抱歉,您的瀏覽器不支援預覽 {1}的功能。 # Preview error message shown when the file has invalid formatting (most likely a 3D file) -error_format=很抱歉,此檔案格式不受支援。 +error_file_type_unsupported=很抱歉,此檔案格式不受支援。 # Preview error message shown when an iWork file is previewed error_iwork=很抱歉,iWork 檔案目前不受支援。 # Preview error message shown when document loading fails (most likely due to password or watermark) diff --git a/src/lib/Preview.js b/src/lib/Preview.js index a319cec83..69c8aaa12 100644 --- a/src/lib/Preview.js +++ b/src/lib/Preview.js @@ -835,8 +835,9 @@ const PREVIEW_LOCATION = findScriptLocation(PREVIEW_SCRIPT_NAME, document.curren const loader = this.getLoader(this.file); // If no loader then throw an unsupported error + // If file type specific error message, throw the generic one if (!loader) { - throw new Error(FILE_EXT_ERROR_MAP[this.file.extension]); + throw new Error(FILE_EXT_ERROR_MAP[this.file.extension] || __('error_file_type_unsupported')); } // Determine the viewer to use diff --git a/src/lib/viewers/box3d/image360/Image360Loader.js b/src/lib/viewers/box3d/image360/Image360Loader.js index 175508188..e15e5e340 100644 --- a/src/lib/viewers/box3d/image360/Image360Loader.js +++ b/src/lib/viewers/box3d/image360/Image360Loader.js @@ -29,7 +29,7 @@ class Image360Loader extends Base360Loader { determineViewer(file, disabledViewers = []) { const viewer = super.determineViewer(file, disabledViewers); if (viewer && !Browser.hasWebGL()) { - const message = replacePlaceholders(__('error_unsupported'), [__('360_images')]); + const message = replacePlaceholders(__('error_browser_unsupported'), [__('360_images')]); throw new Error(message); } diff --git a/src/lib/viewers/box3d/model3d/Model3DLoader.js b/src/lib/viewers/box3d/model3d/Model3DLoader.js index 27e196409..ee5493a96 100644 --- a/src/lib/viewers/box3d/model3d/Model3DLoader.js +++ b/src/lib/viewers/box3d/model3d/Model3DLoader.js @@ -31,7 +31,7 @@ class Model3DLoader extends AssetLoader { const viewer = super.determineViewer(file, disabledViewers); if (viewer && !Browser.supportsModel3D()) { - const message = replacePlaceholders(__('error_unsupported'), [__('3d_models')]); + const message = replacePlaceholders(__('error_browser_unsupported'), [__('3d_models')]); throw new Error(message); } diff --git a/src/lib/viewers/box3d/model3d/Model3DRenderer.js b/src/lib/viewers/box3d/model3d/Model3DRenderer.js index 4edc3e3ac..87b5814ec 100644 --- a/src/lib/viewers/box3d/model3d/Model3DRenderer.js +++ b/src/lib/viewers/box3d/model3d/Model3DRenderer.js @@ -439,7 +439,7 @@ class Model3DRenderer extends Box3DRenderer { * @return {void} */ onUnsupportedRepresentation() { - this.emit('error', new Error(__('error_format'))); + this.emit('error', new Error(__('error_file_type_unsupported'))); } /** diff --git a/src/lib/viewers/box3d/video360/Video360Loader.js b/src/lib/viewers/box3d/video360/Video360Loader.js index 2189135df..b0c0cfc69 100644 --- a/src/lib/viewers/box3d/video360/Video360Loader.js +++ b/src/lib/viewers/box3d/video360/Video360Loader.js @@ -57,7 +57,7 @@ class Video360Loader extends Base360Loader { // If a 360 viewer but it is on IOS OR // If browser doesn't support WebGL if (!isSupportedBrowser || isIOS || !Browser.hasWebGL()) { - const message = replacePlaceholders(__('error_unsupported'), [__('360_videos')]); + const message = replacePlaceholders(__('error_browser_unsupported'), [__('360_videos')]); throw new Error(message); } } diff --git a/src/lib/viewers/media/MediaLoader.js b/src/lib/viewers/media/MediaLoader.js index e892c9ab0..a5cbb251c 100644 --- a/src/lib/viewers/media/MediaLoader.js +++ b/src/lib/viewers/media/MediaLoader.js @@ -69,7 +69,7 @@ class MediaLoader extends AssetLoader { determineViewer(file, disabledViewers = []) { const viewer = super.determineViewer(file, disabledViewers); if (viewer && requires360Viewer(file)) { - const message = replacePlaceholders(__('error_unsupported'), [__('360_videos')]); + const message = replacePlaceholders(__('error_browser_unsupported'), [__('360_videos')]); throw new Error(message); }