diff options
Diffstat (limited to 'include/language.php')
-rw-r--r-- | include/language.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/language.php b/include/language.php index f4c7d1524..ba14c33be 100644 --- a/include/language.php +++ b/include/language.php @@ -153,8 +153,9 @@ function load_translation_table($lang, $install = false) { function t($s,$ctx = '') { global $a; - if(x($a->strings,$s)) { - $t = $a->strings[$s]; + $cs = $ctx?"__ctx:".$ctx."__ ".$s:$s; + if(x($a->strings,$cs)) { + $t = $a->strings[$cs]; return is_array($t) ? $t[0] : $t; } return $s; |