Changeset 5232 for extensions/AMetaData
- Timestamp:
- Mar 21, 2010, 10:16:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/JpegMetaData/Common/L10n.class.php
r4705 r5232 103 103 * 104 104 * @param String $language : the language 105 * @param String $charset : charset encoding (UTF-8) 105 106 * @return String : the defined language 106 107 */ 107 static function setLanguage($language="en_UK" )108 static function setLanguage($language="en_UK", $charset="UTF-8") 108 109 { 109 110 global $supported_locales; … … 146 147 T_bindtextdomain(self::JMD_TAGDESC, dirname(dirname(__FILE__))."/Locale"); 147 148 149 /* 150 * set the charsets 151 */ 152 if($charset!="") 153 { 154 T_bind_textdomain_codeset(self::JMD_TAG, $charset); 155 T_bind_textdomain_codeset(self::JMD_TAGDESC, $charset); 156 } 157 148 158 return(self::$language); 149 159 } … … 166 176 static function get($key) 167 177 { 178 T_textdomain(self::JMD_TAG); 168 179 return(@T_dgettext(self::JMD_TAG, $key)); 169 180 } … … 176 187 static function getDesc($tagName) 177 188 { 189 T_textdomain(self::JMD_TAGDESC); 178 190 return(@T_dgettext(self::JMD_TAGDESC, $tagName)); 179 191 }
Note: See TracChangeset
for help on using the changeset viewer.