Skip to content

Commit

Permalink
Do not update feeds after import (FreshRSS#5629)
Browse files Browse the repository at this point in the history
* Add checkbox to not update feeds after import to avoid duplicate feeds when importing multiple files.

* Import without updating feeds, but now unconditionally

* Added hint to click "Update feeds" to all translations

* Update app/i18n/fr/feedback.php

* Fix i18n

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
  • Loading branch information
robertdahlem and Alkarex authored Oct 22, 2023
1 parent 430d467 commit 83cf730
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 49 deletions.
1 change: 0 additions & 1 deletion app/Controllers/importExportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ public function importAction(): void {
}

// And finally, we get import status and redirect to the home page
Minz_Session::_param('actualize_feeds', true);
$content_notif = $error === true ? _t('feedback.import_export.feeds_imported_with_errors') : _t('feedback.import_export.feeds_imported');
Minz_Request::good($content_notif);
}
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/cz/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'Na serveru není přítomno rozšíření ZIP. Zkuste exportovat soubory jeden po druhém.',
'feeds_imported' => 'Vaše kanály byly naimportovány a budou nyní aktualizovány',
'feeds_imported_with_errors' => 'Vaše kanály byly naimportovány, došlo ale k nějakým chybám',
'feeds_imported' => 'Vaše kanály byly naimportovány a budou nyní aktualizovány / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Vaše kanály byly naimportovány, došlo ale k nějakým chybám / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Soubor nelze nahrát!',
'no_zip_extension' => 'Na serveru není přítomno rozšíření ZIP.',
'zip_error' => 'Během importu ZIP došlo k chybě.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/de/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'Die ZIP-Erweiterung fehlt auf Ihrem Server. Bitte versuchen Sie die Dateien eine nach der anderen zu exportieren.',
'feeds_imported' => 'Ihre Feeds sind importiert worden und werden jetzt aktualisiert',
'feeds_imported_with_errors' => 'Ihre Feeds sind importiert worden, aber es traten einige Fehler auf',
'feeds_imported' => 'Ihre Feeds sind importiert worden. Wenn Sie alle Dateien importiert haben, können Sie <i>Feeds aktualisieren</i> klicken.',
'feeds_imported_with_errors' => 'Ihre Feeds sind importiert worden, aber es traten einige Fehler auf. Wenn Sie alle Dateien importiert haben, können Sie <i>Feeds aktualisieren</i> klicken.',
'file_cannot_be_uploaded' => 'Die Datei kann nicht hochgeladen werden!',
'no_zip_extension' => 'Die ZIP-Erweiterung ist auf Ihrem Server nicht vorhanden.',
'zip_error' => 'Ein Fehler trat während des ZIP-Imports auf.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/el/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'The ZIP extension is not present on your server. Please try to export files one by one.', // TODO
'feeds_imported' => 'Your feeds have been imported and will now be updated', // TODO
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred', // TODO
'feeds_imported' => 'Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // TODO
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // TODO
'file_cannot_be_uploaded' => 'File cannot be uploaded!', // TODO
'no_zip_extension' => 'The ZIP extension is not present on your server.', // TODO
'zip_error' => 'An error occurred during ZIP processing.', // TODO
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/en-us/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'The ZIP extension is not present on your server. Please try to export files one by one.', // IGNORE
'feeds_imported' => 'Your feeds have been imported and will now be updated', // IGNORE
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred', // IGNORE
'feeds_imported' => 'Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // IGNORE
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // IGNORE
'file_cannot_be_uploaded' => 'File cannot be uploaded!', // IGNORE
'no_zip_extension' => 'The ZIP extension is not present on your server.', // IGNORE
'zip_error' => 'An error occurred during ZIP processing.', // IGNORE
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/en/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'The ZIP extension is not present on your server. Please try to export files one by one.',
'feeds_imported' => 'Your feeds have been imported and will now be updated',
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred',
'feeds_imported' => 'Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.',
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.',
'file_cannot_be_uploaded' => 'File cannot be uploaded!',
'no_zip_extension' => 'The ZIP extension is not present on your server.',
'zip_error' => 'An error occurred during ZIP processing.',
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/es/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'La extensión ZIP no está disponible en tu servidor. Por favor, exporta estos archivos uno a uno.',
'feeds_imported' => 'Se han importado tus fuentes y quedarán actualizadas',
'feeds_imported_with_errors' => 'Se importaron tus fuentes; pero hubo algunos errores',
'feeds_imported' => 'Se han importado tus fuentes y quedarán actualizadas / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Se importaron tus fuentes; pero hubo algunos errores / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'No es posible enviar el archivo',
'no_zip_extension' => 'La extensión ZIP no está disponible en tu servidor.',
'zip_error' => 'Hubo un error durante la importación ZIP.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/fa/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => ' پسوند ZIP در سرور شما وجود ندارد. لطفا سعی کنید فایل ها را یکی یکی صادر کنید.',
'feeds_imported' => ' فیدهای شما وارد شده اند و اکنون به روز خواهند شد',
'feeds_imported_with_errors' => ' فیدهای شما وارد شده است',
'feeds_imported' => ' فیدهای شما وارد شده اند و اکنون به روز خواهند شد / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => ' فیدهای شما وارد شده است / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => ' فایل قابل آپلود نیست!',
'no_zip_extension' => ' پسوند ZIP در سرور شما وجود ندارد.',
'zip_error' => ' در حین پردازش ZIP خطایی روی داد.',
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/fr/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'L’extension ZIP n’est pas présente sur votre serveur. Veuillez essayer d’exporter les fichiers un par un.',
'feeds_imported' => 'Vos flux ont été importés et vont maintenant être actualisés.',
'feeds_imported_with_errors' => 'Vos flux ont été importés mais des erreurs sont survenues.',
'feeds_imported' => 'Vos flux ont été importés. Si vous avez fini vos importations, vous pouvez cliquer le bouton <i>Actualiser flux</i>.',
'feeds_imported_with_errors' => 'Vos flux ont été importés mais des erreurs sont survenues. Si vous avez fini vos importations, vous pouvez cliquer le bouton <i>Actualiser flux</i>.',
'file_cannot_be_uploaded' => 'Le fichier ne peut pas être téléchargé !',
'no_zip_extension' => 'L’extension ZIP n’est pas présente sur votre serveur.',
'zip_error' => 'Une erreur est survenue durant le traintement du fichier ZIP.',
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/he/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'הרחבת ZIP אינה מותקנת על השרת.',
'feeds_imported' => 'ההזנות שלך יובאו וכעת יעודכנו',
'feeds_imported_with_errors' => 'ההזנות שלך יובאו אך אירעו מספר שגיאות',
'feeds_imported' => 'ההזנות שלך יובאו וכעת יעודכנו / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'ההזנות שלך יובאו אך אירעו מספר שגיאות / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'אין אפשרות להעלות את הקובץ!',
'no_zip_extension' => 'הרחבת ZIP אינה מותקנת על השרת.',
'zip_error' => 'אירעה שגיאה במהלך ייבוא קובץ הZIP.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/hu/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'A ZIP kiterjesztés nem létezik a szerveren. Exportáld a fájlokat egyesével.',
'feeds_imported' => 'A hírlisták importálása megtörtént és most frissítésre kerülnek',
'feeds_imported_with_errors' => 'A hírlisták importálása megtörtént, de néhány hiba történt',
'feeds_imported' => 'A hírlisták importálása megtörtént és most frissítésre kerülnek / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'A hírlisták importálása megtörtént, de néhány hiba történt / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Fájl nem feltölthető!',
'no_zip_extension' => 'A ZIP kiterjesztés nem létezik a szerveren.',
'zip_error' => 'Hiba történt a ZIP feldolgozása közben.',
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/id/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'The ZIP extension is not present on your server. Please try to export files one by one.', // TODO
'feeds_imported' => 'Your feeds have been imported and will now be updated', // TODO
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred', // TODO
'feeds_imported' => 'Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // TODO
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // TODO
'file_cannot_be_uploaded' => 'File cannot be uploaded!', // TODO
'no_zip_extension' => 'The ZIP extension is not present on your server.', // TODO
'zip_error' => 'An error occurred during ZIP processing.', // TODO
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/it/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'Estensione ZIP non presente sul server. Per favore esporta i files singolarmente.',
'feeds_imported' => 'I tuoi feed sono stati importati e saranno aggiornati',
'feeds_imported_with_errors' => 'I tuoi feeds sono stati importati ma si sono verificati alcuni errori',
'feeds_imported' => 'I tuoi feed sono stati importati e saranno aggiornati / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'I tuoi feeds sono stati importati ma si sono verificati alcuni errori / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Il file non può essere caricato!',
'no_zip_extension' => 'Estensione ZIP non presente sul server.',
'zip_error' => 'Si è verificato un errore importando il file ZIP', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/ja/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'ZIP 拡張は現在あなたのサーバーに存在しません。一つずつファイルをエクスポートしてみてください。',
'feeds_imported' => 'あなたのフィードはインポートされ、更新されます。',
'feeds_imported_with_errors' => 'あなたのフィードはインポートされましたが、エラーが起きました。',
'feeds_imported' => 'あなたのフィードはインポートされ、更新されます。 / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'あなたのフィードはインポートされましたが、エラーが起きました。 / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'ファイルをアップロードすることはできません!',
'no_zip_extension' => 'ZIP拡張は現在あなたのサーバーに存在しません。',
'zip_error' => 'ZIPをインポートするときエラーが発生しました。', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/ko/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'ZIP 확장 기능을 서버에서 찾을 수 없습니다. 파일을 하나씩 내보내세요.',
'feeds_imported' => '피드를 성공적으로 불러왔습니다',
'feeds_imported_with_errors' => '피드를 불러왔지만, 문제가 발생했습니다',
'feeds_imported' => '피드를 성공적으로 불러왔습니다 / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => '피드를 불러왔지만, 문제가 발생했습니다 / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => '파일을 업로드할 수 없습니다!',
'no_zip_extension' => 'ZIP 확장 기능을 서버에서 찾을 수 없습니다.',
'zip_error' => 'ZIP 파일을 불러오는 동안 문제가 발생했습니다.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/lv/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'Jūsu serverī nav ZIP paplašinājuma. Lūdzu, mēģiniet eksportēt failus pa vienam.',
'feeds_imported' => 'Jūsu barotnes tika importētas un tagad tiks atjauninātas.',
'feeds_imported_with_errors' => 'Jūsu barotnes tika importētas, bet ir radušās dažas kļūdas',
'feeds_imported' => 'Jūsu barotnes tika importētas un tagad tiks atjauninātas. / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Jūsu barotnes tika importētas, bet ir radušās dažas kļūdas / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Failu nevar augšupielādēt!',
'no_zip_extension' => 'Jūsu serverī nav ZIP paplašinājuma.',
'zip_error' => 'ZIP importa laikā notika kļūda.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/nl/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'ZIP uitbreiding is niet aanwezig op uw server. Exporteer a.u.b. uw bestanden één voor één.',
'feeds_imported' => 'Uw feeds zijn geimporteerd en worden nu vernieuwd',
'feeds_imported_with_errors' => 'Uw feeds zijn geimporteerd maar er zijn enige fouten opgetreden',
'feeds_imported' => 'Uw feeds zijn geimporteerd en worden nu vernieuwd / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Uw feeds zijn geimporteerd maar er zijn enige fouten opgetreden / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Bestand kan niet worden verzonden!',
'no_zip_extension' => 'ZIP uitbreiding is niet aanwezig op uw server.',
'zip_error' => 'Er is een fout opgetreden tijdens het imporeren van het ZIP bestand.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/oc/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'L’extension ZIP es pas presenta sul servidor. Volgatz ensajar d’exportar los fichièrs un per un.',
'feeds_imported' => 'Vòstres fluxes son estats importats seràn actualizats en seguida',
'feeds_imported_with_errors' => 'Vòstres fluxes son estats importats mas i a agut d’errors',
'feeds_imported' => 'Vòstres fluxes son estats importats seràn actualizats en seguida / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Vòstres fluxes son estats importats mas i a agut d’errors / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Telecargament del fichièr impossible',
'no_zip_extension' => 'L’extension es pas presenta sul servidor.',
'zip_error' => 'Una error s’es producha pendent l’importacion del fichièr ZIP.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/pl/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'Rozszerzenie ZIP nie jest dostępne na serwerze. Spróbuj eksportować pliki pojedynczo.',
'feeds_imported' => 'Kanały zostały zaimportowane i zostaną teraz zaktualizowane',
'feeds_imported_with_errors' => 'Kanały zostały zaimportowane, jednakże wystąpiło kilka błędów',
'feeds_imported' => 'Kanały zostały zaimportowane i zostaną teraz zaktualizowane / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Kanały zostały zaimportowane, jednakże wystąpiło kilka błędów / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Plik nie może zostać wgrany!',
'no_zip_extension' => 'Rozszerzenie ZIP nie jest dostępne na serwerze.',
'zip_error' => 'Wystąpił błąd podczas importu pliku ZIP.', // DIRTY
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/pt-br/feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
),
'import_export' => array(
'export_no_zip_extension' => 'extensão ZIP não está presente em seu servidor. Por favor tente exportar os arquivos um por vez.',
'feeds_imported' => 'Seus feeds foram importados e serão atualizados agora',
'feeds_imported_with_errors' => 'Seus feeds foram importados, mas alguns erros ocorreram',
'feeds_imported' => 'Seus feeds foram importados e serão atualizados agora / Your feeds have been imported. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'feeds_imported_with_errors' => 'Seus feeds foram importados, mas alguns erros ocorreram / Your feeds have been imported, but some errors occurred. If you are done importing, you can now click the <i>Update feeds</i> button.', // DIRTY
'file_cannot_be_uploaded' => 'Arquivo não pôde ser enviado',
'no_zip_extension' => 'extensão ZIP não está presente em seu servidor.',
'zip_error' => 'Um erro ocorreu durante a importação do arquivo ZIP.', // DIRTY
Expand Down
Loading

0 comments on commit 83cf730

Please sign in to comment.