aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/language.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/language.php b/include/language.php
index b43f5aacc..f4c7d1524 100644
--- a/include/language.php
+++ b/include/language.php
@@ -145,10 +145,12 @@ function load_translation_table($lang, $install = false) {
/**
* @brief translate string if translation exists.
*
- * @param s string that should get translated
+ * @param $s string that should get translated
+ * @param $ctx optional context to appear in po file
* @return translated string if exsists, otherwise s
+ *
*/
-function t($s) {
+function t($s,$ctx = '') {
global $a;
if(x($a->strings,$s)) {