diff options
author | friendica <info@friendica.com> | 2014-05-20 20:22:38 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-20 20:22:38 -0700 |
commit | 71f5908e216c71e7ab379bc15902ddf59b2884ba (patch) | |
tree | 1560bf03acf3fc873f042a0a4a6998b5d3b7bda6 /include | |
parent | fc0967b84b5e1301c0ce3a9a41c00985ce16bc82 (diff) | |
download | volse-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.php | 6 |
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)) { |