aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-20 20:22:38 -0700
committerfriendica <info@friendica.com>2014-05-20 20:22:38 -0700
commit71f5908e216c71e7ab379bc15902ddf59b2884ba (patch)
tree1560bf03acf3fc873f042a0a4a6998b5d3b7bda6 /include
parentfc0967b84b5e1301c0ce3a9a41c00985ce16bc82 (diff)
downloadvolse-hubzilla-71f5908e216c71e7ab379bc15902ddf59b2884ba.tar.gz
volse-hubzilla-71f5908e216c71e7ab379bc15902ddf59b2884ba.tar.bz2
volse-hubzilla-71f5908e216c71e7ab379bc15902ddf59b2884ba.zip
add optional context to translations
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)) {