[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is b2evolution's localization & language config file 4 * 5 * This file sets the default configuration for locales. 6 * IMPORTANT: Most of these settings can be overriden in the admin (regional settings) and will then 7 * be saved to the database. The database settings superseede settings in this file. 8 * Last significant changes to this file: version 1.6 9 * 10 * @package conf 11 */ 12 if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' ); 13 14 15 /** 16 * Enable localization? 17 * 18 * Set to 0 to disable localization. 19 * Set to 1 to enable gettext localization if supported (not recommended). 20 * Note: you will have to compile the .po files with msgfmt before this will work. 21 * Also, the locale information has to be available on the system ("locale -a" with Unix) 22 * Set to 2 to enable b2evo advanced localization (recommended). 23 * 24 * @global integer 25 */ 26 $use_l10n = 2; 27 28 29 /** 30 * The internal charset. It's used to convert user INPUT/OUTPUT and database data into for 31 * internal use. 32 * 33 * Setting it to an empty string means "follow the user's charset", which gets 34 * taken off his locale (INPUT/OUTPUT charset; {@link $io_charset}). 35 * 36 * If you don't know, don't change this setting. 37 * 38 * This should be supported by {@link mb_list_encodings()}. 39 */ 40 $evo_charset = ''; 41 42 43 /** 44 * Set this to a specific charset, to force this as {@link $io_charset I/O charset}, 45 * if the browser accepts it. 46 * 47 * Setting this to "utf-8" allows you to deliver all pages in this encoding. 48 * 49 * NOTE: make sure, that your PHP/MySQL setup supports this. You most probably need 50 * the mbstring PHP extension and MySQL 4.1 for this to work. 51 * 52 * @global string 53 */ 54 $force_io_charset_if_accepted = ''; 55 56 57 /** 58 * Request a specific charset for the client connection. 59 * 60 * This will issue a MySQL SET NAMES command. This must be a MySQL charset. Example: 'latin1' or 'utf8' 61 * 62 * If left empty, the default charset will be used. The default here is 63 * the default set your MySQL Server. 64 * 65 * This should match the charset you are using internally in b2evolution. 66 * This allows b2evo to work internally in a different charset from the database charset. 67 * Example: b2evo will use latin1 whereas the database uses utf8. 68 * 69 * TODO: This gets overridden anyway with "SET NAMES $evo_charset" in init_charsets() and gets only used until that! 70 * So, does it make sense to configure it here? Or shouldn't it get overridden, if set explicitly here? 71 */ 72 $db_config['connection_charset'] = ''; 73 74 75 /** 76 * Default locale used for backoffice (when we cannot autodetect) and fallback. 77 * This will be overwritten from database settings, if configured there. 78 * These use an ISO 639 language code, a '-' and an ISO 3166 country code. 79 * 80 * This MUST BE in the list below. 81 * 82 * @global string 83 */ 84 $default_locale = 'en-US'; 85 86 87 /** 88 * Load locale related functions: (we need NT_() here) 89 */ 90 require_once $inc_path.'locales/_locale.funcs.php'; 91 92 93 /** 94 * Defining the locales: 95 * These are the default settings. 96 * This array will be overwritten from DB if locales are set there, 97 * that is when they get updated from the Backoffice. 98 * They are also used as fallback, if we have no access to the DB yet. 99 * Flag source: http://www.crwflags.com/fotw/flags/iso3166.html 100 * IMPORTANT: Try to keep the locale names short, they take away valuable space on the screen! 101 * 102 * Documentation of the keys: 103 * - 'messages': 104 * The directory where the locale's files are. 105 * - 'charset': 106 * Character set of the locale's files. 107 * - 'set_locales': 108 * This gets used for {@link setlocale()} (currently only when using gettext support [$use_l10n=1]). 109 * This is a list of locales that get tried. One of them must be available on the system ("locale -a"). 110 * If not given, the value of 'messages' gets used. 111 * 112 * @todo Locale message dirs should be named LOCALE.CHARSET and not LOCALE_CHARSET, e.g. "zh_CN.utf8" instead of "zh_CN_utf-8" (according to gettext) 113 * @todo fp>Actually, the default locale setting should move to install and we should always use the database after that. What were we smoking when we did that? :P 114 */ 115 $locales = array( 116 'cs-CZ' => array( 117 'name' => NT_('Czech (CZ)'), 118 'charset' => 'utf-8', 119 'datefmt' => 'd. m. y', 120 'timefmt' => 'H.i:s', 121 'startofweek' => 1, 122 'messages' => 'cs_CZ', 123 'enabled' => 1, 124 ), 125 'da-DK' => array( 126 'name' => NT_('Danish (DK)'), 127 'charset' => 'iso-8859-1', 128 'datefmt' => 'd/m/y', 129 'timefmt' => 'H:i:s', 130 'startofweek' => 1, 131 'messages' => 'da_DK', 132 'enabled' => 1, 133 ), 134 'de-DE' => array( 135 'name' => NT_('German (DE)'), 136 'charset' => 'iso-8859-1', 137 'datefmt' => 'd.m.y', 138 'timefmt' => 'H:i:s', 139 'startofweek' => 1, 140 'messages' => 'de_DE', 141 'set_locales' => 'de_DE.latin1 de_DE de', 142 'enabled' => 1, 143 ), 144 'ee-ET' => array( 145 'name' => NT_('Estonia (ET)'), 146 'charset' => 'utf-8', 147 'datefmt' => 'd/m/Y', 148 'timefmt' => 'H.i:s', 149 'startofweek' => 1, 150 'messages' => 'ee_ET', 151 'enabled' => 1, 152 ), 153 'en-EU' => array( 154 'name' => NT_('English (EU)'), // not really a valid ISO-3166 code 155 'charset' => 'iso-8859-1', 156 'datefmt' => 'Y-m-d', 157 'timefmt' => 'H:i:s', 158 'startofweek' => 1, 159 'messages' => 'en_EU', 160 'enabled' => 0, 161 ), 162 'en-GB' => array( 163 'name' => NT_('English (GB)'), // correct ISO-3166 code 164 'charset' => 'iso-8859-1', 165 'datefmt' => 'd/m/y', 166 'timefmt' => 'h:i:s a', 167 'startofweek' => 1, 168 'messages' => 'en_GB', 169 'enabled' => 1, 170 ), 171 'en-UK' => array( 172 'name' => NT_('English (UK)'), // incorrect ISO-3166 code 173 'charset' => 'iso-8859-1', 174 'datefmt' => 'd/m/y', 175 'timefmt' => 'h:i:s a', 176 'startofweek' => 1, 177 'messages' => 'en_UK', 178 'enabled' => 0, 179 ), 180 'en-US' => array( 181 'name' => NT_('English (US)'), 182 'charset' => 'iso-8859-1', 183 'datefmt' => 'm/d/y', 184 'timefmt' => 'h:i:s a', 185 'startofweek' => 0, 186 'messages' => 'en_US', 187 'enabled' => 1, 188 ), 189 'en-CA' => array( 190 'name' => NT_('English (CA)'), 191 'charset' => 'iso-8859-1', 192 'datefmt' => 'm/d/y', 193 'timefmt' => 'h:i:s a', 194 'startofweek' => 0, 195 'messages' => 'en_CA', 196 'enabled' => 1, 197 ), 198 'en-AU' => array( 199 'name' => NT_('English (AU)'), 200 'charset' => 'iso-8859-1', 201 'datefmt' => 'd/m/y', 202 'timefmt' => 'h:i:s a', 203 'startofweek' => 1, 204 'messages' => 'en_AU', 205 'enabled' => 1, 206 ), 207 'en-IL' => array( 208 'name' => NT_('English (IL)'), 209 'charset' => 'iso-8859-1', 210 'datefmt' => 'Y-m-d', 211 'timefmt' => 'H:i:s', 212 'startofweek' => 1, 213 'messages' => 'en_IL', 214 'enabled' => 1, 215 ), 216 'en-NZ' => array( 217 'name' => NT_('English (NZ)'), // New Zealand 218 'charset' => 'iso-8859-1', 219 'datefmt' => 'd/m/y', 220 'timefmt' => 'h:i:s a', 221 'startofweek' => 1, 222 'messages' => 'en_NZ', 223 'enabled' => 1, 224 ), 225 'en-SG' => array( 226 'name' => NT_('English (SG)'), 227 'charset' => 'iso-8859-1', 228 'datefmt' => 'd/m/y', 229 'timefmt' => 'H:i:s a', 230 'startofweek' => 0, 231 'messages' => 'en_SG', 232 'enabled' => 1, 233 ), 234 'es-ES' => array( 235 'name' => NT_('Spanish (ES)'), 236 'charset' => 'iso-8859-1', 237 'datefmt' => 'd.m.y', 238 'timefmt' => 'H:i:s', 239 'startofweek' => 1, 240 'messages' => 'es_ES', 241 'enabled' => 1, 242 ), 243 'es-MX' => array( 244 'name' => NT_('Spanish (MX)'), 245 'charset' => 'iso-8859-1', 246 'datefmt' => 'd.m.y', 247 'timefmt' => 'H:i:s', 248 'startofweek' => 0, 249 'messages' => 'es_MX', 250 'enabled' => 1, 251 ), 252 'es-VE' => array( 253 'name' => NT_('Spanish (VE)'), 254 'charset' => 'iso-8859-1', 255 'datefmt' => 'd/m/Y', 256 'timefmt' => 'h:i:s a', 257 'startofweek' => 1, 258 'messages' => 'es_VE', 259 'enabled' => 1, 260 ), 261 'eu-ES' => array( 262 'name' => NT_('Basque (ES)'), 263 'charset' => 'iso-8859-1', 264 'datefmt' => 'y.m.d', 265 'timefmt' => 'H:i:s', 266 'startofweek' => 1, 267 'messages' => 'eu_ES', 268 'enabled' => 1, 269 ), 270 'fi-FI' => array( 271 'name' => NT_('Finnish (FI)'), 272 'charset' => 'iso-8859-1', 273 'datefmt' => 'd.m.Y', 274 'timefmt' => 'H:i:s', 275 'startofweek' => 1, 276 'messages' => 'fi_FI', 277 'enabled' => 1, 278 ), 279 'fr-FR' => array( 280 'name' => NT_('French (FR)'), 281 'charset' => 'iso-8859-1', 282 'datefmt' => 'd.m.y', 283 'timefmt' => 'H:i:s', 284 'startofweek' => 1, 285 'messages' => 'fr_FR', 286 'enabled' => 1, 287 ), 288 'fr-CA' => array( 289 'name' => NT_('French (CA)'), 290 'charset' => 'iso-8859-1', 291 'datefmt' => 'm/d/y', 292 'timefmt' => 'h:i:s a', 293 'startofweek' => 0, 294 'messages' => 'fr_FR', 295 'enabled' => 1, 296 ), 297 'fr-BE' => array( 298 'name' => NT_('French (BE)'), 299 'charset' => 'iso-8859-1', 300 'datefmt' => 'd/m/y', 301 'timefmt' => 'H:i:s', 302 'startofweek' => 1, 303 'messages' => 'fr_FR', 304 'enabled' => 1, 305 ), 306 'gl-ES' => array( 307 'name' => NT_('Galician (ES)'), 308 'charset' => 'iso-8859-1', 309 'datefmt' => 'd.m.y', 310 'timefmt' => 'H:i:s', 311 'startofweek' => 1, 312 'messages' => 'gl_ES', 313 'enabled' => 1, 314 ), 315 'hu-HU' => array( 316 'name' => NT_('Hungarian (HU)'), 317 'charset' => 'iso-8859-2', 318 'datefmt' => 'Y. M. d.', 319 'timefmt' => 'H:i:s', 320 'startofweek' => 1, 321 'messages' => 'hu_HU', 322 'enabled' => 1, 323 ), 324 'it-IT' => array( 325 'name' => NT_('Italian (IT)'), 326 'charset' => 'iso-8859-1', 327 'datefmt' => 'd.m.y', 328 'timefmt' => 'H:i:s', 329 'startofweek' => 1, 330 'messages' => 'it_IT', 331 'enabled' => 1, 332 ), 333 'is-IS' => array( 334 'name' => NT_('Icelandic (IS)'), 335 'charset' => 'iso-8859-1', 336 'datefmt' => 'd.m.y', 337 'timefmt' => 'H:i:s', 338 'startofweek' => 1, 339 'messages' => 'is_IS', 340 'enabled' => 1, 341 ), 342 'ja-JP' => array( 343 'name' => NT_('Japanese (JP)'), 344 'charset' => 'utf-8', 345 'datefmt' => 'Y/m/d', 346 'timefmt' => 'H:i:s', 347 'startofweek' => 0, 348 'messages' => 'ja_JP', 349 'enabled' => 1, 350 ), 351 'lt-LT' => array( 352 'name' => NT_('Lithuanian (LT)'), 353 'charset' => 'utf-8', 354 'datefmt' => 'Y-m-d', 355 'timefmt' => 'H:i:s', 356 'startofweek' => 1, 357 'messages' => 'lt_LT', 358 'enabled' => 1, 359 ), 360 'lv-LV' => array( 361 'name' => NT_('Latvian (LV)'), 362 'charset' => 'utf-8', 363 'datefmt' => 'd.m.y', 364 'timefmt' => 'H:i:s', 365 'startofweek' => 1, 366 'messages' => 'lv_LV', 367 'enabled' => 1, 368 ), 369 'nb-NO' => array( 370 'name' => NT_('Bokmål (NO)'), 371 'charset' => 'iso-8859-1', 372 'datefmt' => 'd.m.y', 373 'timefmt' => 'H:i:s', 374 'startofweek' => 1, 375 'messages' => 'nb_NO', 376 'enabled' => 1, 377 ), 378 'nl-NL' => array( 379 'name' => NT_('Dutch (NL)'), 380 'charset' => 'iso-8859-1', 381 'datefmt' => 'd-m-y', 382 'timefmt' => 'H:i:s', 383 'startofweek' => 1, 384 'messages' => 'nl_NL', 385 'enabled' => 1, 386 ), 387 'nl-BE' => array( 388 'name' => NT_('Dutch (BE)'), 389 'charset' => 'iso-8859-1', 390 'datefmt' => 'd/m/y', 391 'timefmt' => 'H:i:s', 392 'startofweek' => 1, 393 'messages' => 'nl_NL', 394 'enabled' => 1, 395 ), 396 'pt-BR' => array( 397 'name' => NT_('Portuguese (BR)'), 398 'charset' => 'iso-8859-1', 399 'datefmt' => 'd.m.y', 400 'timefmt' => 'H:i:s', 401 'startofweek' => 0, 402 'messages' => 'pt_BR', 403 'enabled' => 1, 404 ), 405 'pl-PL-utf-8' => array( 406 'name' => NT_('Polish utf-8 (PL)'), 407 'charset' => 'utf-8', 408 'datefmt' => 'd/m/Y', 409 'timefmt' => 'H:i:s', 410 'startofweek' => 1, 411 'messages' => 'pl_PL', 412 'enabled' => 1, 413 ), 414 'pt-PT' => array( 415 'name' => NT_('Portuguese (PT)'), 416 'charset' => 'iso-8859-1', 417 'datefmt' => 'd-m-y', 418 'timefmt' => 'H:i:s', 419 'startofweek' => 1, 420 'messages' => 'pt_PT', 421 'enabled' => 1, 422 ), 423 'ru-RU' => array( 424 'name' => NT_('Russian (RU)'), 425 'charset' => 'utf-8', 426 'datefmt' => 'Y-m-d', 427 'timefmt' => 'H:i:s', 428 'startofweek' => 1, 429 'messages' => 'ru_RU', 430 'enabled' => 1, 431 ), 432 'ru-RU-cp1251' => array( 433 'name' => NT_('Russian cp1251 (RU)'), 434 'charset' => 'windows-1251', 435 'datefmt' => 'Y-m-d', 436 'timefmt' => 'H:i:s', 437 'startofweek' => 1, 438 'messages' => 'ru_RU_cp1251', 439 'enabled' => 1, 440 ), 441 'sk-SK' => array( 442 'name' => NT_('Slovak (SK)'), 443 'charset' => 'utf-8', 444 'datefmt' => 'd.m.Y', 445 'timefmt' => 'H:i:s', 446 'startofweek' => 1, 447 'messages' => 'sk_SK', 448 'enabled' => 1, 449 ), 450 'sv-SE' => array( 451 'name' => NT_('Swedish (SE)'), 452 'charset' => 'iso-8859-1', 453 'datefmt' => 'y-m-d', 454 'timefmt' => 'H:i:s', 455 'startofweek' => 1, 456 'messages' => 'sv_SE', 457 'enabled' => 1, 458 ), 459 'th-TH' => array( 460 'name' => NT_('Thai (TH)'), 461 'charset' => 'utf-8', 462 'datefmt' => 'd/m/Y', 463 'timefmt' => 'H:i:s', 464 'startofweek' => 1, 465 'messages' => 'th_TH', 466 'enabled' => 1, 467 ), 468 'tr-TR' => array( 469 'name' => NT_('Turkish (TR)'), 470 'charset' => 'iso-8859-9', 471 'datefmt' => 'd/m/y', 472 'timefmt' => 'H:i:s', 473 'startofweek' => 1, 474 'messages' => 'tr_TR', 475 'enabled' => 1, 476 ), 477 'tr-TR-utf-8' => array( 478 'name' => NT_('Turkish utf-8 (TR)'), 479 'charset' => 'utf-8', 480 'datefmt' => 'd/m/y', 481 'timefmt' => 'H:i:s', 482 'startofweek' => 1, 483 'messages' => 'tr_TR_utf-8', 484 'enabled' => 0, 485 ), 486 'zh-CN' => array( 487 'name' => NT_('Chinese(S) gb2312 (CN)'), 488 'charset' => 'gb2312', 489 'datefmt' => 'y-m-d', 490 'timefmt' => 'H:i:s', 491 'startofweek' => 1, 492 'messages' => 'zh_CN', 493 'enabled' => 1, 494 ), 495 'zh-CN-utf-8' => array( 496 'name' => NT_('Chinese(S) utf-8 (CN)'), 497 'charset' => 'utf-8', 498 'datefmt' => 'y-m-d', 499 'timefmt' => 'H:i:s', 500 'startofweek' => 1, 501 'messages' => 'zh_CN_utf-8', 502 'enabled' => 0, 503 ), 504 /* No correct flag... 505 'zh-HK' => array( 506 'name' => NT_('Trad. Chinese (HK)'), 507 'charset' => 'utf-8', 508 'datefmt' => 'd/m/y', 509 'timefmt' => 'H:i:s', 510 'startofweek' => 0, 511 'messages' => 'zh_TW', 512 'enabled' => 1, 513 ), 514 */ 515 'zh-TW' => array( 516 'name' => NT_('Trad. Chinese (TW)'), 517 'charset' => 'utf-8', 518 'datefmt' => 'Y-m-d', 519 'timefmt' => 'H:i:s', 520 'startofweek' => 0, 521 'messages' => 'zh_TW', 522 'enabled' => 1, 523 ), 524 ); 525 526 527 /** 528 * Set this to 1 if you are a translator and wish to extract strings from your .po file. 529 * Warning: do *not* extract .PO files you have not edited yourself. 530 * Shipped .PO files contain automatic translations that have *not* been reviewed. 531 * 532 * @todo fp>This should be moved to the backoffice. 533 * 534 * @global boolean 535 */ 536 $allow_po_extraction = 0; 537 538 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |