From c389a87ed0df9e1efdd0a98df1a83747c5c85813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sat, 24 May 2025 07:58:17 +0200 Subject: [PATCH] Fixed review --- tests/Controller/Import/PocketCsvControllerTest.php | 4 ++-- tests/Import/PocketCsvImportTest.php | 10 +++++----- tests/fixtures/Import/{part_000000.csv => pocket.csv} | 0 translations/messages.cs.yml | 4 ---- translations/messages.es.yml | 4 ---- translations/messages.gl.yml | 4 ---- translations/messages.hr.yml | 4 ---- translations/messages.nb.yml | 4 ---- translations/messages.oc.yml | 4 ---- translations/messages.pl.yml | 4 ---- translations/messages.ta.yml | 4 ---- translations/messages.tr.yml | 4 ---- translations/messages.zh.yml | 4 ---- translations/messages.zh_Hant.yml | 4 ---- 14 files changed, 7 insertions(+), 51 deletions(-) rename tests/fixtures/Import/{part_000000.csv => pocket.csv} (100%) diff --git a/tests/Controller/Import/PocketCsvControllerTest.php b/tests/Controller/Import/PocketCsvControllerTest.php index d13bcf2da..645b7158e 100644 --- a/tests/Controller/Import/PocketCsvControllerTest.php +++ b/tests/Controller/Import/PocketCsvControllerTest.php @@ -71,7 +71,7 @@ class PocketCsvControllerTest extends WallabagTestCase $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form(); - $file = new UploadedFile(__DIR__ . '/../../fixtures/Import/part_000000.csv', 'Bookmarks'); + $file = new UploadedFile(__DIR__ . '/../../fixtures/Import/pocket.csv', 'Bookmarks'); $data = [ 'upload_import_file[file]' => $file, @@ -99,7 +99,7 @@ class PocketCsvControllerTest extends WallabagTestCase $crawler = $client->request('GET', '/import/pocket_csv'); $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form(); - $file = new UploadedFile(__DIR__ . '/../../fixtures/Import/part_000000.csv', 'Bookmarks'); + $file = new UploadedFile(__DIR__ . '/../../fixtures/Import/pocket.csv', 'Bookmarks'); $data = [ 'upload_import_file[file]' => $file, diff --git a/tests/Import/PocketCsvImportTest.php b/tests/Import/PocketCsvImportTest.php index 74cc189b1..495f78da5 100644 --- a/tests/Import/PocketCsvImportTest.php +++ b/tests/Import/PocketCsvImportTest.php @@ -38,7 +38,7 @@ class PocketCsvImportTest extends TestCase public function testImport() { $pocketCsvImport = $this->getPocketCsvImport(false, 7); - $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/part_000000.csv'); + $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/pocket.csv'); $entryRepo = $this->getMockBuilder(EntryRepository::class) ->disableOriginalConstructor() @@ -71,7 +71,7 @@ class PocketCsvImportTest extends TestCase public function testImportAndMarkAllAsRead() { $pocketCsvImport = $this->getPocketCsvImport(false, 1); - $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/part_000000.csv'); + $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/pocket.csv'); $entryRepo = $this->getMockBuilder(EntryRepository::class) ->disableOriginalConstructor() @@ -109,7 +109,7 @@ class PocketCsvImportTest extends TestCase public function testImportWithRabbit() { $pocketCsvImport = $this->getPocketCsvImport(); - $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/part_000000.csv'); + $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/pocket.csv'); $entryRepo = $this->getMockBuilder(EntryRepository::class) ->disableOriginalConstructor() @@ -149,7 +149,7 @@ class PocketCsvImportTest extends TestCase public function testImportWithRedis() { $pocketCsvImport = $this->getPocketCsvImport(); - $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/part_000000.csv'); + $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/pocket.csv'); $entryRepo = $this->getMockBuilder(EntryRepository::class) ->disableOriginalConstructor() @@ -203,7 +203,7 @@ class PocketCsvImportTest extends TestCase public function testImportUserNotDefined() { $pocketCsvImport = $this->getPocketCsvImport(true); - $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/part_000000.csv'); + $pocketCsvImport->setFilepath(__DIR__ . '/../fixtures/Import/pocket.csv'); $res = $pocketCsvImport->import(); diff --git a/tests/fixtures/Import/part_000000.csv b/tests/fixtures/Import/pocket.csv similarity index 100% rename from tests/fixtures/Import/part_000000.csv rename to tests/fixtures/Import/pocket.csv diff --git a/translations/messages.cs.yml b/translations/messages.cs.yml index 7dd5435f3..d4fc780f9 100644 --- a/translations/messages.cs.yml +++ b/translations/messages.cs.yml @@ -559,10 +559,6 @@ import: how_to: Zvolte soubor zálohy záložek a kliknutím na níže uvedené tlačítko jej naimportujte. Pamatujte na to, že tento proces může trvat dlouho, protože je třeba načíst všechny články. page_title: Import > Pocket HTML description: Tento importér naimportuje všechny vaše záložky z Pocket. Stačí přejít na https://getpocket.com/export) a exportovat soubor HTML, který bude stažen (například „ril_export.html“). - pocket_csv: - how_to: Zvolte soubor zálohy záložek a kliknutím na níže uvedené tlačítko jej naimportujte. Pamatujte na to, že tento proces může trvat dlouho, protože je třeba načíst všechny články. - page_title: Import > Pocket HTML - description: Tento importér naimportuje všechny vaše záložky z Pocket. Stačí přejít na https://getpocket.com/export) a exportovat soubor HTML, který bude stažen (například „ril_export.html“). omnivore: how_to: Rozbalte prosím svůj export z Omnivoru, následně nahrajte jeden po druhém všechny JSON soubory s názevem "metadata_x_to_y.json". page_title: Import > Omnivore diff --git a/translations/messages.es.yml b/translations/messages.es.yml index 86e56fe3c..47b497f12 100644 --- a/translations/messages.es.yml +++ b/translations/messages.es.yml @@ -550,10 +550,6 @@ import: description: Esta herramienta importará todos tus marcadores de Pocket (vía HTML). Sólo tienes que ir a https://getpocket.com/export, y luego exportar el archivo HTML. Se descargará un archivo HTML (como "ril_export.html"). page_title: Importar > Pocket HTML how_to: Por favor, elige el archivo de la copia de seguridad del marcador y haz clic en el botón inferior para importarlo. Ten en cuenta que el proceso puede llevar mucho tiempo, ya que hay que recuperar todos los artículos. - pocket_csv: - description: Esta herramienta importará todos tus marcadores de Pocket (vía HTML). Sólo tienes que ir a https://getpocket.com/export, y luego exportar el archivo HTML. Se descargará un archivo HTML (como "ril_export.html"). - page_title: Importar > Pocket HTML - how_to: Por favor, elige el archivo de la copia de seguridad del marcador y haz clic en el botón inferior para importarlo. Ten en cuenta que el proceso puede llevar mucho tiempo, ya que hay que recuperar todos los artículos. omnivore: page_title: Importar > Omnivore description: Este importador importará todos sus artículos de Omnivore. diff --git a/translations/messages.gl.yml b/translations/messages.gl.yml index 8f02a5744..ccd429d3a 100644 --- a/translations/messages.gl.yml +++ b/translations/messages.gl.yml @@ -477,10 +477,6 @@ import: page_title: Importar > Pocket HTML description: Este importador traerá todos os teus marcadores en Pocket (vía exportación HTML). Vai a https://getpocket.com/export, e exporta o ficheiro HTML. Descargarás un ficheiro HTML (tipo "ril_export.html"). how_to: Elixe o ficheiro da copia de apoio cos marcadores e preme no botón para importalo. Ten en conta que o proceso podería demorarse porque hai que importar todos os artigos. - pocket_csv: - page_title: Importar > Pocket HTML - description: Este importador traerá todos os teus marcadores en Pocket (vía exportación HTML). Vai a https://getpocket.com/export, e exporta o ficheiro HTML. Descargarás un ficheiro HTML (tipo "ril_export.html"). - how_to: Elixe o ficheiro da copia de apoio cos marcadores e preme no botón para importalo. Ten en conta que o proceso podería demorarse porque hai que importar todos os artigos. shaarli: page_title: Importar > Shaarli description: Este importador traerá todos os teus marcadores de Shaarli. Vai á sección Ferramentas, e despois en "Exportar base de datos", elixe os teus marcadores e expórtaos. Terás un ficheiro HTML. diff --git a/translations/messages.hr.yml b/translations/messages.hr.yml index 559eaad2c..e20bd4b28 100644 --- a/translations/messages.hr.yml +++ b/translations/messages.hr.yml @@ -113,10 +113,6 @@ import: page_title: Uvoz > Pocket HTML how_to: Odaberi datoteku sigurnosne kopije zabilježaka i pritisni donji gumb za uvoz. Postupak može trajati dugo jer se moraju dohvatiti svi članci. description: Ovaj uvoznik uvozi sve tvoje Pocket zabilješke (putem HTML izvoza). Idi na https://getpocket.com/export, zatim izvezi HTML datoteku. Preuzet će se HTML datoteka (poput „ril_export.html”). - pocket_csv: - page_title: Uvoz > Pocket HTML - how_to: Odaberi datoteku sigurnosne kopije zabilježaka i pritisni donji gumb za uvoz. Postupak može trajati dugo jer se moraju dohvatiti svi članci. - description: Ovaj uvoznik uvozi sve tvoje Pocket zabilješke (putem HTML izvoza). Idi na https://getpocket.com/export, zatim izvezi HTML datoteku. Preuzet će se HTML datoteka (poput „ril_export.html”). omnivore: page_title: Uvoz > Omnivore description: Ovaj uvoznik uvozi sve tvoje Omnivor članke. diff --git a/translations/messages.nb.yml b/translations/messages.nb.yml index 9139865f3..d8168b6c3 100644 --- a/translations/messages.nb.yml +++ b/translations/messages.nb.yml @@ -473,10 +473,6 @@ import: how_to: Velg sikkerhetskopifilen for bokmerke og klikk på knappen nedenfor for å importere den. Merk at prosessen kan ta lang tid siden alle artiklene må hentes. page_title: Importer > Pocket HTML description: Denne modulen vil importere alle Pocket-bokmerkene dine (via HTML-eksport). Gå til https://getpocket.com/export, og eksporter HTML-filen derfra. En HTML-fil vil bli lastet ned (som «ril_export.html»). - pocket_csv: - how_to: Velg sikkerhetskopifilen for bokmerke og klikk på knappen nedenfor for å importere den. Merk at prosessen kan ta lang tid siden alle artiklene må hentes. - page_title: Importer > Pocket HTML - description: Denne modulen vil importere alle Pocket-bokmerkene dine (via HTML-eksport). Gå til https://getpocket.com/export, og eksporter HTML-filen derfra. En HTML-fil vil bli lastet ned (som «ril_export.html»). tag: new: placeholder: Du kan legge til flere stikkord, delt med komma. diff --git a/translations/messages.oc.yml b/translations/messages.oc.yml index 22aadbe89..9172dba88 100644 --- a/translations/messages.oc.yml +++ b/translations/messages.oc.yml @@ -552,10 +552,6 @@ import: page_title: Importar > Pocket HTML description: Aquesta aisina d’importacion importarà totes vòstres marcadors Pocket (via un expòrt HTML). Anatz simplament a https://getpocket.com/export puèi exportar lo fichièr HTML. Se telecargarà un fichièr HTML (coma « ril_export.html »). how_to: Mercés de seleccionar lo fichièr de salvagarda de marcadors e de clicar lo boton çai-jos per l’importar. Remarcatz qu’aquò pòt trigar, lo temps que totes los articles sián recuperats. - pocket_csv: - page_title: Importar > Pocket HTML - description: Aquesta aisina d’importacion importarà totes vòstres marcadors Pocket (via un expòrt HTML). Anatz simplament a https://getpocket.com/export puèi exportar lo fichièr HTML. Se telecargarà un fichièr HTML (coma « ril_export.html »). - how_to: Mercés de seleccionar lo fichièr de salvagarda de marcadors e de clicar lo boton çai-jos per l’importar. Remarcatz qu’aquò pòt trigar, lo temps que totes los articles sián recuperats. omnivore: page_title: Importar > Omnivore developer: diff --git a/translations/messages.pl.yml b/translations/messages.pl.yml index 9d8b536db..44e7e390b 100644 --- a/translations/messages.pl.yml +++ b/translations/messages.pl.yml @@ -553,10 +553,6 @@ import: page_title: Importuj > Pocket HTML description: Ten importer zaimportuje wszystkie zakładki Pocket (za pośrednictwem eksportu HTML). Po prostu przejdź do https://getpocket.com/export, a następnie wyeksportuj plik HTML. Plik HTML zostanie pobrany (np. „ril_export.html”). how_to: Wybierz swój plik z zakładkami i naciśnij poniższy przycisk, aby je zaimportować. Może to zająć dłuższą chwilę, zanim wszystkie artykuły zostaną przeniesione. - pocket_csv: - page_title: Importuj > Pocket HTML - description: Ten importer zaimportuje wszystkie zakładki Pocket (za pośrednictwem eksportu HTML). Po prostu przejdź do https://getpocket.com/export, a następnie wyeksportuj plik HTML. Plik HTML zostanie pobrany (np. „ril_export.html”). - how_to: Wybierz swój plik z zakładkami i naciśnij poniższy przycisk, aby je zaimportować. Może to zająć dłuższą chwilę, zanim wszystkie artykuły zostaną przeniesione. omnivore: description: Ten importer zaimportuje wszystkie Twoje artykuły z Omnivore. page_title: Importuj > Omnivore diff --git a/translations/messages.ta.yml b/translations/messages.ta.yml index 8dd361203..dfface4c8 100644 --- a/translations/messages.ta.yml +++ b/translations/messages.ta.yml @@ -260,10 +260,6 @@ import: page_title: இறக்குமதி> பாக்கெட் உஉகுமொ description: இந்த இறக்குமதியாளர் உங்கள் அனைத்து பாக்கெட் புக்மார்க்குகளையும் (HTML ஏற்றுமதி வழியாக) இறக்குமதி செய்வார். Https://getpocket.com/export க்குச் சென்று, பின்னர் உஉகுமொ கோப்பை ஏற்றுமதி செய்யுங்கள். ஒரு உஉகுமொ கோப்பு பதிவிறக்கம் செய்யப்படும் ("RIL_EXPORT.HTML" போன்றவை). how_to: புக்மார்க்கு காப்புப்பிரதி கோப்பைத் தேர்ந்தெடுத்து அதை இறக்குமதி செய்ய கீழே உள்ள பொத்தானைக் சொடுக்கு செய்க. அனைத்து கட்டுரைகளையும் பெற வேண்டியிருப்பதால் செயல்முறை நீண்ட நேரம் ஆகலாம் என்பதை நினைவில் கொள்க. - pocket_csv: - page_title: இறக்குமதி> பாக்கெட் உஉகுமொ - description: இந்த இறக்குமதியாளர் உங்கள் அனைத்து பாக்கெட் புக்மார்க்குகளையும் (HTML ஏற்றுமதி வழியாக) இறக்குமதி செய்வார். Https://getpocket.com/export க்குச் சென்று, பின்னர் உஉகுமொ கோப்பை ஏற்றுமதி செய்யுங்கள். ஒரு உஉகுமொ கோப்பு பதிவிறக்கம் செய்யப்படும் ("RIL_EXPORT.HTML" போன்றவை). - how_to: புக்மார்க்கு காப்புப்பிரதி கோப்பைத் தேர்ந்தெடுத்து அதை இறக்குமதி செய்ய கீழே உள்ள பொத்தானைக் சொடுக்கு செய்க. அனைத்து கட்டுரைகளையும் பெற வேண்டியிருப்பதால் செயல்முறை நீண்ட நேரம் ஆகலாம் என்பதை நினைவில் கொள்க. developer: howto: description: diff --git a/translations/messages.tr.yml b/translations/messages.tr.yml index e12179173..c83bce803 100644 --- a/translations/messages.tr.yml +++ b/translations/messages.tr.yml @@ -549,10 +549,6 @@ import: page_title: İçe Aktar > Pocket HTML description: Bu içe aktarıcı tüm Pocket yer imlerinizi (HTML dışa aktarmayla) içe aktaracaktır. https://getpocket.com adresine gidin, sonra HTML dosyasını dışa aktarın. Bir HTML dosyası ("ril_export.html" gibi) indirilecektir. how_to: Lütfen yer imi yedek dosyasını seçin ve onu içe aktarmak aşağıdaki düğmeye tıklayın. Tüm makaleler sitelerinden çekileceği için sürecin uzun sürebileceğini unutmayın. - pocket_csv: - page_title: İçe Aktar > Pocket HTML - description: Bu içe aktarıcı tüm Pocket yer imlerinizi (HTML dışa aktarmayla) içe aktaracaktır. https://getpocket.com adresine gidin, sonra HTML dosyasını dışa aktarın. Bir HTML dosyası ("ril_export.html" gibi) indirilecektir. - how_to: Lütfen yer imi yedek dosyasını seçin ve onu içe aktarmak aşağıdaki düğmeye tıklayın. Tüm makaleler sitelerinden çekileceği için sürecin uzun sürebileceğini unutmayın. user: form: username_label: Kullanıcı adı diff --git a/translations/messages.zh.yml b/translations/messages.zh.yml index ef08978a3..b38d86f92 100644 --- a/translations/messages.zh.yml +++ b/translations/messages.zh.yml @@ -553,10 +553,6 @@ import: page_title: 导入 > Pocket HTML how_to: 请选择书签备份文件并点击下面的按钮导入。请注意,由于必须获取所有文章,因此该过程可能需要很长时间。 description: 此导入器将导入您所有的 Pocket 书签(通过 HTML 导出)。只需转到 https://getpocket.com/export,然后导出 HTML 文件。将下载一个 HTML 文件(如“ril_export.html”)。 - pocket_csv: - page_title: 导入 > Pocket HTML - how_to: 请选择书签备份文件并点击下面的按钮导入。请注意,由于必须获取所有文章,因此该过程可能需要很长时间。 - description: 此导入器将导入您所有的 Pocket 书签(通过 HTML 导出)。只需转到 https://getpocket.com/export,然后导出 HTML 文件。将下载一个 HTML 文件(如“ril_export.html”)。 developer: page_title: 'API 客户端管理' welcome_message: '欢迎来到 wallabag API' diff --git a/translations/messages.zh_Hant.yml b/translations/messages.zh_Hant.yml index 4d6a1faae..966b17fd9 100644 --- a/translations/messages.zh_Hant.yml +++ b/translations/messages.zh_Hant.yml @@ -483,10 +483,6 @@ import: page_title: 匯入 > Pocket HTML description: 這匯入器將匯入你在 Pocket 中的全部書籤(經 HTML 匯出)。你只須前往 https://getpocket.com/export 匯出 HTML檔案,將提供一個可下載的 HTML 檔案(名為「ril_export.html」之類)。 how_to: 請選取書籤備份檔案然後點擊以下按鈕匯入。須注意由於需要擷取全部的文章,整個過程可能會花費一段時間。 - pocket_csv: - page_title: 匯入 > Pocket HTML - description: 這匯入器將匯入你在 Pocket 中的全部書籤(經 HTML 匯出)。你只須前往 https://getpocket.com/export 匯出 HTML檔案,將提供一個可下載的 HTML 檔案(名為「ril_export.html」之類)。 - how_to: 請選取書籤備份檔案然後點擊以下按鈕匯入。須注意由於需要擷取全部的文章,整個過程可能會花費一段時間。 firefox: page_title: 匯入 > Firefox description: 這匯入器將匯入你在 Firefox 中的全部書籤。在書籤收藏庫(Ctrl+Shift+O)的「匯入及備份」中選擇「備份」後,你將取得一個 JSON 檔案。