summaryrefslogtreecommitdiff
path: root/src/application/i18n.php
diff options
context:
space:
mode:
authorJonas Kohl2024-09-17 14:51:23 +0200
committerJonas Kohl2024-09-17 14:51:23 +0200
commita65d424263adfbff9629c7d91a613e4504c84613 (patch)
tree7d89c6d85168427782ae8c24625db14df90e376a /src/application/i18n.php
parentf6dd78734f86f8daed7c5d472e7a199301095ff8 (diff)
Add search
Diffstat (limited to 'src/application/i18n.php')
-rw-r--r--src/application/i18n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/i18n.php b/src/application/i18n.php
index a1f2f24..a7bdd82 100644
--- a/src/application/i18n.php
+++ b/src/application/i18n.php
@@ -173,7 +173,7 @@ function i18n_get(string $msgid, array $params = [], ?string $context = null): s
if ($context !== null)
$key = $context . "\x7F" . $msgid;
- $msg = ($__i18n_msg_store[$__i18n_current_locale] ?? [])[$msgid] ?? $key;
+ $msg = ($__i18n_msg_store[$__i18n_current_locale] ?? [])[$key] ?? $msgid;
uksort($params, fn(string $a, string $b): int => strlen($b) <=> strlen($a));
return str_replace(