Changeset 793 for trunk/include/functions.inc.php
- Timestamp:
- Jun 21, 2005, 9:25:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r777 r793 754 754 } 755 755 } 756 757 /** 758 * returns the element name from its filename 759 * 760 * @param string filename 761 * @return string name 762 */ 763 function get_name_from_file($filename) 764 { 765 return str_replace('_',' ',get_filename_wo_extension($filename)); 766 } 767 768 /** 769 * returns the corresponding value from $lang if existing. Else, the key is 770 * returned 771 * 772 * @param string key 773 * @return string 774 */ 775 function l10n($key) 776 { 777 global $lang; 778 779 return (isset($lang[$key])) ? $lang[$key] : $key; 780 } 756 781 ?>
Note: See TracChangeset
for help on using the changeset viewer.