From f6dd78734f86f8daed7c5d472e7a199301095ff8 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 17 Sep 2024 13:39:12 +0200 Subject: More theme and i18n stuff --- src/application/i18n.php | 6 +++++ src/application/messages/de.msg | 10 +++++++ src/application/views/template_end.php | 41 +++++++++++++++++++++++++++-- src/application/views/view_logintoreply.php | 7 +++++ 4 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 src/application/views/view_logintoreply.php (limited to 'src/application') diff --git a/src/application/i18n.php b/src/application/i18n.php index cdc61e1..a1f2f24 100644 --- a/src/application/i18n.php +++ b/src/application/i18n.php @@ -183,6 +183,12 @@ function i18n_get(string $msgid, array $params = [], ?string $context = null): s ); } +function i18n_metadata(string $lang): array { + global $__i18n_msg_metadata; + + return $__i18n_msg_metadata[$lang] ?? []; +} + function i18n_get_plural(string $msgid_singular, string $msgid_plural, int $count, array $params = [], ?string $context = null): string { global $__i18n_current_locale, $__i18n_msg_metadata, $__i18n_msg_store_plural; diff --git a/src/application/messages/de.msg b/src/application/messages/de.msg index c77a569..ed8178e 100644 --- a/src/application/messages/de.msg +++ b/src/application/messages/de.msg @@ -1,4 +1,5 @@ metadata({ + "langName": "Deutsch", "plural": { "indexMapping": "ifelse(n = 0, 2, ifelse(n = 1, 0, 1))" } @@ -308,3 +309,12 @@ metadata({ : "Keep post" = "Beitrag beibehalten" + +: "Log in to reply to this topic" += "Melden Sie sich an, um auf dieses Thema zu antworten" + +: "Theme:" += "Aussehen:" + +: "Language:" += "Sprache:" diff --git a/src/application/views/template_end.php b/src/application/views/template_end.php index d12e2ff..f322b36 100644 --- a/src/application/views/template_end.php +++ b/src/application/views/template_end.php @@ -3,8 +3,41 @@
+ © = date("Y") ?> = htmlentities(env("MYSTIC_FORUM_COPYRIGHT") ?? env("MYSTIC_FORUM_TITLE") ?? "Forum") ?>. + Powered by mysticBB. + | ++ + + + | +