[Vtigercrm-commits] [vtiger-commits] r9808 - /vtigercrm/branches/5.0.3/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Nov 9 03:27:24 EST 2006
Author: richie
Date: Thu Nov 9 01:27:20 2006
New Revision: 9808
Log:
* Function added to get the translated string - Mickie
Modified:
vtigercrm/branches/5.0.3/include/utils/CommonUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/CommonUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/CommonUtils.php Thu Nov 9 01:27:20 2006
@@ -2528,4 +2528,17 @@
}
}
+
+/** Function used to get the translated string to the input string
+ * @param string $str - input string which we want to translate
+ * @return string $str - translated string, if the translated string is available then the translated string other wise original string will be returned
+ */
+function getTranslatedString($str)
+{
+ global $app_strings, $mod_strings, $log;
+ $str = ($app_strings[$str] != '')?$app_strings[$str]:(($mod_strings[$str] != '')?$mod_strings[$str]:$str);
+ $log->debug("function getTranslatedString($str) - translated to ($str)");
+ return $str;
+}
+
?>
More information about the vtigercrm-commits
mailing list