diff options
author | Jonas Kohl | 2024-09-17 13:39:12 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-17 13:39:12 +0200 |
commit | f6dd78734f86f8daed7c5d472e7a199301095ff8 (patch) | |
tree | ef173ed502e189b25c6b5af08db982943adca718 /src/application/i18n.php | |
parent | e8ab5cbddd018f311e2d942c048203b8b3221e4e (diff) |
More theme and i18n stuff
Diffstat (limited to 'src/application/i18n.php')
-rw-r--r-- | src/application/i18n.php | 6 |
1 files changed, 6 insertions, 0 deletions
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; |