aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-06-10 08:26:06 +0000
committerMario <mario@mariovavti.com>2024-06-10 08:26:06 +0000
commit69862bc6df3ab0a32edbb90ff0e60ffedd03cc4e (patch)
tree53728c5f1b2100ca4aff5fab421850bc02e8d8a0 /include
parent388e7c88dff956dca9e3498076e9f3cf49a153c8 (diff)
downloadvolse-hubzilla-69862bc6df3ab0a32edbb90ff0e60ffedd03cc4e.tar.gz
volse-hubzilla-69862bc6df3ab0a32edbb90ff0e60ffedd03cc4e.tar.bz2
volse-hubzilla-69862bc6df3ab0a32edbb90ff0e60ffedd03cc4e.zip
docu and declare return type for t()
Diffstat (limited to 'include')
-rw-r--r--include/language.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/language.php b/include/language.php
index 22f350aac..538f67d90 100644
--- a/include/language.php
+++ b/include/language.php
@@ -198,10 +198,10 @@ function load_translation_table($lang, $install = false) {
*
* @param string $s string that should get translated
* @param string $ctx (optional) context to appear in po file
- * @return translated string if exists, otherwise return $s
+ * @return string translated string if exists, otherwise return $s
*
*/
-function t($s, $ctx = '') {
+function t($s, $ctx = ''): string {
$cs = $ctx ? '__ctx:' . $ctx . '__ ' . $s : $s;
if (x(App::$strings, $cs)) {