b2evolution PHP Cross Reference Blogging Systems

Source: /conf/_locales.php - 424 lines - 12158 bytes - Summary - Text - Print

Description: This is b2evolution's localization & language config file This file sets the default configuration for locales. IMPORTANT: Most of these settings can be overriden in the admin (regional settings) and will then be saved to the database. The database settings superseede settings in this file. Last significant changes to this file: version 1.6

   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   * No Translation. Does nothing.
  17   *
  18   * Nevertheless, the string will be extracted by the gettext tools
  19   */
  20  if( ! function_exists('NT_') )
  21  {    // A workaround for 'reset' action in locales.ctrl.php
  22  	function NT_( $string )
  23      {
  24          return $string;
  25      }
  26  }
  27  
  28  
  29  /**
  30   * Enable localization?
  31   *
  32   * Set to 0 to disable localization.
  33   * Set to 1 to enable localization.
  34   *
  35   * @global integer
  36   */
  37  $use_l10n = 1;
  38  
  39  
  40  /**
  41   * The internal charset. It's used to convert user INPUT/OUTPUT and database data into for
  42   * internal use.
  43   *
  44   * Setting it to an empty string means "follow the user's charset", which gets
  45   * taken off his locale (INPUT/OUTPUT charset; {@link $io_charset}).
  46   *
  47   * If you don't know, don't change this setting.
  48   *
  49   * This should be supported by {@link mb_list_encodings()}.
  50   */
  51  $evo_charset = '';
  52  if( version_compare( phpversion(), '5.4', '>=' ) )
  53  {    // PHP 5.4 uses utf-8 internally, we must match it to avoid problems
  54      // Note: this setting does not change website charset defined in locale!
  55      $evo_charset = 'utf-8';
  56  }
  57  
  58  
  59  /**
  60   * Set this to a specific charset, to force this as {@link $io_charset I/O charset}, if the browser accepts it.
  61   *
  62   * DO NOT CHANGE THIS if your language requires UTF8 (East Asian, Arabic, etc, etc, etc) !!!
  63   * This is NOT the correct way to do it. If you change this setting it may look like it works but YOU WILL HAVE ISSUES!
  64   * The correct way to use UTF8 for some languages/locales is to install the appropriate language pack into the locales folder.
  65   * Language packs can be downloaded here: http://b2evolution.net/downloads/language-packs.html
  66   *
  67   * If your language is not available, you can create your own (you may use /locales/ru-RU as a model)
  68   * OR... WORST CASE SCENARIO: you can always use the en-US-utf8 locale: "English (US) utf8"
  69   *
  70   * Please share new language packs with the community.
  71   *
  72   * Setting this to "utf-8" allows you to deliver all pages in this encoding even if the selected locale was not
  73   * translated to utf-8. Typically requires MBSTRING. Make sure, that your PHP/MySQL setup supports this.
  74   *
  75   * @global string
  76   */
  77  $force_io_charset_if_accepted = '';
  78  
  79  
  80  /**
  81   * This variable is included here for documentation only.
  82   *
  83   * If not empty, this will issue a MySQL SET NAMES command.
  84   * This must be a MySQL charset. Example: 'latin1' or 'utf8'
  85   * fp> Actually, DB::set_connection_charset(x,true) can convert from 'iso-8859-1' to 'latin1' for example.
  86   *
  87   * If left empty, the default charset will be used. The default here is the default set your MySQL Server.
  88   *
  89   * NOTE: in any case, this will be OVERRIDDEN by init_charsets() when initializing a locale.
  90   *
  91   * This should match the charset you are using internally in b2evolution.
  92   * This allows b2evo to work internally in a different charset from the database charset.
  93   * Example: b2evo will use latin1 whereas the database uses utf8.
  94   */
  95  $db_config['connection_charset'] = '';
  96  
  97  
  98  /**
  99   * Default locale used for backoffice (when we cannot autodetect) and fallback.
 100   * This will be overwritten from database settings, if configured there.
 101   * These use an ISO 639 language code, a '-' and an ISO 3166 country code.
 102   *
 103   * This MUST BE in the list below.
 104   *
 105   * @todo this should actually be used by the installer only. After that we should use the value from the DB.
 106   *
 107   * @global string
 108   */
 109  $default_locale = 'en-US';
 110  
 111  
 112  /**
 113   * Defining the locales:
 114   * These are the default settings.
 115   * This array will be overwritten from DB if locales are set there,
 116   * that is when they get updated from the Backoffice.
 117   * They are also used as fallback, if we have no access to the DB yet.
 118   * Flag source: http://www.crwflags.com/fotw/flags/iso3166.html
 119   * IMPORTANT: Try to keep the locale names short, they take away valuable space on the screen!
 120   *
 121   * Documentation of the keys:
 122   *  - 'messages':
 123   *    The directory where the locale's files are.
 124   *  - 'charset':
 125   *    Character set of the locale's files.
 126   *
 127   * @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)
 128   * @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
 129   */
 130  $locales['en-US'] = array(
 131          'name' => NT_('English (US) latin1'),
 132          'charset' => 'iso-8859-1',
 133          'datefmt' => 'm/d/y',
 134          'timefmt' => 'h:i:s a',
 135          'startofweek' => 0,
 136          'messages' => 'en_US',
 137          'enabled' => false,    // We need this line to prevent notices iin locales conf screen and user profile screen.
 138      );
 139  
 140  /**
 141   * Set this to 1 if you are a translator and wish to extract strings from your .po file.
 142   * Warning: do *not* extract .PO files you have not edited yourself.
 143   * Shipped .PO files contain automatic translations that have *not* been reviewed.
 144   *
 145   * @todo fp>This should be moved to the backoffice.
 146   *
 147   * @global boolean
 148   */
 149  $allow_po_extraction = 0;
 150  
 151  
 152  /**
 153   * Background position for each country by code
 154   * The sprite image file is located: "/rsc/icons/flags_sprite.png"
 155   * **** To change this file use the original file from: "/rsc/icons/src/flags.PSD"
 156   * **** You should save the changed file as PNG-8 with 256 colors to the "flags_sprite.png"
 157   * **** Also don't forget to save the "flags.PSD"
 158   *
 159   * NEW ADDED FLAGS:
 160   *   aq - Antarctica
 161   *   ax - Aland Islands
 162   *   bl - Saint Barthelemy
 163   *   cc - Cocos Islands
 164   *   cx - Christmas Island
 165   *   sj - Svalbard And Jan Mayen
 166   *
 167   * CHANGED FLAGS TO 16px WIDTH:
 168   *   np - Nepal
 169   *   ch - Switzerland
 170   */
 171  $country_flags_bg = array(
 172      'ad' => '-16px 0',
 173      'ae' => '-32px 0',
 174      'af' => '-48px 0',
 175      'ag' => '-64px 0',
 176      'ai' => '-80px 0',
 177      'al' => '-96px 0',
 178      'am' => '-112px 0',
 179      'an' => '-128px 0',
 180      'ao' => '-144px 0',
 181      'aq' => '-96px -165px',
 182      'ar' => '-160px 0',
 183      'as' => '-176px 0',
 184      'at' => '-192px 0',
 185      'au' => '-208px 0',
 186      'aw' => '-224px 0',
 187      'ax' => '-112px -165px',
 188      'az' => '-240px 0',
 189      'ba' => '0 -11px',
 190      'bb' => '-16px -11px',
 191      'bd' => '-32px -11px',
 192      'be' => '-48px -11px',
 193      'bf' => '-64px -11px',
 194      'bg' => '-80px -11px',
 195      'bh' => '-96px -11px',
 196      'bi' => '-112px -11px',
 197      'bj' => '-128px -11px',
 198      'bl' => '-128px -165px',
 199      'bm' => '-144px -11px',
 200      'bn' => '-160px -11px',
 201      'bo' => '-176px -11px',
 202      'br' => '-192px -11px',
 203      'bs' => '-208px -11px',
 204      'bt' => '-224px -11px',
 205      'bv' => '-240px -11px',
 206      'bw' => '0 -22px',
 207      'by' => '-16px -22px',
 208      'bz' => '-32px -22px',
 209      'ca' => '-48px -22px',
 210      'cc' => '-144px -165px',
 211      'ct' => '-64px -22px',
 212      'cd' => '-80px -22px',
 213      'cf' => '-96px -22px',
 214      'cg' => '-112px -22px',
 215      'ch' => '-128px -22px',
 216      'ci' => '-144px -22px',
 217      'ck' => '-160px -22px',
 218      'cl' => '-176px -22px',
 219      'cm' => '-192px -22px',
 220      'cn' => '-208px -22px',
 221      'co' => '-224px -22px',
 222      'cr' => '-240px -22px',
 223      'cu' => '0 -33px',
 224      'cv' => '-16px -33px',
 225      'cx' => '-160px -165px',
 226      'cy' => '-32px -33px',
 227      'cz' => '-48px -33px',
 228      'de' => '-64px -33px',
 229      'dj' => '-80px -33px',
 230      'dk' => '-96px -33px',
 231      'dm' => '-112px -33px',
 232      'do' => '-128px -33px',
 233      'dz' => '-144px -33px',
 234      'ec' => '-160px -33px',
 235      'ee' => '-176px -33px',
 236      'eg' => '-192px -33px',
 237      'eh' => '-208px -33px',
 238      'england' => '-224px -33px',
 239      'er' => '-240px -33px',
 240      'es' => '0 -44px',
 241      'et' => '-16px -44px',
 242      'eu' => '-32px -44px',
 243      'fi' => '-48px -44px',
 244      'fj' => '-64px -44px',
 245      'fk' => '-80px -44px',
 246      'fm' => '-96px -44px',
 247      'fo' => '-112px -44px',
 248      'fr' => '-128px -44px',
 249      'ga' => '-144px -44px',
 250      'gb' => '-160px -44px',
 251      'gd' => '-176px -44px',
 252      'ge' => '-192px -44px',
 253      'gf' => '-208px -44px',
 254      'gg' => '-224px -44px',
 255      'gh' => '-240px -44px',
 256      'gi' => '0 -55px',
 257      'gl' => '-16px -55px',
 258      'gm' => '-32px -55px',
 259      'gn' => '-48px -55px',
 260      'gp' => '-64px -55px',
 261      'gq' => '-80px -55px',
 262      'gr' => '-96px -55px',
 263      'gs' => '-112px -55px',
 264      'gt' => '-128px -55px',
 265      'gu' => '-144px -55px',
 266      'gw' => '-160px -55px',
 267      'gy' => '-176px -55px',
 268      'hk' => '-192px -55px',
 269      'hm' => '-208px -55px',
 270      'hn' => '-224px -55px',
 271      'hr' => '-240px -55px',
 272      'ht' => '0 -66px',
 273      'hu' => '-16px -66px',
 274      'id' => '-32px -66px',
 275      'ie' => '-48px -66px',
 276      'il' => '-64px -66px',
 277      'im' => '-80px -66px',
 278      'in' => '-96px -66px',
 279      'io' => '-112px -66px',
 280      'iq' => '-128px -66px',
 281      'ir' => '-144px -66px',
 282      'is' => '-160px -66px',
 283      'it' => '-176px -66px',
 284      'je' => '-192px -66px',
 285      'jm' => '-208px -66px',
 286      'jo' => '-224px -66px',
 287      'jp' => '-240px -66px',
 288      'ke' => '0 -77px',
 289      'kg' => '-16px -77px',
 290      'kh' => '-32px -77px',
 291      'ki' => '-48px -77px',
 292      'km' => '-64px -77px',
 293      'kn' => '-80px -77px',
 294      'kp' => '-96px -77px',
 295      'kr' => '-112px -77px',
 296      'kw' => '-128px -77px',
 297      'ky' => '-144px -77px',
 298      'kz' => '-160px -77px',
 299      'la' => '-176px -77px',
 300      'lb' => '-192px -77px',
 301      'lc' => '-208px -77px',
 302      'li' => '-224px -77px',
 303      'lk' => '-240px -77px',
 304      'lr' => '0 -88px',
 305      'ls' => '-16px -88px',
 306      'lt' => '-32px -88px',
 307      'lu' => '-48px -88px',
 308      'lv' => '-64px -88px',
 309      'ly' => '-80px -88px',
 310      'ma' => '-96px -88px',
 311      'mc' => '-112px -88px',
 312      'md' => '-128px -88px',
 313      'me' => '-144px -88px',
 314      'mg' => '-160px -88px',
 315      'mh' => '-176px -88px',
 316      'mk' => '-192px -88px',
 317      'ml' => '-208px -88px',
 318      'mm' => '-224px -88px',
 319      'mn' => '-240px -88px',
 320      'mo' => '0 -99px',
 321      'mp' => '-16px -99px',
 322      'mq' => '-32px -99px',
 323      'mr' => '-48px -99px',
 324      'ms' => '-64px -99px',
 325      'mt' => '-80px -99px',
 326      'mu' => '-96px -99px',
 327      'mv' => '-112px -99px',
 328      'mw' => '-128px -99px',
 329      'mx' => '-144px -99px',
 330      'my' => '-160px -99px',
 331      'mz' => '-176px -99px',
 332      'na' => '-192px -99px',
 333      'nc' => '-208px -99px',
 334      'ne' => '-224px -99px',
 335      'nf' => '-240px -99px',
 336      'ng' => '0 -110px',
 337      'ni' => '-16px -110px',
 338      'nl' => '-32px -110px',
 339      'no' => '-48px -110px',
 340      'np' => '-64px -110px',
 341      'nr' => '-80px -110px',
 342      'nu' => '-96px -110px',
 343      'nz' => '-112px -110px',
 344      'om' => '-128px -110px',
 345      'pa' => '-144px -110px',
 346      'pe' => '-160px -110px',
 347      'pf' => '-176px -110px',
 348      'pg' => '-192px -110px',
 349      'ph' => '-208px -110px',
 350      'pk' => '-224px -110px',
 351      'pl' => '-240px -110px',
 352      'pm' => '0 -121px',
 353      'pn' => '-16px -121px',
 354      'pr' => '-32px -121px',
 355      'ps' => '-48px -121px',
 356      'pt' => '-64px -121px',
 357      'pw' => '-80px -121px',
 358      'py' => '-96px -121px',
 359      'qa' => '-112px -121px',
 360      're' => '-128px -121px',
 361      'ro' => '-144px -121px',
 362      'rs' => '-160px -121px',
 363      'ru' => '-176px -121px',
 364      'rw' => '-192px -121px',
 365      'sa' => '-208px -121px',
 366      'sb' => '-224px -121px',
 367      'sc' => '-240px -121px',
 368      'scotland' => '0 -132px',
 369      'sd' => '-16px -132px',
 370      'se' => '-32px -132px',
 371      'sg' => '-48px -132px',
 372      'sh' => '-64px -132px',
 373      'si' => '-80px -132px',
 374      'sj' => '-176px -165px',
 375      'sk' => '-96px -132px',
 376      'sl' => '-112px -132px',
 377      'sm' => '-128px -132px',
 378      'sn' => '-144px -132px',
 379      'so' => '-160px -132px',
 380      'sr' => '-176px -132px',
 381      'ss' => '-192px -132px',
 382      'st' => '-208px -132px',
 383      'sv' => '-224px -132px',
 384      'sy' => '-240px -132px',
 385      'sz' => '0 -143px',
 386      'tc' => '-16px -143px',
 387      'td' => '-32px -143px',
 388      'tf' => '-48px -143px',
 389      'tg' => '-64px -143px',
 390      'th' => '-80px -143px',
 391      'tj' => '-96px -143px',
 392      'tk' => '-112px -143px',
 393      'tl' => '-128px -143px',
 394      'tm' => '-144px -143px',
 395      'tn' => '-160px -143px',
 396      'to' => '-176px -143px',
 397      'tr' => '-192px -143px',
 398      'tt' => '-208px -143px',
 399      'tv' => '-224px -143px',
 400      'tw' => '-240px -143px',
 401      'tz' => '0 -154px',
 402      'ua' => '-16px -154px',
 403      'ug' => '-32px -154px',
 404      'um' => '-48px -154px',
 405      'us' => '-64px -154px',
 406      'uy' => '-80px -154px',
 407      'uz' => '-96px -154px',
 408      'va' => '-112px -154px',
 409      'vc' => '-128px -154px',
 410      've' => '-144px -154px',
 411      'vg' => '-160px -154px',
 412      'vi' => '-176px -154px',
 413      'vn' => '-192px -154px',
 414      'vu' => '-208px -154px',
 415      'wales' => '-224px -154px',
 416      'wf' => '-240px -154px',
 417      'ws' => '0 -165px',
 418      'ye' => '-16px -165px',
 419      'yt' => '-32px -165px',
 420      'za' => '-48px -165px',
 421      'zm' => '-64px -165px',
 422      'zw' => '-80px -165px',
 423  );
 424  ?>

title

Description

title

Description

title

Description

title

title

Body