1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-30 19:22:12 +00:00

Add EN and FR translations for internal and public links

This commit is contained in:
Harm te Molder 2025-08-21 14:43:58 +02:00
parent 86a881b358
commit 203d77b6da
No known key found for this signature in database
GPG key ID: 74A98B5EEF1920BA
3 changed files with 6 additions and 3 deletions

View file

@ -226,18 +226,17 @@ class EntriesExport
$chapter .= "<img src=\"{$entry->getPreviewPicture()}\">";
}
// TODO Add translations for internal and public links
$chapter .= '<dl>' .
'<dt>' . $this->translator->trans('entry.view.published_by') . '</dt><dd>' . $authors . '</dd>' .
'<dt>' . $this->translator->trans('entry.metadata.published_on') . '</dt><dd>' . $publishedDate . '</dd>' .
'<dt>' . $this->translator->trans('entry.metadata.added_on') . '</dt><dd>' . $entry->getCreatedAt()->format('Y-m-d') . '</dd>' .
'<dt>' . $this->translator->trans('entry.metadata.reading_time') . '</dt><dd>' . $this->translator->trans('entry.metadata.reading_time_minutes_short', ['%readingTime%' => $readingTime]) . '</dd>' .
'<dt>' . $this->translator->trans('entry.metadata.address') . '</dt><dd><a href="' . $entry->getUrl() . '">' . $entry->getUrl() . '</a></dd>' .
'<dt>Internal link</dt><dd><a href="' . $internalLink . '">' . $internalLink . '</a></dd>';
'<dt>' . $this->translator->trans('entry.metadata.internal_link') . '</dt><dd><a href="' . $internalLink . '">' . $internalLink . '</a></dd>';
if ($entry->isPublic()) {
$publicLink = $this->wallabagUrl . '/share/' . $entry->getUid();
$chapter .= '<dt>' . $this->translator->trans('entry.filters.is_public_help') . '</dt><dd><a href="' . $publicLink . '">' . $publicLink . '</a></dd>';
$chapter .= '<dt>' . $this->translator->trans('entry.metadata.public_link') . '</dt><dd><a href="' . $publicLink . '">' . $publicLink . '</a></dd>';
}
$chapter .= '</dl>' .

View file

@ -336,6 +336,8 @@ entry:
reading_time: Estimated reading time
reading_time_minutes_short: '%readingTime% min'
address: Address
internal_link: Internal link
public_link: Public link
added_on: Added on
published_on: "Published on"
about:

View file

@ -336,6 +336,8 @@ entry:
reading_time: Durée de lecture estimée
reading_time_minutes_short: '%readingTime% min'
address: Adresse
internal_link: Lien interne
public_link: Lien public
added_on: Ajouté le
published_on: Publié le
about: