From: cajus Date: Fri, 18 Jan 2008 14:37:20 +0000 (+0000) Subject: Moved to locale/compiled X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0abbe36fccaea7e7289a383cd04051222e3b892;p=gosa.git Moved to locale/compiled git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8501 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/helpviewer.php b/gosa-core/html/helpviewer.php index fed1414fe..8107ef4e6 100644 --- a/gosa-core/html/helpviewer.php +++ b/gosa-core/html/helpviewer.php @@ -55,7 +55,7 @@ $GLOBALS['t_language']= $lang; $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to"); diff --git a/gosa-core/html/index.php b/gosa-core/html/index.php index ee95d68af..94a4fb345 100644 --- a/gosa-core/html/index.php +++ b/gosa-core/html/index.php @@ -169,7 +169,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); $smarty->assign ('nextfield', 'username'); diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index 1268cbfc0..3c60db50b 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -57,7 +57,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); /* Create smarty & Set template compile directory */ diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index dcdd935ad..2b7f3a4a7 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -30,7 +30,7 @@ header("Content-type: text/html; charset=UTF-8"); /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); /* Remember everything we did after the last click */ @@ -132,7 +132,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to"); diff --git a/gosa-core/html/password.php b/gosa-core/html/password.php index d830a8374..7ae172154 100644 --- a/gosa-core/html/password.php +++ b/gosa-core/html/password.php @@ -96,7 +96,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); /* Generate server list */ diff --git a/gosa-core/html/setup.php b/gosa-core/html/setup.php index 5bf7f92eb..77454483a 100644 --- a/gosa-core/html/setup.php +++ b/gosa-core/html/setup.php @@ -104,7 +104,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); diff --git a/gosa-core/include/functions_list.inc b/gosa-core/include/functions_list.inc deleted file mode 100644 index c3af95bb9..000000000 --- a/gosa-core/include/functions_list.inc +++ /dev/null @@ -1,264 +0,0 @@ -return( -array ( - 0 => 'touch', - 1 => 'fopen', - 2 => 'fwrite', - 3 => 'var_export', - 4 => 'fclose', - 5 => 'header', - 6 => 'session_start', - 7 => 'error_reporting', - 8 => 'putenv', - 9 => 'setlocale', - 10 => 'bindtextdomain', - 11 => 'textdomain', - 12 => 'sprintf', - 13 => 'str_replace', - 14 => 'gmdate', - 15 => 'imageAlphaBlending', - 16 => 'imageSaveAlpha', - 17 => 'imagesx', - 18 => 'imagesy', - 19 => 'imagecopy', - 20 => 'imagePng', - 21 => 'mysql_pconnect', - 22 => 'mysql_select_db', - 23 => 'mysql_query', - 24 => 'mysql_fetch_array', - 25 => 'mysql_result', - 26 => 'mysql_close', - 27 => 'tempnam', - 28 => 'popen', - 29 => 'fread', - 30 => 'pclose', - 31 => 'unlink', - 32 => 'imagick_blob2image', - 33 => 'imagick_image2blob', - 34 => 'preg_match', - 35 => 'base64_decode', - 36 => 'preg_replace', - 37 => 'srand', - 38 => 'strlen', - 39 => 'date', - 40 => 'preg_split', - 41 => 'trim', - 42 => 'chr', - 43 => 'chunk_split', - 44 => 'is_dir', - 45 => 'is_writable', - 46 => 'session_destroy', - 47 => 'substr', - 48 => 'tidy_parse_string', - 49 => 'tidy_clean_repair', - 50 => 'tidy_error_count', - 51 => 'tidy_warning_count', - 52 => 'nl2br', - 53 => 'intval', - 54 => 'ImageFontWidth', - 55 => 'ImageFontHeight', - 56 => 'imagecolorallocate', - 57 => 'imagerectangle', - 58 => 'imagefilledrectangle', - 59 => 'imagestring', - 60 => 'imagepng', - 61 => 'imagedestroy', - 62 => 'is_int', - 63 => 'session_id', - 64 => 'imap_close', - 65 => 'is_array', - 66 => 'imap_listmailbox', - 67 => 'imap_utf7_decode', - 68 => 'imap_last_error', - 69 => 'imap_getacl', - 70 => 'imap_setacl', - 71 => 'rtrim', - 72 => 'strpos', - 73 => 'is_integer', - 74 => 'implode', - 75 => 'file', - 76 => 'opendir', - 77 => 'time', - 78 => 'readdir', - 79 => 'strstr', - 80 => 'filesize', - 81 => 'stat', - 82 => 'asort', - 83 => 'closedir', - 84 => 'split', - 85 => 'preg_match_all', - 86 => 'array_reverse', - 87 => 'array_slice', - 88 => 'ksort', - 89 => 'dechex', - 90 => 'htmlentities', - 91 => 'strip_tags', - 92 => 'stripcslashes', - 93 => 'get_class', - 94 => 'exec', - 95 => 'ldap_connect', - 96 => 'ldap_set_option', - 97 => 'ldap_set_rebind_proc', - 98 => 'ldap_get_values_len', - 99 => 'ldap_unbind', - 100 => 'reset', - 101 => 'ldap_bind', - 102 => 'ldap_read', - 103 => 'ldap_get_entries', - 104 => 'array_flip', - 105 => 'version_compare', - 106 => 'is_callable', - 107 => 'shell_exec', - 108 => 'function_exists', - 109 => 'system', - 110 => 'ini_get', - 111 => 'posix_getgrgid', - 112 => 'crypt', - 113 => 'strtolower', - 114 => 'get_declared_classes', - 115 => 'mt_srand', - 116 => 'microtime', - 117 => 'escapeshellarg', - 118 => 'flush', - 119 => 'current', - 120 => 'printf', - 121 => 'print_r', - 122 => 'kadm5_init_with_password', - 123 => 'kadm5_chpass_principal', - 124 => 'kadm5_destroy', - 125 => 'base64_encode', - 126 => 'sha1', - 127 => 'define', - 128 => 'getcwd', - 129 => 'array_merge', - 130 => 'chdir', - 131 => 'fgets', - 132 => 'debug_backtrace', - 133 => 'dirname', - 134 => 'set_error_handler', - 135 => 'ini_set', - 136 => 'uniqid', - 137 => 'htmlspecialchars', - 138 => 'serialize', - 139 => 'hexdec', - 140 => 'gettype', - 141 => 'get_object_vars', - 142 => 'is_object', - 143 => 'mysql_num_fields', - 144 => 'mysql_field_name', - 145 => 'mysql_data_seek', - 146 => 'explode', - 147 => 'strtoupper', - 148 => 'syslog', - 149 => 'md5', - 150 => 'arsort', - 151 => 'ltrim', - 152 => 'preg_quote', - 153 => 'func_get_args', - 154 => 'cups_get_dest_list', - 155 => 'cups_get_printer_attributes', - 156 => 'session_unregister', - 157 => 'pow', - 158 => 'key', - 159 => 'mt_rand', - 160 => 'mb_substr', - 161 => 'is_link', - 162 => 'sort', - 163 => 'is_readable', - 164 => 'is_file', - 165 => 'get_class_vars', - 166 => 'array_keys', - 167 => 'xml_parser_create', - 168 => 'xml_set_object', - 169 => 'xml_set_element_handler', - 170 => 'chop', - 171 => 'xml_error_string', - 172 => 'xml_get_current_line_number', - 173 => 'recode', - 174 => 'iconv', - 175 => 'ord', - 176 => 'call_user_func_array', - 177 => 'array_unique', - 178 => 'usort', - 179 => 'substr_count', - 180 => 'end', - 181 => 'strtr', - 182 => 'strftime', - 183 => 'each', - 184 => 'array_values', - 185 => 'array_pop', - 186 => 'array_count_values', - 187 => 'array_push', - 188 => 'array_splice', - 189 => 'in_array', - 190 => 'array_shift', - 191 => 'addslashes', - 192 => 'rsort', - 193 => 'is_numeric', - 194 => 'settype', - 195 => 'ob_start', - 196 => 'ob_get_contents', - 197 => 'ob_end_clean', - 198 => 'file_exists', - 199 => 'filemtime', - 200 => 'urlencode', - 201 => 'crc32', - 202 => 'basename', - 203 => 'array_unshift', - 204 => 'next', - 205 => 'round', - 206 => 'preg_grep', - 207 => 'rawurlencode', - 208 => 'bin2hex', - 209 => 'str_repeat', - 210 => 'extract', - 211 => 'preg_replace_callback', - 212 => 'ucfirst', - 213 => 'wordwrap', - 214 => 'substr_replace', - 215 => 'ceil', - 216 => 'floor', - 217 => 'array_map', - 218 => 'range', - 219 => 'strtotime', - 220 => 'mktime', - 221 => 'parse_url', - 222 => 'fsockopen', - 223 => 'fputs', - 224 => 'token_get_all', - 225 => 'unserialize', - 226 => 'realpath', - 227 => 'strncmp', - 228 => 'mysql_fetch_row', - 229 => 'array_search', - 230 => 'array_key_exists', - 231 => 'mysql_error', - 232 => 'stripslashes', - 233 => 'ldap_start_tls', - 234 => 'utf8_encode', - 235 => 'is_string', - 236 => 'natcasesort', - 237 => 'rand', - 238 => 'uasort', - 239 => 'strcasecmp', - 240 => 'strrpos', - 241 => 'file_get_contents', - 242 => 'imagick_ReadImage', - 243 => 'imagick_free', - 244 => 'strrchr', - 245 => 'sleep', - 246 => 'array_chunk', - 247 => 'natsort', - 248 => 'pg_connect', - 249 => 'pg_exec', - 250 => 'pg_close', - 251 => 'pg_set_client_encoding', - 252 => 'pg_freeresult', - 253 => 'getdate', - 254 => 'is_uploaded_file', - 255 => 'ldap_mod_del', - 256 => 'ldap_close', - 257 => 'kadm5_get_principals', - 258 => 'kadm5_delete_principal', - 259 => 'kadm5_create_principal', - 260 => 'join', -)); \ No newline at end of file diff --git a/gosa-core/include/php_setup.inc b/gosa-core/include/php_setup.inc index 62ffba9bd..6e1b51b5f 100644 --- a/gosa-core/include/php_setup.inc +++ b/gosa-core/include/php_setup.inc @@ -18,6 +18,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +define ("LOCALE_DIR", dirname(dirname(__FILE__))."/locale/compiled"); + function gosaRaiseError($errno, $errstr, $errfile, $errline) { global $error_collector,$config, $error_collector_mailto; diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa index d7f249d20..b67072b78 100755 --- a/gosa-core/update-gosa +++ b/gosa-core/update-gosa @@ -1,6 +1,7 @@ #!/usr/bin/php5 "); fclose($handle); + + ?>