diff options
author | Jonas Kohl | 2024-09-17 14:51:23 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-17 14:51:23 +0200 |
commit | a65d424263adfbff9629c7d91a613e4504c84613 (patch) | |
tree | 7d89c6d85168427782ae8c24625db14df90e376a /src/application/i18n.php | |
parent | f6dd78734f86f8daed7c5d472e7a199301095ff8 (diff) |
Add search
Diffstat (limited to 'src/application/i18n.php')
-rw-r--r-- | src/application/i18n.php | 2 |
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( |