Skip to content

Commit c0b72e0

Browse files
committed
feat: added "last updated" note on FAQ page
1 parent 9157bdf commit c0b72e0

File tree

7 files changed

+20
-5
lines changed

7 files changed

+20
-5
lines changed

phpmyfaq/assets/templates/default/faq.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@
6666
</li>
6767
<li class="list-group-item bg-transparent">
6868
<i aria-hidden="true" class="bi bi-calendar-date"></i>
69-
<span class="data">{{ faqDate }}</span>
69+
<span class="data">{{ 'msgCreateDate' | translate }} {{ faqDate }}</span>
70+
</li>
71+
<li class="list-group-item bg-transparent">
72+
<i aria-hidden="true" class="bi bi-calendar-check"></i>
73+
<span class="data">{{ 'msgUpdateDate' | translate }} {{ faqLastChangeDate }}</span>
7074
</li>
7175
{% if numberOfComments is defined %}
7276
<li class="list-group-item bg-transparent">

phpmyfaq/faq.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@
339339
'question' => $question,
340340
'answer' => $answer,
341341
'attachmentList' => $attachmentList,
342-
'faqDate' => $date->format($faq->faqRecord['date']),
342+
'faqDate' => $date->format($faq->faqRecord['created']),
343+
'faqLastChangeDate' => $date->format($faq->faqRecord['date']),
343344
'faqAuthor' => $author,
344345
'msgPdf' => Translation::get(key: 'msgPDF'),
345346
'msgPrintFaq' => Translation::get(key: 'msgPrintArticle'),

phpmyfaq/translations/language_de.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,5 +1528,7 @@
15281528
$PMF_LANG['msgError403'] = 'Fehler 403';
15291529
$PMF_LANG['msgError403Description'] = 'Du hast keine Berechtigung, auf diese Seite zuzugreifen.';
15301530
$PMF_LANG['msgError403Hint'] = 'Wenn du denkst, dass dies ein Fehler ist, kontaktiere bitte den Administrator.';
1531+
$PMF_LANG['msgCreateDate'] = 'Erstellt am';
1532+
$PMF_LANG['msgUpdateDate'] = 'Aktualisiert am';
15311533

15321534
return $PMF_LANG;

phpmyfaq/translations/language_en.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,5 +1530,7 @@
15301530
$PMF_LANG['msgError403'] = 'Error 403';
15311531
$PMF_LANG['msgError403Description'] = 'You are authenticated, but you do not have permission to access this resource.';
15321532
$PMF_LANG['msgError403Hint'] = 'If you believe this is an error, please contact an administrator.';
1533+
$PMF_LANG['msgCreateDate'] = 'Created on';
1534+
$PMF_LANG['msgUpdateDate'] = 'Last updated on';
15331535

15341536
return $PMF_LANG;

phpmyfaq/translations/language_es.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,5 +1534,7 @@
15341534
$PMF_LANG['msgError403'] = 'Error 403';
15351535
$PMF_LANG['msgError403Description'] = 'Está autenticado, pero no tiene permiso para acceder a este recurso.';
15361536
$PMF_LANG['msgError403Hint'] = 'Si cree que esto es un error, póngase en contacto con un administrador.';
1537+
$PMF_LANG['msgCreateDat'] = 'Creado el';
1538+
$PMF_LANG['msgUpdateDate'] = 'Última actualización el';
15371539

15381540
return $PMF_LANG;

phpmyfaq/translations/language_fr.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,5 +1532,7 @@
15321532
$PMF_LANG['msgError403'] = 'Erreur 403';
15331533
$PMF_LANG['msgError403Description'] = 'Vous êtes authentifié, mais vous n\'avez pas la permission d\'accéder à cette ressource.';
15341534
$PMF_LANG['msgError403Hint'] = 'Si vous pensez qu\'il s\'agit d\'une erreur, veuillez contacter un administrateur.';
1535+
$PMF_LANG['msgCreateDate'] = 'Créé le';
1536+
$PMF_LANG['msgUpdateDate'] = 'Dernière mise à jour le';
15351537

15361538
return $PMF_LANG;

phpmyfaq/translations/language_pl.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@
948948
// added v2.7.0-beta2 - 2011-06-22 by Thorsten
949949
$LANG_CONF['security.ssoSupport'] = ['checkbox', 'Włącz obsługę pojedynczego logowania'];
950950
$LANG_CONF['security.ssoLogoutRedirect'] = ['input', 'Usługa przekierowywania wylogowania przy pojedynczym logowaniu URL'];
951-
$LANG_CONF['main.dateFormat'] = ['input', 'Format daty (domyślny: d-m-Y H:i)'];
951+
$LANG_CONF['main.dateFormat'] = ['input', 'Format daty (domyślnie: d-m-Y H:i)'];
952952
$LANG_CONF['security.enableLoginOnly'] = ['checkbox', 'Kompletne zabezpieczone FAQ'];
953953

954954
// added v2.7.0-RC - 2011-08-18 by Thorsten
@@ -1303,7 +1303,7 @@
13031303
$PMF_LANG['permission::addatt'] = 'Dodaj załączniki';
13041304
$PMF_LANG['permission::delatt'] = 'Usuń załączniki';
13051305
$PMF_LANG['permission::backup'] = 'Utwórz kopie zapasowe';
1306-
$PMF_LANG['permission::restore'] = 'Przywróć kopie zapasowe';
1306+
$PMF_LANG['permission::restore'] = 'Przywróć kopie zapasłe';
13071307
$PMF_LANG['permission::delquestion'] = 'Usuń otwarte pytania';
13081308
$PMF_LANG['permission::changebtrevs'] = 'Edytuj rewizje';
13091309
$PMF_LANG['permission::addglossary'] = 'Dodaj element słownika';
@@ -1454,7 +1454,7 @@
14541454
$LANG_CONF['search.enableOpenSearch'] = ['checkbox', 'Włącz wsparcie OpenSearch', 'Standard: wyłączone'];
14551455
$LANG_CONF['search.popularSearchTimeWindow'] = ['input', 'Okno czasowe dla popularnych wyszukiwań (dni)', 'Standard: 180 dni'];
14561456
$PMF_LANG['msgAdminHeaderOpenSearch'] = 'Konfiguracja OpenSearch';
1457-
$PMF_LANG['msgAdminOpenSearchCreateIndex'] = 'Utwórz indeks wyszukiwania';
1457+
$PMF_LANG['msgAdminOpenSearchCreateIndex'] = 'Utwórz Indeks wyszukiwania';
14581458
$PMF_LANG['msgAdminOpenSearchDropIndex'] = 'Usuń indeks wyszukiwania';
14591459
$PMF_LANG['msgAdminOpenSearchImportIndex'] = 'Pełny import';
14601460
$PMF_LANG['msgAdminOpenSearchCreateIndex_success'] = 'Indeks wyszukiwania OpenSearch został pomyślnie utworzony.';
@@ -1512,5 +1512,7 @@
15121512
$PMF_LANG['msgError403'] = 'Błąd 403';
15131513
$PMF_LANG['msgError403Description'] = 'Jesteś uwierzytelniony, ale nie masz uprawnień do dostępu do tego zasobu.';
15141514
$PMF_LANG['msgError403Hint'] = 'Jeśli uważasz, że to błąd, skontaktuj się z administratorem.';
1515+
$PMF_LANG['msgCreateDate'] = 'Utworzono dnia';
1516+
$PMF_LANG['msgUpdateDate'] = 'Ostatnia aktualizacja dnia';
15151517

15161518
return $PMF_LANG;

0 commit comments

Comments
 (0)