Merge pull request #2481 from wallabag/some-fixes

Some fixes
This commit is contained in:
Nicolas Lœuillet 2016-10-21 15:15:41 +02:00 committed by GitHub
commit f99ddbc6f8
29 changed files with 68 additions and 19 deletions

View file

@ -23,7 +23,7 @@ export: "eksport"
import: "import" import: "import"
misc: "misc" misc: "misc"
modify_settings: "Gem ændring" modify_settings: "Gem ændring"
piwik_host: Hosting af din side hos Piwik piwik_host: Hosting af din side hos Piwik (uden http:// eller https://)
piwik_site_id: ID for din side hos Piwik piwik_site_id: ID for din side hos Piwik
piwik_enabled: Aktiver Piwik piwik_enabled: Aktiver Piwik
demo_mode_enabled: "Aktiver demo-indstilling? (anvendes kun til wallabags offentlige demo)" demo_mode_enabled: "Aktiver demo-indstilling? (anvendes kun til wallabags offentlige demo)"

View file

@ -23,7 +23,7 @@ export: "Export"
import: "Import" import: "Import"
misc: "Verschiedenes" misc: "Verschiedenes"
modify_settings: "Übernehmen" modify_settings: "Übernehmen"
piwik_host: Host deiner Webseite in Piwik piwik_host: Host deiner Webseite in Piwik (ohne http:// oder https://)
piwik_site_id: ID deiner Webseite in Piwik piwik_site_id: ID deiner Webseite in Piwik
piwik_enabled: Piwik aktivieren piwik_enabled: Piwik aktivieren
demo_mode_enabled: "Test-Modus aktivieren? (nur für die öffentliche wallabag-Demo genutzt)" demo_mode_enabled: "Test-Modus aktivieren? (nur für die öffentliche wallabag-Demo genutzt)"

View file

@ -23,7 +23,7 @@ export: "export"
import: "import" import: "import"
misc: "misc" misc: "misc"
modify_settings: "apply" modify_settings: "apply"
piwik_host: Host of your website in Piwik piwik_host: Host of your website in Piwik (without http:// ou https://)
piwik_site_id: ID of your website in Piwik piwik_site_id: ID of your website in Piwik
piwik_enabled: Enable Piwik piwik_enabled: Enable Piwik
demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)" demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)"

View file

@ -23,7 +23,7 @@ export: "exportar"
import: "importar" import: "importar"
misc: "misc" misc: "misc"
modify_settings: "modificar configuración" modify_settings: "modificar configuración"
piwik_host: Host de tu website de Piwik piwik_host: Host de tu website de Piwik (sin http:// o https://)
piwik_site_id: ID de tu website de Piwik piwik_site_id: ID de tu website de Piwik
piwik_enabled: Activar Piwik piwik_enabled: Activar Piwik
demo_mode_enabled: "Activar modo demo (sólo usado para la demo de wallabag)" demo_mode_enabled: "Activar modo demo (sólo usado para la demo de wallabag)"

View file

@ -23,7 +23,7 @@ export: "برون‌سپاری"
import: "درون‌ریزی" import: "درون‌ریزی"
misc: "غیره" misc: "غیره"
modify_settings: "اعمال" modify_settings: "اعمال"
# piwik_host: Host of your website in Piwik # piwik_host: Host of your website in Piwik (without http:// or https://)
# piwik_site_id: ID of your website in Piwik # piwik_site_id: ID of your website in Piwik
# piwik_enabled: Enable Piwik # piwik_enabled: Enable Piwik
# demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)" # demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)"

View file

@ -23,7 +23,7 @@ export: "export"
import: "import" import: "import"
misc: "divers" misc: "divers"
modify_settings: "appliquer" modify_settings: "appliquer"
piwik_host: URL de votre site dans Piwik piwik_host: URL de votre site dans Piwik (sans http:// ou https://)
piwik_site_id: ID de votre site dans Piwik piwik_site_id: ID de votre site dans Piwik
piwik_enabled: Activer Piwik piwik_enabled: Activer Piwik
demo_mode_enabled: "Activer le mode démo ? (utiliser uniquement pour la démo publique de wallabag)" demo_mode_enabled: "Activer le mode démo ? (utiliser uniquement pour la démo publique de wallabag)"

View file

@ -23,7 +23,7 @@ export: "esporta"
import: "importa" import: "importa"
misc: "misc" misc: "misc"
modify_settings: "applica" modify_settings: "applica"
piwik_host: Host del tuo sito in Piwik piwik_host: Host del tuo sito in Piwik (senza http:// o https://)
piwik_site_id: ID del tuo sito in Piwik piwik_site_id: ID del tuo sito in Piwik
piwik_enabled: Abilita Piwik piwik_enabled: Abilita Piwik
demo_mode_enabled: "Abilita modalità demo ? (usato solo per la demo pubblica di wallabag)" demo_mode_enabled: "Abilita modalità demo ? (usato solo per la demo pubblica di wallabag)"

View file

@ -23,7 +23,7 @@ export: "expòrt"
import: "impòrt" import: "impòrt"
misc: "divèrs" misc: "divèrs"
modify_settings: "aplicar" modify_settings: "aplicar"
piwik_host: URL de vòstre site dins Piwik piwik_host: URL de vòstre site dins Piwik (sense http:// o https://)
piwik_site_id: ID de vòstre site dins Piwik piwik_site_id: ID de vòstre site dins Piwik
piwik_enabled: Activar Piwik piwik_enabled: Activar Piwik
demo_mode_enabled: "Activar lo mode demostracion ? (utilizar solament per la demostracion publica de wallabag)" demo_mode_enabled: "Activar lo mode demostracion ? (utilizar solament per la demostracion publica de wallabag)"

View file

@ -23,7 +23,7 @@ export: "eksport"
import: "import" import: "import"
misc: "różne" misc: "różne"
modify_settings: "zatwierdz" modify_settings: "zatwierdz"
piwik_host: Host twojej strony Piwik piwik_host: Host twojej strony Piwik (bez http:// lub https://)
piwik_site_id: ID twojej strony Piwik piwik_site_id: ID twojej strony Piwik
piwik_enabled: Włacz Piwik piwik_enabled: Włacz Piwik
demo_mode_enabled: "Włacz tryb demo? (używany wyłącznie dla publicznej demonstracji Wallabag)" demo_mode_enabled: "Włacz tryb demo? (używany wyłącznie dla publicznej demonstracji Wallabag)"

View file

@ -23,7 +23,7 @@ export: "exportă"
import: "importă" import: "importă"
misc: "diverse" misc: "diverse"
modify_settings: "aplică" modify_settings: "aplică"
# piwik_host: Host of your website in Piwik # piwik_host: Host of your website in Piwik (without http:// or https://)
# piwik_site_id: ID of your website in Piwik # piwik_site_id: ID of your website in Piwik
# piwik_enabled: Enable Piwik # piwik_enabled: Enable Piwik
# demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)" # demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)"

View file

@ -23,7 +23,7 @@
# import: "import" # import: "import"
# misc: "misc" # misc: "misc"
# modify_settings: "apply" # modify_settings: "apply"
# piwik_host: Host of your website in Piwik # piwik_host: Host of your website in Piwik (without http:// or https://)
# piwik_site_id: ID of your website in Piwik # piwik_site_id: ID of your website in Piwik
# piwik_enabled: Enable Piwik # piwik_enabled: Enable Piwik
# demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)" # demo_mode_enabled: "Enable demo mode ? (only used for the wallabag public demo)"

View file

@ -364,7 +364,7 @@ class InstallCommand extends ContainerAwareCommand
], ],
[ [
'name' => 'piwik_host', 'name' => 'piwik_host',
'value' => 'http://v2.wallabag.org', 'value' => 'v2.wallabag.org',
'section' => 'analytics', 'section' => 'analytics',
], ],
[ [

View file

@ -122,7 +122,7 @@ class LoadSettingData extends AbstractFixture implements OrderedFixtureInterface
], ],
[ [
'name' => 'piwik_host', 'name' => 'piwik_host',
'value' => 'http://v2.wallabag.org', 'value' => 'v2.wallabag.org',
'section' => 'analytics', 'section' => 'analytics',
], ],
[ [

View file

@ -445,6 +445,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
delete_confirm: Bist du sicher? delete_confirm: Bist du sicher?
back_to_list: Zurück zur Liste back_to_list: Zurück zur Liste
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
delete_confirm: Are you sure? delete_confirm: Are you sure?
back_to_list: Back to list back_to_list: Back to list
error:
page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -444,6 +444,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -365,7 +365,7 @@ import:
how_to: "Choisissez le fichier de sauvegarde de vos marques-page et cliquez sur le bouton pour l'importer. Soyez avertis que le processus peut prendre un temps assez long car tous les articles doivent être récupérés en ligne." how_to: "Choisissez le fichier de sauvegarde de vos marques-page et cliquez sur le bouton pour l'importer. Soyez avertis que le processus peut prendre un temps assez long car tous les articles doivent être récupérés en ligne."
instapaper: instapaper:
page_title: 'Import > Instapaper' page_title: 'Import > Instapaper'
description: 'Sur la page des paramètres (`https://www.instapaper.com/user<https://www.instapaper.com/user>`_), cliquez sur "Download .CSV file" dans la section "Export". Un fichier CSV se téléchargera ("instapaper-export.csv").' description: 'Sur la page des paramètres (https://www.instapaper.com/user), cliquez sur "Download .CSV file" dans la section "Export". Un fichier CSV se téléchargera ("instapaper-export.csv").'
how_to: "Choisissez le fichier de votre export Instapaper et cliquez sur le bouton ci-dessous pour l'importer." how_to: "Choisissez le fichier de votre export Instapaper et cliquez sur le bouton ci-dessous pour l'importer."
developer: developer:
@ -445,6 +445,9 @@ user:
delete_confirm: Êtes-vous sûr? delete_confirm: Êtes-vous sûr?
back_to_list: Revenir à la liste back_to_list: Revenir à la liste
error:
page_title: Une erreur est survenue
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
delete_confirm: Jesteś pewien? delete_confirm: Jesteś pewien?
back_to_list: Powrót do listy back_to_list: Powrót do listy
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -445,6 +445,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -444,6 +444,9 @@ user:
# delete_confirm: Are you sure? # delete_confirm: Are you sure?
# back_to_list: Back to list # back_to_list: Back to list
error:
# page_title: An error occurred
flashes: flashes:
config: config:
notice: notice:

View file

@ -39,7 +39,7 @@
<meta name="twitter:image" content="{{ picturePath }}" /> <meta name="twitter:image" content="{{ picturePath }}" />
<meta name="twitter:site" content="@wallabagapp" /> <meta name="twitter:site" content="@wallabagapp" />
<meta name="twitter:title" content="{{ entry.title | raw }}" /> <meta name="twitter:title" content="{{ entry.title | raw }}" />
<meta name="twitter:description" content="{{ entry.title | raw }}" /> <meta name="twitter:description" content="{{ entry.content|striptags|slice(0, 300)|raw }}&hellip;" />
</head> </head>
<body> <body>
<header> <header>

View file

@ -138,8 +138,11 @@ class WallabagExtension extends \Twig_Extension implements \Twig_Extension_Globa
$interval = $user->getCreatedAt()->diff(new \DateTime('now')); $interval = $user->getCreatedAt()->diff(new \DateTime('now'));
$nbDays = (int) $interval->format('%a') ?: 1; $nbDays = (int) $interval->format('%a') ?: 1;
// force setlocale for date translation
setlocale(LC_TIME, strtolower($user->getConfig()->getLanguage()).'_'.strtoupper(strtolower($user->getConfig()->getLanguage())));
return $this->translator->trans('footer.stats', [ return $this->translator->trans('footer.stats', [
'%user_creation%' => $user->getCreatedAt()->format('F jS, Y'), '%user_creation%' => strftime('%e %B %Y', $user->getCreatedAt()->getTimestamp()),
'%nb_archives%' => $nbArchives, '%nb_archives%' => $nbArchives,
'%per_day%' => round($nbArchives / $nbDays, 2), '%per_day%' => round($nbArchives / $nbDays, 2),
]); ]);

View file

@ -50,9 +50,10 @@ abstract class AbstractConsumer
$entry = $this->import->parseEntry($storedEntry); $entry = $this->import->parseEntry($storedEntry);
if (null === $entry) { if (null === $entry) {
$this->logger->warning('Unable to parse entry', ['entry' => $storedEntry]); $this->logger->warning('Entry already exists', ['entry' => $storedEntry]);
return false; // return true to skip message
return true;
} }
try { try {

View file

@ -139,12 +139,24 @@ abstract class BrowserImport extends AbstractImport
public function parseEntry(array $importedEntry) public function parseEntry(array $importedEntry)
{ {
if ((!array_key_exists('guid', $importedEntry) || (!array_key_exists('id', $importedEntry))) && is_array(reset($importedEntry))) { if ((!array_key_exists('guid', $importedEntry) || (!array_key_exists('id', $importedEntry))) && is_array(reset($importedEntry))) {
if ($this->producer) {
$this->parseEntriesForProducer($importedEntry);
return;
}
$this->parseEntries($importedEntry); $this->parseEntries($importedEntry);
return; return;
} }
if (array_key_exists('children', $importedEntry)) { if (array_key_exists('children', $importedEntry)) {
if ($this->producer) {
$this->parseEntriesForProducer($importedEntry['children']);
return;
}
$this->parseEntries($importedEntry['children']); $this->parseEntries($importedEntry['children']);
return; return;

View file

@ -219,7 +219,7 @@ JSON;
$res = $consumer->manage($body); $res = $consumer->manage($body);
$this->assertFalse($res); $this->assertTrue($res);
$this->assertFalse($consumer->isStopJob($body)); $this->assertFalse($consumer->isStopJob($body));
} }
} }