From 8029b58d3d6822b9442f7363de072f10d7c0d95c Mon Sep 17 00:00:00 2001 From: Tim Vink Date: Mon, 19 Apr 2021 10:31:49 +0200 Subject: [PATCH 1/4] Add support for git creation date, see #2551 --- .github/ISSUE_TEMPLATE/translate.md | 1 + docs/setup/adding-a-git-repository.md | 11 +++++++++++ src/partials/languages/af.html | 1 + src/partials/languages/ar.html | 1 + src/partials/languages/bg.html | 1 + src/partials/languages/bn.html | 1 + src/partials/languages/ca.html | 1 + src/partials/languages/cs.html | 1 + src/partials/languages/da.html | 1 + src/partials/languages/de.html | 1 + src/partials/languages/en.html | 1 + src/partials/languages/eo.html | 1 + src/partials/languages/es.html | 1 + src/partials/languages/et.html | 1 + src/partials/languages/fa.html | 1 + src/partials/languages/fi.html | 1 + src/partials/languages/fr.html | 1 + src/partials/languages/gl.html | 1 + src/partials/languages/gr.html | 1 + src/partials/languages/he.html | 1 + src/partials/languages/hi.html | 1 + src/partials/languages/hr.html | 1 + src/partials/languages/hu.html | 1 + src/partials/languages/id.html | 1 + src/partials/languages/is.html | 1 + src/partials/languages/it.html | 1 + src/partials/languages/ja.html | 1 + src/partials/languages/ka.html | 1 + src/partials/languages/kr.html | 1 + src/partials/languages/my.html | 1 + src/partials/languages/nl.html | 3 ++- src/partials/languages/nn.html | 1 + src/partials/languages/no.html | 1 + src/partials/languages/pl.html | 1 + src/partials/languages/pt.html | 1 + src/partials/languages/ro.html | 1 + src/partials/languages/ru.html | 1 + src/partials/languages/sh.html | 1 + src/partials/languages/si.html | 1 + src/partials/languages/sk.html | 1 + src/partials/languages/sl.html | 1 + src/partials/languages/sr.html | 1 + src/partials/languages/sv.html | 1 + src/partials/languages/th.html | 1 + src/partials/languages/tr.html | 1 + src/partials/languages/uk.html | 1 + src/partials/languages/vi.html | 1 + src/partials/languages/zh-Hant.html | 1 + src/partials/languages/zh-TW.html | 1 + src/partials/languages/zh.html | 1 + src/partials/source-date.html | 4 ++++ 51 files changed, 65 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/translate.md b/.github/ISSUE_TEMPLATE/translate.md index c8626ab9c..5c4854995 100644 --- a/.github/ISSUE_TEMPLATE/translate.md +++ b/.github/ISSUE_TEMPLATE/translate.md @@ -39,6 +39,7 @@ assignees: '' "skip.link.title": "Skip to content", "source.link.title": "Go to repository", "source.revision.date": "Last update", + "source.revision.date_created": "Created", "tabs.title": "Tabs", "toc.title": "Table of contents" }[key] }}{% endmacro %} diff --git a/docs/setup/adding-a-git-repository.md b/docs/setup/adding-a-git-repository.md index 79575605c..b16fa5bc5 100644 --- a/docs/setup/adding-a-git-repository.md +++ b/docs/setup/adding-a-git-repository.md @@ -186,6 +186,17 @@ The following options are supported: fallback_to_build_date: true ``` +`enable_creation_date`{ #enable_creation_date } + +: :octicons-milestone-24: Default: `false` – This option specifies whether to also add a page *Created* date at the bottom of each page. + + ``` yaml + plugins: + - git-revision-date-localized: + enable_creation_date: true + ``` + + _Material for MkDocs doesn't provide official support for the other options of this plugin, so they may be supported but might yield unexpected results. Use them at your own risk._ diff --git a/src/partials/languages/af.html b/src/partials/languages/af.html index 0fde472f2..414d4c204 100644 --- a/src/partials/languages/af.html +++ b/src/partials/languages/af.html @@ -39,5 +39,6 @@ "skip.link.title": "Slaan oor na inhoud", "source.link.title": "Slaan oor na inhoud", "source.revision.date": "Laaste opdatering", + "source.revision.date_created": "Geskep", "toc.title": "Inhoudsopgawe" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ar.html b/src/partials/languages/ar.html index f0191c256..7618c518f 100644 --- a/src/partials/languages/ar.html +++ b/src/partials/languages/ar.html @@ -40,5 +40,6 @@ "skip.link.title": "انتقل إلى المحتوى", "source.link.title": "اذهب إلى المصدر", "source.revision.date": "اخر تحديث", + "source.revision.date_created": "خلقت", "toc.title": "جدول المحتويات" }[key] }}{% endmacro %} diff --git a/src/partials/languages/bg.html b/src/partials/languages/bg.html index 2ed9fd63a..d533dd6cf 100644 --- a/src/partials/languages/bg.html +++ b/src/partials/languages/bg.html @@ -45,6 +45,7 @@ "skip.link.title": "Към съдържанието", "source.link.title": "Към хранилището", "source.revision.date": "Последна промяна", + "source.revision.date_created": "Създаден", "tabs.title": "Табове", "toc.title": "Съдържание" }[key] }}{% endmacro %} diff --git a/src/partials/languages/bn.html b/src/partials/languages/bn.html index 6fd4359d8..3aeedc0b6 100644 --- a/src/partials/languages/bn.html +++ b/src/partials/languages/bn.html @@ -43,6 +43,7 @@ "skip.link.title": "কনটেন্টে যান", "source.link.title": "রিপোজিটরিতে যান", "source.revision.date": "শেষ আপডেট", + "source.revision.date_created": "তৈরি হয়েছে", "tabs.title": "ট্যাব", "toc.title": "টেবিল অফ কনটেন্ট" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ca.html b/src/partials/languages/ca.html index fc1ba319a..32f11ab17 100644 --- a/src/partials/languages/ca.html +++ b/src/partials/languages/ca.html @@ -38,5 +38,6 @@ "skip.link.title": "Salta el contingut", "source.link.title": "Ves al repositori", "source.revision.date": "Darrera actualització", + "source.revision.date_created": "Creada", "toc.title": "Taula de continguts" }[key] }}{% endmacro %} diff --git a/src/partials/languages/cs.html b/src/partials/languages/cs.html index e2807468b..8b64e6a8c 100644 --- a/src/partials/languages/cs.html +++ b/src/partials/languages/cs.html @@ -38,5 +38,6 @@ "skip.link.title": "Přeskočit obsah", "source.link.title": "Přejít do repozitáře", "source.revision.date": "Poslední aktualizace", + "source.revision.date_created": "Vytvořeno", "toc.title": "Obsah" }[key] }}{% endmacro %} diff --git a/src/partials/languages/da.html b/src/partials/languages/da.html index 25a50f2cd..b745e6b57 100644 --- a/src/partials/languages/da.html +++ b/src/partials/languages/da.html @@ -39,5 +39,6 @@ "skip.link.title": "Gå til indholdet", "source.link.title": "Åbn arkiv", "source.revision.date": "Sidste ændring", + "source.revision.date_created": "Oprettet", "toc.title": "Indholdsfortegnelse" }[key] }}{% endmacro %} diff --git a/src/partials/languages/de.html b/src/partials/languages/de.html index 845889d6d..033f98480 100644 --- a/src/partials/languages/de.html +++ b/src/partials/languages/de.html @@ -43,5 +43,6 @@ "skip.link.title": "Zum Inhalt", "source.link.title": "Quellcode", "source.revision.date": "Letztes Update", + "source.revision.date_created": "Erstellt", "toc.title": "Inhaltsverzeichnis" }[key] }}{% endmacro %} diff --git a/src/partials/languages/en.html b/src/partials/languages/en.html index 3c1dc45be..d0537d3b2 100644 --- a/src/partials/languages/en.html +++ b/src/partials/languages/en.html @@ -50,6 +50,7 @@ "skip.link.title": "Skip to content", "source.link.title": "Go to repository", "source.revision.date": "Last update", + "source.revision.date_created": "Created", "tabs.title": "Tabs", "toc.title": "Table of contents" }[key] }}{% endmacro %} diff --git a/src/partials/languages/eo.html b/src/partials/languages/eo.html index 57ede26ba..304839c27 100644 --- a/src/partials/languages/eo.html +++ b/src/partials/languages/eo.html @@ -43,6 +43,7 @@ "skip.link.title": "Saltu al enhavo", "source.link.title": "Iru al deponejo", "source.revision.date": "Lasta ĝisdatigo", + "source.revision.date_created": "Kreita", "tabs.title": "Langetoj", "toc.title": "Enhavtabelo" }[key] }}{% endmacro %} diff --git a/src/partials/languages/es.html b/src/partials/languages/es.html index f516beba7..aa7a2f148 100644 --- a/src/partials/languages/es.html +++ b/src/partials/languages/es.html @@ -47,6 +47,7 @@ "skip.link.title": "Saltar a contenido", "source.link.title": "Ir al repositorio", "source.revision.date": "Última actualización", + "source.revision.date_created": "Created", "tabs.title": "Pestañas", "toc.title": "Tabla de contenidos" }[key] }}{% endmacro %} diff --git a/src/partials/languages/et.html b/src/partials/languages/et.html index d9e88a83e..2f6b5a579 100644 --- a/src/partials/languages/et.html +++ b/src/partials/languages/et.html @@ -38,5 +38,6 @@ "skip.link.title": "Keri sisuni", "source.link.title": "Ava repositooriumis", "source.revision.date": "Viimane uuendus", + "source.revision.date_created": "Loodud", "toc.title": "Sisukord" }[key] }}{% endmacro %} diff --git a/src/partials/languages/fa.html b/src/partials/languages/fa.html index 08c4fc69a..50c0b6bb3 100644 --- a/src/partials/languages/fa.html +++ b/src/partials/languages/fa.html @@ -40,5 +40,6 @@ "skip.link.title": "پرش به محتویات", "source.link.title": "رفتن به مخزن", "source.revision.date": "اخرین بروزرسانی", + "source.revision.date_created": "ایجاد شده", "toc.title": "فهرست موضوعات" }[key] }}{% endmacro %} diff --git a/src/partials/languages/fi.html b/src/partials/languages/fi.html index 0cc5d62ec..fcba97648 100644 --- a/src/partials/languages/fi.html +++ b/src/partials/languages/fi.html @@ -39,5 +39,6 @@ "skip.link.title": "Hyppää sisältöön", "source.link.title": "Mene repositoryyn", "source.revision.date": "Viimeisin päivitys", + "source.revision.date_created": "Luotu", "toc.title": "Sisällysluettelo" }[key] }}{% endmacro %} diff --git a/src/partials/languages/fr.html b/src/partials/languages/fr.html index 366e239d9..fa2652b3c 100644 --- a/src/partials/languages/fr.html +++ b/src/partials/languages/fr.html @@ -39,5 +39,6 @@ "skip.link.title": "Aller au contenu", "source.link.title": "Aller au dépôt", "source.revision.date": "Dernière mise à jour", + "source.revision.date_created": "Créé", "toc.title": "Table des matières" }[key] }}{% endmacro %} diff --git a/src/partials/languages/gl.html b/src/partials/languages/gl.html index c0b51d4ef..ee6191387 100644 --- a/src/partials/languages/gl.html +++ b/src/partials/languages/gl.html @@ -39,5 +39,6 @@ "skip.link.title": "Ir ao contido", "source.link.title": "Ir ao repositorio", "source.revision.date": "Última actualización", + "source.revision.date_created": "Creada", "toc.title": "Táboa de contidos" }[key] }}{% endmacro %} diff --git a/src/partials/languages/gr.html b/src/partials/languages/gr.html index 0c582a98f..6076adbca 100644 --- a/src/partials/languages/gr.html +++ b/src/partials/languages/gr.html @@ -39,5 +39,6 @@ "skip.link.title": "Μετάβαση στο περιεχόμενο", "source.link.title": "Μετάβαση στο αποθετήριο", "source.revision.date": "τελευταία ενημέρωση", + "source.revision.date_created": "Δημιουργήθηκε", "toc.title": "Πίνακας περιεχομένων" }[key] }}{% endmacro %} diff --git a/src/partials/languages/he.html b/src/partials/languages/he.html index 3d6d52bb7..7594ca3f2 100644 --- a/src/partials/languages/he.html +++ b/src/partials/languages/he.html @@ -40,5 +40,6 @@ "skip.link.title": "דלג לתוכן", "source.link.title": "עבור אל מאגר", "source.revision.date": "העדכון אחרון", + "source.revision.date_created": "נוצר", "toc.title": "תוכן העניינים" }[key] }}{% endmacro %} diff --git a/src/partials/languages/hi.html b/src/partials/languages/hi.html index 61c78b7bf..d61ba7c78 100644 --- a/src/partials/languages/hi.html +++ b/src/partials/languages/hi.html @@ -39,5 +39,6 @@ "skip.link.title": "विषय पर बढ़ें", "source.link.title": "रिपॉजिटरी पर जाएं", "source.revision.date": "आखिरी अपडेट", + "source.revision.date_created": "बनाया था", "toc.title": "विषय - सूची" }[key] }}{% endmacro %} diff --git a/src/partials/languages/hr.html b/src/partials/languages/hr.html index 4a3167f4c..b1022ecbb 100644 --- a/src/partials/languages/hr.html +++ b/src/partials/languages/hr.html @@ -38,5 +38,6 @@ "skip.link.title": "Preskočite na sadržaj", "source.link.title": "Idite u repozitorij", "source.revision.date": "Zadnje ažuriranje", + "source.revision.date_created": "Stvoreno", "toc.title": "Sadržaj" }[key] }}{% endmacro %} diff --git a/src/partials/languages/hu.html b/src/partials/languages/hu.html index e2394ebf6..927c7e342 100644 --- a/src/partials/languages/hu.html +++ b/src/partials/languages/hu.html @@ -47,6 +47,7 @@ "skip.link.title": "Kihagyás", "source.link.title": "Főoldalra ugrás", "source.revision.date": "Utolsó frissítés", + "source.revision.date_created": "Létrehozva", "tabs.title": "Lapok", "toc.title": "Tartalomjegyzék" }[key] }}{% endmacro %} diff --git a/src/partials/languages/id.html b/src/partials/languages/id.html index f39b1dce5..0a3d8e047 100644 --- a/src/partials/languages/id.html +++ b/src/partials/languages/id.html @@ -39,5 +39,6 @@ "skip.link.title": "Lewati ke isi", "source.link.title": "Menuju repositori", "source.revision.date": "Pembaharuan Terakhir", + "source.revision.date_created": "Dibuat", "toc.title": "Daftar isi" }[key] }}{% endmacro %} diff --git a/src/partials/languages/is.html b/src/partials/languages/is.html index 9fd2eb4bf..ad8010390 100644 --- a/src/partials/languages/is.html +++ b/src/partials/languages/is.html @@ -44,6 +44,7 @@ "skip.link.title": "Hoppa yfir í efni", "source.link.title": "Fara í gagnahirslu (e. repository)", "source.revision.date": "Síðasta uppfærsla", + "source.revision.date_created": "Búið til", "tabs.title": "Flipar", "toc.title": "Efnisyfirlit" }[key] }}{% endmacro %} diff --git a/src/partials/languages/it.html b/src/partials/languages/it.html index 5a343047d..65d0250ba 100644 --- a/src/partials/languages/it.html +++ b/src/partials/languages/it.html @@ -39,5 +39,6 @@ "skip.link.title": "Vai al contenuto", "source.link.title": "Apri repository", "source.revision.date": "Ultimo aggiornamento", + "source.revision.date_created": "Creata", "toc.title": "Indice" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ja.html b/src/partials/languages/ja.html index 39bdb558f..72f29dd35 100644 --- a/src/partials/languages/ja.html +++ b/src/partials/languages/ja.html @@ -49,6 +49,7 @@ "skip.link.title": "コンテンツにスキップ", "source.link.title": "リポジトリへ", "source.revision.date": "最終更新日", + "source.revision.date_created": "作成した", "tabs.title": "タブ", "toc.title": "目次" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ka.html b/src/partials/languages/ka.html index 7421161b3..8b03abe2c 100644 --- a/src/partials/languages/ka.html +++ b/src/partials/languages/ka.html @@ -43,6 +43,7 @@ "skip.link.title": "კონტენტზე გადასვლა", "source.link.title": "საცავში გადასვლა", "source.revision.date": "ბოლო განახლება", + "source.revision.date_created": "შეიქმნა", "tabs.title": "ტაბები", "toc.title": "სარჩევი" }[key] }}{% endmacro %} diff --git a/src/partials/languages/kr.html b/src/partials/languages/kr.html index 874b220dc..2f9065de1 100644 --- a/src/partials/languages/kr.html +++ b/src/partials/languages/kr.html @@ -38,5 +38,6 @@ "search.result.other": "#개의 일치하는 문서", "source.link.title": "저장소로 이동", "source.revision.date": "마지막 업데이트", + "source.revision.date_created": "만들어진", "toc.title": "목차" }[key] }}{% endmacro %} diff --git a/src/partials/languages/my.html b/src/partials/languages/my.html index c3d71c67b..e6923cf38 100644 --- a/src/partials/languages/my.html +++ b/src/partials/languages/my.html @@ -43,6 +43,7 @@ "skip.link.title": "မာတိကာ သို့ သွားရန်", "source.link.title": "repository သို့ သွားရန်", "source.revision.date": "နောက်ဆုံး ထုတ်ပြန်ချက်", + "source.revision.date_created": "နေပြည်တော်", "tabs.title": "တက်များ", "toc.title": "ပါဝင်အကြောင်းအရာများ" }[key] }}{% endmacro %} diff --git a/src/partials/languages/nl.html b/src/partials/languages/nl.html index 75b53fff3..b3e390c3b 100644 --- a/src/partials/languages/nl.html +++ b/src/partials/languages/nl.html @@ -38,6 +38,7 @@ "search.result.other": "# overeenkomende documenten", "skip.link.title": "Ga naar inhoud", "source.link.title": "Ga naar repository", - "source.revision.date": "Laatst geüpdatet op", + "source.revision.date": "Laatst geüpdatet", + "source.revision.date_created": "Gecreëerd", "toc.title": "Inhoudsopgave" }[key] }}{% endmacro %} diff --git a/src/partials/languages/nn.html b/src/partials/languages/nn.html index ed825aba6..7c0d9dcf8 100644 --- a/src/partials/languages/nn.html +++ b/src/partials/languages/nn.html @@ -39,5 +39,6 @@ "skip.link.title": "Gå til innhald", "source.link.title": "Gå til kjelde", "source.revision.date": "Siste oppdatering", + "source.revision.date_created": "Laget", "toc.title": "Innhaldsliste" }[key] }}{% endmacro %} diff --git a/src/partials/languages/no.html b/src/partials/languages/no.html index cca450c21..224f27a2c 100644 --- a/src/partials/languages/no.html +++ b/src/partials/languages/no.html @@ -39,5 +39,6 @@ "skip.link.title": "Gå til innhold", "source.link.title": "Gå til kilde", "source.revision.date": "Siste oppdatering", + "source.revision.date_created": "Created", "toc.title": "Innholdsfortegnelse" }[key] }}{% endmacro %} diff --git a/src/partials/languages/pl.html b/src/partials/languages/pl.html index 5f4ae81e4..c319ed0a7 100755 --- a/src/partials/languages/pl.html +++ b/src/partials/languages/pl.html @@ -47,6 +47,7 @@ "skip.link.title": "Przejdź do treści", "source.link.title": "Idź do repozytorium", "source.revision.date": "Ostatnia aktualizacja", + "source.revision.date_created": "Utworzony", "tabs.title": "Zakładki", "toc.title": "Spis treści" }[key] }}{% endmacro %} diff --git a/src/partials/languages/pt.html b/src/partials/languages/pt.html index 398c51107..d5ee69bbf 100644 --- a/src/partials/languages/pt.html +++ b/src/partials/languages/pt.html @@ -39,5 +39,6 @@ "skip.link.title": "Ir para o conteúdo", "source.link.title": "Ir ao repositório", "source.revision.date": "Última atualização", + "source.revision.date_created": "Criada", "toc.title": "Índice" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ro.html b/src/partials/languages/ro.html index 6127766b8..7e082f32e 100644 --- a/src/partials/languages/ro.html +++ b/src/partials/languages/ro.html @@ -39,5 +39,6 @@ "skip.link.title": "Sari la conținut", "source.link.title": "Accesează repository-ul", "source.revision.date": "Ultima actualizare", + "source.revision.date_created": "Creată", "toc.title": "Cuprins" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ru.html b/src/partials/languages/ru.html index cfc287ee9..8351f7723 100644 --- a/src/partials/languages/ru.html +++ b/src/partials/languages/ru.html @@ -39,5 +39,6 @@ "skip.link.title": "Перейти к содержанию", "source.link.title": "Перейти к репозиторию", "source.revision.date": "Последнее обновление", + "source.revision.date_created": "Созданный", "toc.title": "Содержание" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sh.html b/src/partials/languages/sh.html index 3775b09d1..2719f37df 100644 --- a/src/partials/languages/sh.html +++ b/src/partials/languages/sh.html @@ -37,5 +37,6 @@ "search.result.other": "# rezultata pretrage", "skip.link.title": "Idi na tekst", "source.link.title": "Idi u repozitorijum", + "source.revision.date_created": "Створено", "toc.title": "Sadržaj" }[key] }}{% endmacro %} diff --git a/src/partials/languages/si.html b/src/partials/languages/si.html index e327907de..d86da07d5 100644 --- a/src/partials/languages/si.html +++ b/src/partials/languages/si.html @@ -45,6 +45,7 @@ "skip.link.title": "අන්තර්ගතය වෙත යන්න", "source.link.title": "රිපොසිටරියට යන්න", "source.revision.date": "අවසන් යාවත්කාලීන වීම", + "source.revision.date_created": "ٺاھيو ويو", "tabs.title": "ටැබ්ස්", "toc.title": "පටුන" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sk.html b/src/partials/languages/sk.html index f0cf9af16..0afe2249a 100644 --- a/src/partials/languages/sk.html +++ b/src/partials/languages/sk.html @@ -38,5 +38,6 @@ "skip.link.title": "Preskočiť na obsah", "source.link.title": "Zobraziť repozitár", "source.revision.date": "Posledná aktualizácia", + "source.revision.date_created": "Vytvorené", "toc.title": "Obsah" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sl.html b/src/partials/languages/sl.html index 4dec36310..c435870a4 100644 --- a/src/partials/languages/sl.html +++ b/src/partials/languages/sl.html @@ -38,5 +38,6 @@ "skip.link.title": "Skoči na vsebino", "source.link.title": "Pojdi na repozitorij", "source.revision.date": "Zadnja posodobitev", + "source.revision.date_created": "Ustvarjeno", "toc.title": "Kazalo" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sr.html b/src/partials/languages/sr.html index 7109a2e4c..f928676b2 100644 --- a/src/partials/languages/sr.html +++ b/src/partials/languages/sr.html @@ -39,5 +39,6 @@ "skip.link.title": "Иди на текст", "source.link.title": "Иди у репозиторијум", "source.revision.date": "Последња исправка", + "source.revision.date_created": "Створено", "toc.title": "Садржај" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sv.html b/src/partials/languages/sv.html index 7e86dc88e..f8a5e5ae1 100644 --- a/src/partials/languages/sv.html +++ b/src/partials/languages/sv.html @@ -47,6 +47,7 @@ "skip.link.title": "Gå till innehållet", "source.link.title": "Gå till datakatalog", "source.revision.date": "Senaste uppdateringen", + "source.revision.date_created": "Skapad", "tabs.title": "Flikar", "toc.title": "Innehållsförteckning" }[key] }}{% endmacro %} diff --git a/src/partials/languages/th.html b/src/partials/languages/th.html index 05d91c91d..77469d9f3 100644 --- a/src/partials/languages/th.html +++ b/src/partials/languages/th.html @@ -38,5 +38,6 @@ "search.result.other": "พบ # เอกสารที่ตรงกัน", "skip.link.title": "ข้ามไปที่เนื้อหา", "source.link.title": "ไปที่ Repository", + "source.revision.date_created": "สร้าง", "toc.title": "สารบัญ" }[key] }}{% endmacro %} diff --git a/src/partials/languages/tr.html b/src/partials/languages/tr.html index 85c625049..be6b666f6 100644 --- a/src/partials/languages/tr.html +++ b/src/partials/languages/tr.html @@ -39,5 +39,6 @@ "skip.link.title": "Ana içeriğe geç", "source.link.title": "Depoya git", "source.revision.date": "Son Güncelleme", + "source.revision.date_created": "Oluşturuldu", "toc.title": "İçindekiler" }[key] }}{% endmacro %} diff --git a/src/partials/languages/uk.html b/src/partials/languages/uk.html index 563c7ed2c..43c90fb45 100644 --- a/src/partials/languages/uk.html +++ b/src/partials/languages/uk.html @@ -39,5 +39,6 @@ "skip.link.title": "Перейти до змісту", "source.link.title": "Перейти до репозиторію", "source.revision.date": "Останнє оновлення", + "source.revision.date_created": "Створено", "toc.title": "Зміст" }[key] }}{% endmacro %} diff --git a/src/partials/languages/vi.html b/src/partials/languages/vi.html index b5247ef72..93a71318a 100644 --- a/src/partials/languages/vi.html +++ b/src/partials/languages/vi.html @@ -39,5 +39,6 @@ "skip.link.title": "Vào thẳng nội dung", "source.link.title": "Đến kho lưu trữ mã nguồn", "source.revision.date": "Cập nhật cuối cùng", + "source.revision.date_created": "Tạo", "toc.title": "Mục lục" }[key] }}{% endmacro %} diff --git a/src/partials/languages/zh-Hant.html b/src/partials/languages/zh-Hant.html index 4def50568..c3ad5d9a0 100644 --- a/src/partials/languages/zh-Hant.html +++ b/src/partials/languages/zh-Hant.html @@ -42,5 +42,6 @@ "skip.link.title": "跳轉至", "source.link.title": "前往 GitHub 倉庫", "source.revision.date": "最後更新", + "source.revision.date_created": "已建立", "toc.title": "目錄" }[key] }}{% endmacro %} diff --git a/src/partials/languages/zh-TW.html b/src/partials/languages/zh-TW.html index 776094f8d..f64e72df0 100644 --- a/src/partials/languages/zh-TW.html +++ b/src/partials/languages/zh-TW.html @@ -42,5 +42,6 @@ "skip.link.title": "跳轉到", "source.link.title": "前往倉庫", "source.revision.date": "最後更新", + "source.revision.date_created": "สร้าง", "toc.title": "目錄" }[key] }}{% endmacro %} diff --git a/src/partials/languages/zh.html b/src/partials/languages/zh.html index 40cdcab81..79a018498 100644 --- a/src/partials/languages/zh.html +++ b/src/partials/languages/zh.html @@ -42,5 +42,6 @@ "skip.link.title": "跳转至", "source.link.title": "前往 GitHub 仓库", "source.revision.date": "最后更新", + "source.revision.date_created": "已建立", "toc.title": "目录" }[key] }}{% endmacro %} diff --git a/src/partials/source-date.html b/src/partials/source-date.html index 611e87892..6a6707e9c 100644 --- a/src/partials/source-date.html +++ b/src/partials/source-date.html @@ -32,6 +32,10 @@ {% if page.meta.git_revision_date_localized %} {{ label }}: {{ page.meta.git_revision_date_localized }} + {% if page.meta.git_creation_date_localized %} +
{{ lang.t("source.revision.date_created") }}: {{ page.meta.git_creation_date_localized }} + {% endif %} + {% elif page.meta.revision_date %} {{ label }}: {{ page.meta.revision_date }} From f672303322d4b15a2704502251109ed79955bbdc Mon Sep 17 00:00:00 2001 From: Tim Vink Date: Mon, 19 Apr 2021 11:44:26 +0200 Subject: [PATCH 2/4] Improve wording of revision date plugin options --- docs/setup/adding-a-git-repository.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/setup/adding-a-git-repository.md b/docs/setup/adding-a-git-repository.md index b16fa5bc5..6557054a0 100644 --- a/docs/setup/adding-a-git-repository.md +++ b/docs/setup/adding-a-git-repository.md @@ -123,7 +123,7 @@ The following options are supported: `enabled_if_env`{ #enabled_if_env } -: :octicons-milestone-24: Default: _none_ – This option defines whether the +: :octicons-milestone-24: Default: _none_ – Define whether the date is actually extracted from git, which makes it possible to disable extraction for cases when the repository is not available: @@ -164,7 +164,7 @@ The following options are supported: `type`{ #type } -: :octicons-milestone-24: Default: `date` – This option allows to change the +: :octicons-milestone-24: Default: `date` – Change the format of the date to be displayed. Valid values are `date`, `datetime`, `iso_date`, `iso_datetime` and `timeago`: @@ -176,7 +176,7 @@ The following options are supported: `fallback_to_build_date`{ #fallback_to_build_date } -: :octicons-milestone-24: Default: `false` – This option specifies whether +: :octicons-milestone-24: Default: `false` – Specifies whether the time when `mkdocs build` was executed should be used as a fallback when the git repository is not available: @@ -188,7 +188,7 @@ The following options are supported: `enable_creation_date`{ #enable_creation_date } -: :octicons-milestone-24: Default: `false` – This option specifies whether to also add a page *Created* date at the bottom of each page. +: :octicons-milestone-24: Default: `false` – Whether to add a *Created* date at the bottom of each page. ``` yaml plugins: From 33212c592bffc0e96c63a7236170853d12bed738 Mon Sep 17 00:00:00 2001 From: Tim Vink Date: Thu, 22 Apr 2021 10:56:20 +0200 Subject: [PATCH 3/4] Further improve wording of revision date plugin options --- docs/setup/adding-a-git-repository.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/setup/adding-a-git-repository.md b/docs/setup/adding-a-git-repository.md index 6557054a0..5bc2a2bed 100644 --- a/docs/setup/adding-a-git-repository.md +++ b/docs/setup/adding-a-git-repository.md @@ -123,8 +123,8 @@ The following options are supported: `enabled_if_env`{ #enabled_if_env } -: :octicons-milestone-24: Default: _none_ – Define whether the - date is actually extracted from git, which makes it possible to disable +: :octicons-milestone-24: Default: _none_ – When specified the data will only be extracted from git + if the environment variable exists. This makes it possible to disable extraction for cases when the repository is not available: ``` yaml @@ -164,9 +164,8 @@ The following options are supported: `type`{ #type } -: :octicons-milestone-24: Default: `date` – Change the - format of the date to be displayed. Valid values are `date`, `datetime`, - `iso_date`, `iso_datetime` and `timeago`: +: :octicons-milestone-24: Default: `date` – The format of the date to be displayed. + Valid values are `date`, `datetime`, `iso_date`, `iso_datetime` and `timeago`: ``` yaml plugins: @@ -176,8 +175,8 @@ The following options are supported: `fallback_to_build_date`{ #fallback_to_build_date } -: :octicons-milestone-24: Default: `false` – Specifies whether - the time when `mkdocs build` was executed should be used as a fallback when +: :octicons-milestone-24: Default: `false` – Enables falling back to + the time when `mkdocs build` was executed. Can be used as a fallback when the git repository is not available: ``` yaml @@ -188,7 +187,7 @@ The following options are supported: `enable_creation_date`{ #enable_creation_date } -: :octicons-milestone-24: Default: `false` – Whether to add a *Created* date at the bottom of each page. +: :octicons-milestone-24: Default: `false` – Enables adding a *Created* date at the bottom of each page. ``` yaml plugins: From cee1eb465d4a134d7f0e23f4a4885e02ecf70052 Mon Sep 17 00:00:00 2001 From: Tim Vink Date: Sun, 25 Apr 2021 19:57:30 +0200 Subject: [PATCH 4/4] Add source-file.html partial and rename date based translation --- src/partials/languages/af.html | 5 ++-- src/partials/languages/ar.html | 3 +- src/partials/languages/bg.html | 3 +- src/partials/languages/bn.html | 3 +- src/partials/languages/ca.html | 3 +- src/partials/languages/cs.html | 3 +- src/partials/languages/da.html | 3 +- src/partials/languages/de.html | 3 +- src/partials/languages/en.html | 3 +- src/partials/languages/eo.html | 3 +- src/partials/languages/es.html | 3 +- src/partials/languages/et.html | 3 +- src/partials/languages/fa.html | 3 +- src/partials/languages/fi.html | 3 +- src/partials/languages/fr.html | 3 +- src/partials/languages/gl.html | 3 +- src/partials/languages/gr.html | 3 +- src/partials/languages/he.html | 3 +- src/partials/languages/hi.html | 3 +- src/partials/languages/hr.html | 3 +- src/partials/languages/hu.html | 3 +- src/partials/languages/id.html | 3 +- src/partials/languages/is.html | 3 +- src/partials/languages/it.html | 3 +- src/partials/languages/ja.html | 3 +- src/partials/languages/ka.html | 3 +- src/partials/languages/kr.html | 3 +- src/partials/languages/my.html | 3 +- src/partials/languages/nl.html | 3 +- src/partials/languages/nn.html | 3 +- src/partials/languages/no.html | 3 +- src/partials/languages/pl.html | 3 +- src/partials/languages/pt.html | 3 +- src/partials/languages/ro.html | 3 +- src/partials/languages/ru.html | 3 +- src/partials/languages/sh.html | 3 +- src/partials/languages/si.html | 3 +- src/partials/languages/sk.html | 3 +- src/partials/languages/sl.html | 3 +- src/partials/languages/sr.html | 3 +- src/partials/languages/sv.html | 3 +- src/partials/languages/th.html | 4 ++- src/partials/languages/tr.html | 3 +- src/partials/languages/uk.html | 3 +- src/partials/languages/vi.html | 3 +- src/partials/languages/zh-Hant.html | 3 +- src/partials/languages/zh-TW.html | 3 +- src/partials/languages/zh.html | 3 +- src/partials/source-date.html | 45 ++--------------------------- src/partials/source-file.html | 44 ++++++++++++++++++++++++++++ 50 files changed, 144 insertions(+), 92 deletions(-) create mode 100644 src/partials/source-file.html diff --git a/src/partials/languages/af.html b/src/partials/languages/af.html index 414d4c204..abae52964 100644 --- a/src/partials/languages/af.html +++ b/src/partials/languages/af.html @@ -38,7 +38,8 @@ "search.result.other": "# ooreenstemmende dokumente", "skip.link.title": "Slaan oor na inhoud", "source.link.title": "Slaan oor na inhoud", - "source.revision.date": "Laaste opdatering", - "source.revision.date_created": "Geskep", + "source.revision.date": "Laaste opdatering", + "source.file.date.updated": "Laaste opdatering", + "source.file.date.created": "Geskep", "toc.title": "Inhoudsopgawe" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ar.html b/src/partials/languages/ar.html index 7618c518f..254f6f21c 100644 --- a/src/partials/languages/ar.html +++ b/src/partials/languages/ar.html @@ -40,6 +40,7 @@ "skip.link.title": "انتقل إلى المحتوى", "source.link.title": "اذهب إلى المصدر", "source.revision.date": "اخر تحديث", - "source.revision.date_created": "خلقت", + "source.file.date.updated": "اخر تحديث", + "source.file.date.created": "خلقت", "toc.title": "جدول المحتويات" }[key] }}{% endmacro %} diff --git a/src/partials/languages/bg.html b/src/partials/languages/bg.html index d533dd6cf..2204b6251 100644 --- a/src/partials/languages/bg.html +++ b/src/partials/languages/bg.html @@ -45,7 +45,8 @@ "skip.link.title": "Към съдържанието", "source.link.title": "Към хранилището", "source.revision.date": "Последна промяна", - "source.revision.date_created": "Създаден", + "source.file.date.updated": "Последна промяна", + "source.file.date.created": "Създаден", "tabs.title": "Табове", "toc.title": "Съдържание" }[key] }}{% endmacro %} diff --git a/src/partials/languages/bn.html b/src/partials/languages/bn.html index 3aeedc0b6..9acec3c14 100644 --- a/src/partials/languages/bn.html +++ b/src/partials/languages/bn.html @@ -43,7 +43,8 @@ "skip.link.title": "কনটেন্টে যান", "source.link.title": "রিপোজিটরিতে যান", "source.revision.date": "শেষ আপডেট", - "source.revision.date_created": "তৈরি হয়েছে", + "source.file.date.updated": "শেষ আপডেট", + "source.file.date.created": "তৈরি হয়েছে", "tabs.title": "ট্যাব", "toc.title": "টেবিল অফ কনটেন্ট" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ca.html b/src/partials/languages/ca.html index 32f11ab17..898072ee8 100644 --- a/src/partials/languages/ca.html +++ b/src/partials/languages/ca.html @@ -38,6 +38,7 @@ "skip.link.title": "Salta el contingut", "source.link.title": "Ves al repositori", "source.revision.date": "Darrera actualització", - "source.revision.date_created": "Creada", + "source.file.date.updated": "Darrera actualització", + "source.file.date.created": "Creada", "toc.title": "Taula de continguts" }[key] }}{% endmacro %} diff --git a/src/partials/languages/cs.html b/src/partials/languages/cs.html index 8b64e6a8c..e5d555a87 100644 --- a/src/partials/languages/cs.html +++ b/src/partials/languages/cs.html @@ -38,6 +38,7 @@ "skip.link.title": "Přeskočit obsah", "source.link.title": "Přejít do repozitáře", "source.revision.date": "Poslední aktualizace", - "source.revision.date_created": "Vytvořeno", + "source.file.date.updated": "Poslední aktualizace", + "source.file.date.created": "Vytvořeno", "toc.title": "Obsah" }[key] }}{% endmacro %} diff --git a/src/partials/languages/da.html b/src/partials/languages/da.html index b745e6b57..3b161a6aa 100644 --- a/src/partials/languages/da.html +++ b/src/partials/languages/da.html @@ -39,6 +39,7 @@ "skip.link.title": "Gå til indholdet", "source.link.title": "Åbn arkiv", "source.revision.date": "Sidste ændring", - "source.revision.date_created": "Oprettet", + "source.file.date.updated": "Sidste ændring", + "source.file.date.created": "Oprettet", "toc.title": "Indholdsfortegnelse" }[key] }}{% endmacro %} diff --git a/src/partials/languages/de.html b/src/partials/languages/de.html index 033f98480..41c3e5ca9 100644 --- a/src/partials/languages/de.html +++ b/src/partials/languages/de.html @@ -43,6 +43,7 @@ "skip.link.title": "Zum Inhalt", "source.link.title": "Quellcode", "source.revision.date": "Letztes Update", - "source.revision.date_created": "Erstellt", + "source.file.date.updated": "Letztes Update", + "source.file.date.created": "Erstellt", "toc.title": "Inhaltsverzeichnis" }[key] }}{% endmacro %} diff --git a/src/partials/languages/en.html b/src/partials/languages/en.html index d0537d3b2..8f0239eed 100644 --- a/src/partials/languages/en.html +++ b/src/partials/languages/en.html @@ -50,7 +50,8 @@ "skip.link.title": "Skip to content", "source.link.title": "Go to repository", "source.revision.date": "Last update", - "source.revision.date_created": "Created", + "source.file.date.updated": "Last update", + "source.file.date.created": "Created", "tabs.title": "Tabs", "toc.title": "Table of contents" }[key] }}{% endmacro %} diff --git a/src/partials/languages/eo.html b/src/partials/languages/eo.html index 304839c27..07af949a7 100644 --- a/src/partials/languages/eo.html +++ b/src/partials/languages/eo.html @@ -43,7 +43,8 @@ "skip.link.title": "Saltu al enhavo", "source.link.title": "Iru al deponejo", "source.revision.date": "Lasta ĝisdatigo", - "source.revision.date_created": "Kreita", + "source.file.date.updated": "Lasta ĝisdatigo", + "source.file.date.created": "Kreita", "tabs.title": "Langetoj", "toc.title": "Enhavtabelo" }[key] }}{% endmacro %} diff --git a/src/partials/languages/es.html b/src/partials/languages/es.html index aa7a2f148..abf6bd6bc 100644 --- a/src/partials/languages/es.html +++ b/src/partials/languages/es.html @@ -47,7 +47,8 @@ "skip.link.title": "Saltar a contenido", "source.link.title": "Ir al repositorio", "source.revision.date": "Última actualización", - "source.revision.date_created": "Created", + "source.file.date.updated": "Última actualización", + "source.file.date.created": "Created", "tabs.title": "Pestañas", "toc.title": "Tabla de contenidos" }[key] }}{% endmacro %} diff --git a/src/partials/languages/et.html b/src/partials/languages/et.html index 2f6b5a579..eac90dcbe 100644 --- a/src/partials/languages/et.html +++ b/src/partials/languages/et.html @@ -38,6 +38,7 @@ "skip.link.title": "Keri sisuni", "source.link.title": "Ava repositooriumis", "source.revision.date": "Viimane uuendus", - "source.revision.date_created": "Loodud", + "source.file.date.updated": "Viimane uuendus", + "source.file.date.created": "Loodud", "toc.title": "Sisukord" }[key] }}{% endmacro %} diff --git a/src/partials/languages/fa.html b/src/partials/languages/fa.html index 50c0b6bb3..77fc6fb2a 100644 --- a/src/partials/languages/fa.html +++ b/src/partials/languages/fa.html @@ -40,6 +40,7 @@ "skip.link.title": "پرش به محتویات", "source.link.title": "رفتن به مخزن", "source.revision.date": "اخرین بروزرسانی", - "source.revision.date_created": "ایجاد شده", + "source.file.date.updated": "اخرین بروزرسانی", + "source.file.date.created": "ایجاد شده", "toc.title": "فهرست موضوعات" }[key] }}{% endmacro %} diff --git a/src/partials/languages/fi.html b/src/partials/languages/fi.html index fcba97648..9ad2e3c8b 100644 --- a/src/partials/languages/fi.html +++ b/src/partials/languages/fi.html @@ -39,6 +39,7 @@ "skip.link.title": "Hyppää sisältöön", "source.link.title": "Mene repositoryyn", "source.revision.date": "Viimeisin päivitys", - "source.revision.date_created": "Luotu", + "source.file.date.updated": "Viimeisin päivitys", + "source.file.date.created": "Luotu", "toc.title": "Sisällysluettelo" }[key] }}{% endmacro %} diff --git a/src/partials/languages/fr.html b/src/partials/languages/fr.html index fa2652b3c..efd6f3928 100644 --- a/src/partials/languages/fr.html +++ b/src/partials/languages/fr.html @@ -39,6 +39,7 @@ "skip.link.title": "Aller au contenu", "source.link.title": "Aller au dépôt", "source.revision.date": "Dernière mise à jour", - "source.revision.date_created": "Créé", + "source.file.date.updated": "Dernière mise à jour", + "source.file.date.created": "Créé", "toc.title": "Table des matières" }[key] }}{% endmacro %} diff --git a/src/partials/languages/gl.html b/src/partials/languages/gl.html index ee6191387..cffaf60c5 100644 --- a/src/partials/languages/gl.html +++ b/src/partials/languages/gl.html @@ -39,6 +39,7 @@ "skip.link.title": "Ir ao contido", "source.link.title": "Ir ao repositorio", "source.revision.date": "Última actualización", - "source.revision.date_created": "Creada", + "source.file.date.updated": "Última actualización", + "source.file.date.created": "Creada", "toc.title": "Táboa de contidos" }[key] }}{% endmacro %} diff --git a/src/partials/languages/gr.html b/src/partials/languages/gr.html index 6076adbca..0edc3e4dd 100644 --- a/src/partials/languages/gr.html +++ b/src/partials/languages/gr.html @@ -39,6 +39,7 @@ "skip.link.title": "Μετάβαση στο περιεχόμενο", "source.link.title": "Μετάβαση στο αποθετήριο", "source.revision.date": "τελευταία ενημέρωση", - "source.revision.date_created": "Δημιουργήθηκε", + "source.file.date.updated": "τελευταία ενημέρωση", + "source.file.date.created": "Δημιουργήθηκε", "toc.title": "Πίνακας περιεχομένων" }[key] }}{% endmacro %} diff --git a/src/partials/languages/he.html b/src/partials/languages/he.html index 7594ca3f2..79bbf3ea3 100644 --- a/src/partials/languages/he.html +++ b/src/partials/languages/he.html @@ -40,6 +40,7 @@ "skip.link.title": "דלג לתוכן", "source.link.title": "עבור אל מאגר", "source.revision.date": "העדכון אחרון", - "source.revision.date_created": "נוצר", + "source.file.date.updated": "העדכון אחרון", + "source.file.date.created": "נוצר", "toc.title": "תוכן העניינים" }[key] }}{% endmacro %} diff --git a/src/partials/languages/hi.html b/src/partials/languages/hi.html index d61ba7c78..e8669388d 100644 --- a/src/partials/languages/hi.html +++ b/src/partials/languages/hi.html @@ -39,6 +39,7 @@ "skip.link.title": "विषय पर बढ़ें", "source.link.title": "रिपॉजिटरी पर जाएं", "source.revision.date": "आखिरी अपडेट", - "source.revision.date_created": "बनाया था", + "source.file.date.updated": "आखिरी अपडेट", + "source.file.date.created": "बनाया था", "toc.title": "विषय - सूची" }[key] }}{% endmacro %} diff --git a/src/partials/languages/hr.html b/src/partials/languages/hr.html index b1022ecbb..6fa4118c5 100644 --- a/src/partials/languages/hr.html +++ b/src/partials/languages/hr.html @@ -38,6 +38,7 @@ "skip.link.title": "Preskočite na sadržaj", "source.link.title": "Idite u repozitorij", "source.revision.date": "Zadnje ažuriranje", - "source.revision.date_created": "Stvoreno", + "source.file.date.updated": "Zadnje ažuriranje", + "source.file.date.created": "Stvoreno", "toc.title": "Sadržaj" }[key] }}{% endmacro %} diff --git a/src/partials/languages/hu.html b/src/partials/languages/hu.html index 927c7e342..2eeb3112f 100644 --- a/src/partials/languages/hu.html +++ b/src/partials/languages/hu.html @@ -47,7 +47,8 @@ "skip.link.title": "Kihagyás", "source.link.title": "Főoldalra ugrás", "source.revision.date": "Utolsó frissítés", - "source.revision.date_created": "Létrehozva", + "source.file.date.updated": "Utolsó frissítés", + "source.file.date.created": "Létrehozva", "tabs.title": "Lapok", "toc.title": "Tartalomjegyzék" }[key] }}{% endmacro %} diff --git a/src/partials/languages/id.html b/src/partials/languages/id.html index 0a3d8e047..2d68bd5ff 100644 --- a/src/partials/languages/id.html +++ b/src/partials/languages/id.html @@ -39,6 +39,7 @@ "skip.link.title": "Lewati ke isi", "source.link.title": "Menuju repositori", "source.revision.date": "Pembaharuan Terakhir", - "source.revision.date_created": "Dibuat", + "source.revision.date": "Pembaharuan Terakhir", + "source.file.date.created": "Dibuat", "toc.title": "Daftar isi" }[key] }}{% endmacro %} diff --git a/src/partials/languages/is.html b/src/partials/languages/is.html index ad8010390..b3943e42a 100644 --- a/src/partials/languages/is.html +++ b/src/partials/languages/is.html @@ -44,7 +44,8 @@ "skip.link.title": "Hoppa yfir í efni", "source.link.title": "Fara í gagnahirslu (e. repository)", "source.revision.date": "Síðasta uppfærsla", - "source.revision.date_created": "Búið til", + "source.file.date.updated": "Síðasta uppfærsla", + "source.file.date.created": "Búið til", "tabs.title": "Flipar", "toc.title": "Efnisyfirlit" }[key] }}{% endmacro %} diff --git a/src/partials/languages/it.html b/src/partials/languages/it.html index 65d0250ba..6be33aac0 100644 --- a/src/partials/languages/it.html +++ b/src/partials/languages/it.html @@ -39,6 +39,7 @@ "skip.link.title": "Vai al contenuto", "source.link.title": "Apri repository", "source.revision.date": "Ultimo aggiornamento", - "source.revision.date_created": "Creata", + "source.file.date.updated": "Ultimo aggiornamento", + "source.file.date.created": "Creata", "toc.title": "Indice" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ja.html b/src/partials/languages/ja.html index 72f29dd35..6710293b6 100644 --- a/src/partials/languages/ja.html +++ b/src/partials/languages/ja.html @@ -49,7 +49,8 @@ "skip.link.title": "コンテンツにスキップ", "source.link.title": "リポジトリへ", "source.revision.date": "最終更新日", - "source.revision.date_created": "作成した", + "source.file.date.updated": "最終更新日", + "source.file.date.created": "作成した", "tabs.title": "タブ", "toc.title": "目次" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ka.html b/src/partials/languages/ka.html index 8b03abe2c..c3711a486 100644 --- a/src/partials/languages/ka.html +++ b/src/partials/languages/ka.html @@ -43,7 +43,8 @@ "skip.link.title": "კონტენტზე გადასვლა", "source.link.title": "საცავში გადასვლა", "source.revision.date": "ბოლო განახლება", - "source.revision.date_created": "შეიქმნა", + "source.file.date.updated": "ბოლო განახლება", + "source.file.date.created": "შეიქმნა", "tabs.title": "ტაბები", "toc.title": "სარჩევი" }[key] }}{% endmacro %} diff --git a/src/partials/languages/kr.html b/src/partials/languages/kr.html index 2f9065de1..f8de2f2d2 100644 --- a/src/partials/languages/kr.html +++ b/src/partials/languages/kr.html @@ -38,6 +38,7 @@ "search.result.other": "#개의 일치하는 문서", "source.link.title": "저장소로 이동", "source.revision.date": "마지막 업데이트", - "source.revision.date_created": "만들어진", + "source.file.date.updated": "마지막 업데이트", + "source.file.date.created": "만들어진", "toc.title": "목차" }[key] }}{% endmacro %} diff --git a/src/partials/languages/my.html b/src/partials/languages/my.html index e6923cf38..aa52360dd 100644 --- a/src/partials/languages/my.html +++ b/src/partials/languages/my.html @@ -43,7 +43,8 @@ "skip.link.title": "မာတိကာ သို့ သွားရန်", "source.link.title": "repository သို့ သွားရန်", "source.revision.date": "နောက်ဆုံး ထုတ်ပြန်ချက်", - "source.revision.date_created": "နေပြည်တော်", + "source.file.date.updated": "နောက်ဆုံး ထုတ်ပြန်ချက်", + "source.file.date.created": "နေပြည်တော်", "tabs.title": "တက်များ", "toc.title": "ပါဝင်အကြောင်းအရာများ" }[key] }}{% endmacro %} diff --git a/src/partials/languages/nl.html b/src/partials/languages/nl.html index b3e390c3b..2b3920436 100644 --- a/src/partials/languages/nl.html +++ b/src/partials/languages/nl.html @@ -39,6 +39,7 @@ "skip.link.title": "Ga naar inhoud", "source.link.title": "Ga naar repository", "source.revision.date": "Laatst geüpdatet", - "source.revision.date_created": "Gecreëerd", + "source.file.date.updated": "Laatst geüpdatet", + "source.file.date.created": "Gecreëerd", "toc.title": "Inhoudsopgave" }[key] }}{% endmacro %} diff --git a/src/partials/languages/nn.html b/src/partials/languages/nn.html index 7c0d9dcf8..b7f83b3c9 100644 --- a/src/partials/languages/nn.html +++ b/src/partials/languages/nn.html @@ -39,6 +39,7 @@ "skip.link.title": "Gå til innhald", "source.link.title": "Gå til kjelde", "source.revision.date": "Siste oppdatering", - "source.revision.date_created": "Laget", + "source.file.date.updated": "Siste oppdatering", + "source.file.date.created": "Laget", "toc.title": "Innhaldsliste" }[key] }}{% endmacro %} diff --git a/src/partials/languages/no.html b/src/partials/languages/no.html index 224f27a2c..b034679f4 100644 --- a/src/partials/languages/no.html +++ b/src/partials/languages/no.html @@ -39,6 +39,7 @@ "skip.link.title": "Gå til innhold", "source.link.title": "Gå til kilde", "source.revision.date": "Siste oppdatering", - "source.revision.date_created": "Created", + "source.file.date.updated": "Siste oppdatering", + "source.file.date.created": "Created", "toc.title": "Innholdsfortegnelse" }[key] }}{% endmacro %} diff --git a/src/partials/languages/pl.html b/src/partials/languages/pl.html index c319ed0a7..cdb7ba3ab 100755 --- a/src/partials/languages/pl.html +++ b/src/partials/languages/pl.html @@ -47,7 +47,8 @@ "skip.link.title": "Przejdź do treści", "source.link.title": "Idź do repozytorium", "source.revision.date": "Ostatnia aktualizacja", - "source.revision.date_created": "Utworzony", + "source.file.date.updated": "Ostatnia aktualizacja", + "source.file.date.created": "Utworzony", "tabs.title": "Zakładki", "toc.title": "Spis treści" }[key] }}{% endmacro %} diff --git a/src/partials/languages/pt.html b/src/partials/languages/pt.html index d5ee69bbf..6b96d30cd 100644 --- a/src/partials/languages/pt.html +++ b/src/partials/languages/pt.html @@ -39,6 +39,7 @@ "skip.link.title": "Ir para o conteúdo", "source.link.title": "Ir ao repositório", "source.revision.date": "Última atualização", - "source.revision.date_created": "Criada", + "source.file.date.updated": "Última atualização", + "source.file.date.created": "Criada", "toc.title": "Índice" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ro.html b/src/partials/languages/ro.html index 7e082f32e..caac19f2b 100644 --- a/src/partials/languages/ro.html +++ b/src/partials/languages/ro.html @@ -39,6 +39,7 @@ "skip.link.title": "Sari la conținut", "source.link.title": "Accesează repository-ul", "source.revision.date": "Ultima actualizare", - "source.revision.date_created": "Creată", + "source.file.date.updated": "Ultima actualizare", + "source.file.date.created": "Creată", "toc.title": "Cuprins" }[key] }}{% endmacro %} diff --git a/src/partials/languages/ru.html b/src/partials/languages/ru.html index 8351f7723..69dd7ce2b 100644 --- a/src/partials/languages/ru.html +++ b/src/partials/languages/ru.html @@ -39,6 +39,7 @@ "skip.link.title": "Перейти к содержанию", "source.link.title": "Перейти к репозиторию", "source.revision.date": "Последнее обновление", - "source.revision.date_created": "Созданный", + "source.file.date.updated": "Последнее обновление", + "source.file.date.created": "Созданный", "toc.title": "Содержание" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sh.html b/src/partials/languages/sh.html index 2719f37df..2f64e5064 100644 --- a/src/partials/languages/sh.html +++ b/src/partials/languages/sh.html @@ -37,6 +37,7 @@ "search.result.other": "# rezultata pretrage", "skip.link.title": "Idi na tekst", "source.link.title": "Idi u repozitorijum", - "source.revision.date_created": "Створено", + "source.file.date.updated": "Ажуриран", + "source.file.date.created": "Створено", "toc.title": "Sadržaj" }[key] }}{% endmacro %} diff --git a/src/partials/languages/si.html b/src/partials/languages/si.html index d86da07d5..2dc89dcde 100644 --- a/src/partials/languages/si.html +++ b/src/partials/languages/si.html @@ -45,7 +45,8 @@ "skip.link.title": "අන්තර්ගතය වෙත යන්න", "source.link.title": "රිපොසිටරියට යන්න", "source.revision.date": "අවසන් යාවත්කාලීන වීම", - "source.revision.date_created": "ٺاھيو ويو", + "source.file.date.updated": "අවසන් යාවත්කාලීන වීම", + "source.file.date.created": "ٺاھيو ويو", "tabs.title": "ටැබ්ස්", "toc.title": "පටුන" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sk.html b/src/partials/languages/sk.html index 0afe2249a..21d4870d9 100644 --- a/src/partials/languages/sk.html +++ b/src/partials/languages/sk.html @@ -38,6 +38,7 @@ "skip.link.title": "Preskočiť na obsah", "source.link.title": "Zobraziť repozitár", "source.revision.date": "Posledná aktualizácia", - "source.revision.date_created": "Vytvorené", + "source.file.date.updated": "Posledná aktualizácia", + "source.file.date.created": "Vytvorené", "toc.title": "Obsah" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sl.html b/src/partials/languages/sl.html index c435870a4..312bcb851 100644 --- a/src/partials/languages/sl.html +++ b/src/partials/languages/sl.html @@ -38,6 +38,7 @@ "skip.link.title": "Skoči na vsebino", "source.link.title": "Pojdi na repozitorij", "source.revision.date": "Zadnja posodobitev", - "source.revision.date_created": "Ustvarjeno", + "source.file.date.updated": "Zadnja posodobitev", + "source.file.date.created": "Ustvarjeno", "toc.title": "Kazalo" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sr.html b/src/partials/languages/sr.html index f928676b2..776eede6d 100644 --- a/src/partials/languages/sr.html +++ b/src/partials/languages/sr.html @@ -39,6 +39,7 @@ "skip.link.title": "Иди на текст", "source.link.title": "Иди у репозиторијум", "source.revision.date": "Последња исправка", - "source.revision.date_created": "Створено", + "source.file.date.updated": "Последња исправка", + "source.file.date.created": "Створено", "toc.title": "Садржај" }[key] }}{% endmacro %} diff --git a/src/partials/languages/sv.html b/src/partials/languages/sv.html index f8a5e5ae1..d2f09d871 100644 --- a/src/partials/languages/sv.html +++ b/src/partials/languages/sv.html @@ -47,7 +47,8 @@ "skip.link.title": "Gå till innehållet", "source.link.title": "Gå till datakatalog", "source.revision.date": "Senaste uppdateringen", - "source.revision.date_created": "Skapad", + "source.file.date.updated": "Senaste uppdateringen", + "source.file.date.created": "Skapad", "tabs.title": "Flikar", "toc.title": "Innehållsförteckning" }[key] }}{% endmacro %} diff --git a/src/partials/languages/th.html b/src/partials/languages/th.html index 77469d9f3..2c8c059d2 100644 --- a/src/partials/languages/th.html +++ b/src/partials/languages/th.html @@ -38,6 +38,8 @@ "search.result.other": "พบ # เอกสารที่ตรงกัน", "skip.link.title": "ข้ามไปที่เนื้อหา", "source.link.title": "ไปที่ Repository", - "source.revision.date_created": "สร้าง", + "source.revision.date": "สร้าง", + "source.file.date.updated": "สร้าง", + "source.file.date.created": "สร้าง", "toc.title": "สารบัญ" }[key] }}{% endmacro %} diff --git a/src/partials/languages/tr.html b/src/partials/languages/tr.html index be6b666f6..28645b883 100644 --- a/src/partials/languages/tr.html +++ b/src/partials/languages/tr.html @@ -39,6 +39,7 @@ "skip.link.title": "Ana içeriğe geç", "source.link.title": "Depoya git", "source.revision.date": "Son Güncelleme", - "source.revision.date_created": "Oluşturuldu", + "source.file.date.updated": "Son Güncelleme", + "source.file.date.created": "Oluşturuldu", "toc.title": "İçindekiler" }[key] }}{% endmacro %} diff --git a/src/partials/languages/uk.html b/src/partials/languages/uk.html index 43c90fb45..266b0c93d 100644 --- a/src/partials/languages/uk.html +++ b/src/partials/languages/uk.html @@ -39,6 +39,7 @@ "skip.link.title": "Перейти до змісту", "source.link.title": "Перейти до репозиторію", "source.revision.date": "Останнє оновлення", - "source.revision.date_created": "Створено", + "source.file.date.updated": "Останнє оновлення", + "source.file.date.created": "Створено", "toc.title": "Зміст" }[key] }}{% endmacro %} diff --git a/src/partials/languages/vi.html b/src/partials/languages/vi.html index 93a71318a..006eb6c5a 100644 --- a/src/partials/languages/vi.html +++ b/src/partials/languages/vi.html @@ -39,6 +39,7 @@ "skip.link.title": "Vào thẳng nội dung", "source.link.title": "Đến kho lưu trữ mã nguồn", "source.revision.date": "Cập nhật cuối cùng", - "source.revision.date_created": "Tạo", + "source.file.date.updated": "Cập nhật cuối cùng", + "source.file.date.created": "Tạo", "toc.title": "Mục lục" }[key] }}{% endmacro %} diff --git a/src/partials/languages/zh-Hant.html b/src/partials/languages/zh-Hant.html index c3ad5d9a0..4d52fdd88 100644 --- a/src/partials/languages/zh-Hant.html +++ b/src/partials/languages/zh-Hant.html @@ -42,6 +42,7 @@ "skip.link.title": "跳轉至", "source.link.title": "前往 GitHub 倉庫", "source.revision.date": "最後更新", - "source.revision.date_created": "已建立", + "source.file.date.updated": "最後更新", + "source.file.date.created": "已建立", "toc.title": "目錄" }[key] }}{% endmacro %} diff --git a/src/partials/languages/zh-TW.html b/src/partials/languages/zh-TW.html index f64e72df0..f69f28232 100644 --- a/src/partials/languages/zh-TW.html +++ b/src/partials/languages/zh-TW.html @@ -42,6 +42,7 @@ "skip.link.title": "跳轉到", "source.link.title": "前往倉庫", "source.revision.date": "最後更新", - "source.revision.date_created": "สร้าง", + "source.file.date.updated": "最後更新", + "source.file.date.created": "สร้าง", "toc.title": "目錄" }[key] }}{% endmacro %} diff --git a/src/partials/languages/zh.html b/src/partials/languages/zh.html index 79a018498..592976fdf 100644 --- a/src/partials/languages/zh.html +++ b/src/partials/languages/zh.html @@ -42,6 +42,7 @@ "skip.link.title": "跳转至", "source.link.title": "前往 GitHub 仓库", "source.revision.date": "最后更新", - "source.revision.date_created": "已建立", + "source.file.date.updated": "最后更新", + "source.file.date.created": "已建立", "toc.title": "目录" }[key] }}{% endmacro %} diff --git a/src/partials/source-date.html b/src/partials/source-date.html index 6a6707e9c..1fdc1fa3d 100644 --- a/src/partials/source-date.html +++ b/src/partials/source-date.html @@ -1,44 +1,3 @@ - - -{% import "partials/language.html" as lang with context %} - - -{% set label = lang.t("source.revision.date") %} -
-
- - - - {% if page.meta.git_revision_date_localized %} - {{ label }}: {{ page.meta.git_revision_date_localized }} - - {% if page.meta.git_creation_date_localized %} -
{{ lang.t("source.revision.date_created") }}: {{ page.meta.git_creation_date_localized }} - {% endif %} - - - {% elif page.meta.revision_date %} - {{ label }}: {{ page.meta.revision_date }} - {% endif %} -
-
+ +{% include "source-file.html" %} \ No newline at end of file diff --git a/src/partials/source-file.html b/src/partials/source-file.html new file mode 100644 index 000000000..d1ce0b667 --- /dev/null +++ b/src/partials/source-file.html @@ -0,0 +1,44 @@ + + +{% import "partials/language.html" as lang with context %} + + +{% set label = lang.t("source.file.date.updated") %} +
+
+ + + + {% if page.meta.git_revision_date_localized %} + {{ label }}: {{ page.meta.git_revision_date_localized }} + + {% if page.meta.git_creation_date_localized %} +
{{ lang.t("source.file.date.created") }}: {{ page.meta.git_creation_date_localized }} + {% endif %} + + + {% elif page.meta.revision_date %} + {{ label }}: {{ page.meta.revision_date }} + {% endif %} +
+