b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: conf ] [ index: conf ] [ all elements ]

Source for file _locales.php

Documentation is available at _locales.php

  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 0.9.0.10
  9.  *
  10.  * b2evolution - {@link http://b2evolution.net/}
  11.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  12.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  13.  *
  14.  * @package conf
  15.  */
  16. if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  17.  
  18. # Enable localization?
  19. # set to 0 to disable localization
  20. # set to 1 to enable gettext localization if supported (not recommended)
  21. #        note: you will have to compile the .po files with msgfmt before this will work.
  22. # set to 2 to enable b2evo advanced localization (recommended)
  23. $use_l10n 2;
  24.  
  25. # To be used for m17n support:
  26. $dbcharset 'iso-8859-1';        // If you don't know, don't change this setting.
  27.  
  28.  
  29. # Default locale used for backoffice (when we cannot autodetect) and fallback.
  30. # This will be overwritten from database settings, if configured there.
  31. # These use an ISO 639 language code, a '-' and an ISO 3166 country code.
  32. # This MUST BE in the list below.
  33. $default_locale 'en-EU';
  34.  
  35.  
  36. /**
  37.  * Load locale related functions: (we need NT_(-) here)
  38.  */
  39. require_oncedirname(__FILE__)"/$conf_dirout/$core_subdir/_functions_locale.php);
  40.  
  41.  
  42. # These are the default settings.
  43. # This array will be overwritten from DB if locales are set there,
  44. # that is when they get updated from the Backoffice.
  45. # They are also used as fallback, if we have no access to the DB yet.
  46. # Flag source: http://www.crwflags.com/fotw/flags/iso3166.html
  47. # IMPORTANT: Try to keep the locale names short, they take away valuable space on the screen!
  48. $locales array(
  49.     'cs-CZ' => array'name' => NT_('Czech (CZ)'),
  50.                                         'charset' => 'utf-8',
  51.                                         'datefmt' => 'd. m. y',
  52.                                         'timefmt' => 'H.i:s',
  53.                                         'messages' => 'cs_CZ',
  54.                                         'enabled' => 1,
  55.                                     ),
  56.     'da-DK' => array'name' => NT_('Danish (DK)'),
  57.                                         'charset' => 'iso-8859-1',
  58.                                         'datefmt' => 'd/m/y',
  59.                                         'timefmt' => 'H:i:s',
  60.                                         'messages' => 'da_DK',
  61.                                         'enabled' => 1,
  62.                                     ),
  63.     'de-DE' => array'name' => NT_('German (DE)'),
  64.                                         'charset' => 'iso-8859-1',
  65.                                         'datefmt' => 'd.m.y',
  66.                                         'timefmt' => 'H:i:s',
  67.                                         'messages' => 'de_DE',
  68.                                         'enabled' => 1,
  69.                                     ),
  70.   'ee-ET' => array(    'name' => NT_('Estonia (ET)'),
  71.                                         'charset' => 'utf-8',
  72.                                         'datefmt' => 'd/m/Y',
  73.                                         'timefmt' => 'H.i:s',
  74.                                         'messages' => 'ee_ET',
  75.                                         'enabled' => 1,
  76.                                     ),
  77.     'en-EU' => array'name' => NT_('English (EU)'),
  78.                                         'charset' => 'iso-8859-1',
  79.                                         'datefmt' => 'Y-m-d',
  80.                                         'timefmt' => 'H:i:s',
  81.                                         'messages' => 'en_EU',
  82.                                         'enabled' => 1,
  83.                                     ),
  84.     'en-UK' => array'name' => NT_('English (UK)'),
  85.                                         'charset' => 'iso-8859-1',
  86.                                         'datefmt' => 'd/m/y',
  87.                                         'timefmt' => 'h:i:s a',
  88.                                         'messages' => 'en_UK',
  89.                                         'enabled' => 1,
  90.                                     ),
  91.     'en-US' => array'name' => NT_('English (US)'),
  92.                                         'charset' => 'iso-8859-1',
  93.                                         'datefmt' => 'm/d/y',
  94.                                         'timefmt' => 'h:i:s a',
  95.                                         'messages' => 'en_US',
  96.                                         'enabled' => 1,
  97.                                     ),
  98.     'en-CA' => array'name' => NT_('English (CA)'),
  99.                                         'charset' => 'iso-8859-1',
  100.                                         'datefmt' => 'm/d/y',
  101.                                         'timefmt' => 'h:i:s a',
  102.                                         'messages' => 'en_CA',
  103.                                         'enabled' => 1,
  104.                                     ),
  105.     'en-AU' => array'name' => NT_('English (AU)'),
  106.                                         'charset' => 'iso-8859-1',
  107.                                         'datefmt' => 'd/m/y',
  108.                                         'timefmt' => 'h:i:s a',
  109.                                         'messages' => 'en_AU',
  110.                                         'enabled' => 1,
  111.                                     ),
  112.     'en-IL' => array'name' => NT_('English (IL)'),
  113.                                         'charset' => 'iso-8859-1',
  114.                                         'datefmt' => 'Y-m-d',
  115.                                         'timefmt' => 'H:i:s',
  116.                                         'messages' => 'en_IL',
  117.                                         'enabled' => 1,
  118.                                     ),
  119.     'en-NZ' => array'name' => NT_('English (NZ)')// New Zealand
  120.                                         'charset' => 'iso-8859-1',
  121.                                         'datefmt' => 'd/m/y',
  122.                                         'timefmt' => 'h:i:s a',
  123.                                         'messages' => 'en_NZ',
  124.                                         'enabled' => 1,
  125.                                     ),
  126.     'en-SG' => array'name' => NT_('English (SG)'),
  127.                                         'charset' => 'iso-8859-1',
  128.                                         'datefmt' => 'd/m/y',
  129.                                         'timefmt' => 'H:i:s a',
  130.                                         'messages' => 'en_SG',
  131.                                         'enabled' => 1,
  132.                                     ),
  133.     'es-ES' => array'name' => NT_('Spanish (ES)'),
  134.                                         'charset' => 'iso-8859-1',
  135.                                         'datefmt' => 'd.m.y',
  136.                                         'timefmt' => 'H:i:s',
  137.                                         'messages' => 'es_ES',
  138.                                         'enabled' => 1,
  139.                                     ),
  140.     'es-MX' => array'name' => NT_('Spanish (MX)'),
  141.                                         'charset' => 'iso-8859-1',
  142.                                         'datefmt' => 'd.m.y',
  143.                                         'timefmt' => 'H:i:s',
  144.                                         'messages' => 'es_MX',
  145.                                         'enabled' => 1,
  146.                                     ),
  147.     'es-VE' => array'name' => NT_('Spanish (VE)'),
  148.                                         'charset' => 'iso-8859-1',
  149.                                         'datefmt' => 'd/m/Y',
  150.                                         'timefmt' => 'h:i:s a',
  151.                                         'messages' => 'es_VE',
  152.                                         'enabled' => 1,
  153.                                     ),
  154.     'eu-ES' => array'name' => NT_('Basque (ES)'),
  155.                               'charset' => 'iso-8859-1',
  156.                               'datefmt' => 'y.m.d',
  157.                               'timefmt' => 'H:i:s',
  158.                               'messages' => 'eu_ES',
  159.                               'enabled' => 1,
  160.                              ),
  161.     'fi-FI' => array'name' => NT_('Finnish (FI)'),
  162.                                         'charset' => 'iso-8859-1',
  163.                                         'datefmt' => 'd.m.Y',
  164.                                         'timefmt' => 'H:i:s',
  165.                                         'messages' => 'fi_FI',
  166.                                         'enabled' => 1,
  167.                                     ),
  168.     'fr-FR' => array'name' => NT_('French (FR)'),
  169.                                         'charset' => 'iso-8859-1',
  170.                                         'datefmt' => 'd.m.y',
  171.                                         'timefmt' => 'H:i:s',
  172.                                         'messages' => 'fr_FR',
  173.                                         'enabled' => 1,
  174.                                     ),
  175.     'fr-CA' => array'name' => NT_('French (CA)'),
  176.                                         'charset' => 'iso-8859-1',
  177.                                         'datefmt' => 'm/d/y',
  178.                                         'timefmt' => 'h:i:s a',
  179.                                         'messages' => 'fr_FR',
  180.                                         'enabled' => 1,
  181.                                     ),
  182.     'fr-BE' => array'name' => NT_('French (BE)'),
  183.                                         'charset' => 'iso-8859-1',
  184.                                         'datefmt' => 'd/m/y',
  185.                                         'timefmt' => 'H:i:s',
  186.                                         'messages' => 'fr_FR',
  187.                                         'enabled' => 1,
  188.                                     ),
  189.     'gl-ES' => array'name' => NT_('Galician (ES)'),
  190.                                         'charset' => 'iso-8859-1',
  191.                                         'datefmt' => 'd.m.y',
  192.                                         'timefmt' => 'H:i:s',
  193.                                         'messages' => 'gl_ES',
  194.                                         'enabled' => 1,
  195.                                     ),
  196.     'hu-HU' => array'name' => NT_('Hungarian (HU)'),
  197.                                         'charset' => 'iso-8859-2',
  198.                                         'datefmt' => 'Y. M. d.',
  199.                                         'timefmt' => 'H:i:s',
  200.                                         'messages' => 'hu_HU',
  201.                                         'enabled' => 1,
  202.                                     ),
  203.     'it-IT' => array'name' => NT_('Italian (IT)'),
  204.                                         'charset' => 'iso-8859-1',
  205.                                         'datefmt' => 'd.m.y',
  206.                                         'timefmt' => 'H:i:s',
  207.                                         'messages' => 'it_IT',
  208.                                         'enabled' => 1,
  209.                                     ),
  210.     'is-IS' => array'name' => NT_('Icelandic (IS)'),
  211.                                         'charset' => 'iso-8859-1',
  212.                                         'datefmt' => 'd.m.y',
  213.                                         'timefmt' => 'H:i:s',
  214.                                         'messages' => 'is_IS',
  215.                                         'enabled' => 1,
  216.                                     ),
  217.     'ja-JP' => array'name' => NT_('Japanese (JP)'),
  218.                                         'charset' => 'utf-8',
  219.                                         'datefmt' => 'Y/m/d',
  220.                                         'timefmt' => 'H:i:s',
  221.                                         'messages' => 'ja_JP',
  222.                                         'enabled' => 1,
  223.                                     ),
  224.     'lt-LT' => array'name' => NT_('Lithuanian (LT)'),
  225.                                         'charset' => 'utf-8',
  226.                                         'datefmt' => 'Y-m-d',
  227.                                         'timefmt' => 'H:i:s',
  228.                                         'messages' => 'lt_LT',
  229.                                         'enabled' => 1,
  230.                                     ),
  231.     'nb-NO' => array'name' => NT_('Bokm&aring;l (NO)'),
  232.                                         'charset' => 'iso-8859-1',
  233.                                         'datefmt' => 'd.m.y',
  234.                                         'timefmt' => 'H:i:s',
  235.                                         'messages' => 'nb_NO',
  236.                                         'enabled' => 1,
  237.                                     ),
  238.     'nl-NL' => array'name' => NT_('Dutch (NL)'),
  239.                                         'charset' => 'iso-8859-1',
  240.                                         'datefmt' => 'd-m-y',
  241.                                         'timefmt' => 'H:i:s',
  242.                                         'messages' => 'nl_NL',
  243.                                         'enabled' => 1,
  244.                                     ),
  245.     'nl-BE' => array'name' => NT_('Dutch (BE)'),
  246.                                         'charset' => 'iso-8859-1',
  247.                                         'datefmt' => 'd/m/y',
  248.                                         'timefmt' => 'H:i:s',
  249.                                         'messages' => 'nl_NL',
  250.                                         'enabled' => 1,
  251.                                     ),
  252.     'pt-BR' => array'name' => NT_('Portuguese (BR)'),
  253.                                         'charset' => 'iso-8859-1',
  254.                                         'datefmt' => 'd.m.y',
  255.                                         'timefmt' => 'H:i:s',
  256.                                         'messages' => 'pt_BR',
  257.                                         'enabled' => 1,
  258.                                     ),
  259.     'pl-PL-utf-8' => array'name' => NT_('Polish utf-8 (PL)'),
  260.                                         'charset' => 'utf-8',
  261.                                         'datefmt' => 'd/m/Y',
  262.                                         'timefmt' => 'H:i:s',
  263.                                         'messages' => 'pl_PL',
  264.                                         'enabled' => 1,
  265.                                     ),
  266.     'pt-PT' => array(    'name' => NT_('Portuguese (PT)'),
  267.                                         'charset' => 'iso-8859-1',
  268.                                         'datefmt' => 'd-m-y',
  269.                                         'timefmt' => 'H:i:s',
  270.                                         'messages' => 'pt_PT',
  271.                                         'enabled' => 1,
  272.                                     ),
  273.     'ru-RU' => array'name' => NT_('Russian (RU)'),
  274.                                         'charset' => 'utf-8',
  275.                                         'datefmt' => 'Y-m-d',
  276.                                         'timefmt' => 'H:i:s',
  277.                                         'messages' => 'ru_RU',
  278.                                         'enabled' => 1,
  279.                                     ),
  280.     'sk-SK' => array'name' => NT_('Slovak (SK)'),
  281.                                         'charset' => 'utf-8',
  282.                                         'datefmt' => 'd.m.Y',
  283.                                         'timefmt' => 'H:i:s',
  284.                                         'messages' => 'sk_SK',
  285.                                         'enabled' => 1,
  286.                                     ),
  287.     'sv-SE' => array'name' => NT_('Swedish (SE)'),
  288.                                         'charset' => 'iso-8859-1',
  289.                                         'datefmt' => 'y-m-d',
  290.                                         'timefmt' => 'H:i:s',
  291.                                         'messages' => 'sv_SE',
  292.                                         'enabled' => 1,
  293.                                     ),
  294.     'th-TH' => array'name' => NT_('Thai (TH)'),
  295.                                         'charset' => 'utf-8',
  296.                                         'datefmt' => 'd/m/Y',
  297.                                         'timefmt' => 'H:i:s',
  298.                                         'messages' => 'th_TH',
  299.                                         'enabled' => 1,
  300.                                     ),
  301.     'tr-TR' => array(    'name' => NT_('Turkish (TR)'),
  302.                                         'charset' => 'iso-8859-9',
  303.                                         'datefmt' => 'd/m/y',
  304.                                         'timefmt' => 'H:i:s',
  305.                                         'messages' => 'tr_TR',
  306.                                         'enabled' => 1,
  307.                                     ),
  308.     'tr-TR-utf-8' => array(    'name' => NT_('Turkish utf-8 (TR)'),
  309.                                         'charset' => 'utf-8',
  310.                                         'datefmt' => 'd/m/y',
  311.                                         'timefmt' => 'H:i:s',
  312.                                         'messages' => 'tr_TR_utf-8',
  313.                                         'enabled' => 0,
  314.                                     ),
  315.     'zh-CN' => array'name' => NT_('Chinese(S) gb2312 (CN)'),
  316.                                         'charset' => 'gb2312',
  317.                                         'datefmt' => 'y-m-d',
  318.                                         'timefmt' => 'H:i:s',
  319.                                         'messages' => 'zh_CN',
  320.                                         'enabled' => 1,
  321.                                     ),
  322.     'zh-CN-utf-8' => array'name' => NT_('Chinese(S) utf-8 (CN)'),
  323.                                         'charset' => 'utf-8',
  324.                                         'datefmt' => 'y-m-d',
  325.                                         'timefmt' => 'H:i:s',
  326.                                         'messages' => 'zh_CN_utf-8',
  327.                                         'enabled' => 0,
  328.                                     ),
  329. /* No correct flag...
  330.         'zh-HK' => array( 'name' => NT_('Trad. Chinese (HK)'),
  331.                                         'charset' => 'utf-8',
  332.                                         'datefmt' => 'd/m/y',
  333.                                         'timefmt' => 'H:i:s',
  334.                                         'messages' => 'zh_TW',
  335.                                         'enabled' => 1,
  336.                                     ), 
  337. */
  338.     'zh-TW' => array'name' => NT_('Trad. Chinese (TW)'),
  339.                                         'charset' => 'utf-8',
  340.                                         'datefmt' => 'Y-m-d',
  341.                                         'timefmt' => 'H:i:s',
  342.                                         'messages' => 'zh_TW',
  343.                                         'enabled' => 1,
  344.                                     ),
  345. );
  346.  
  347. # Default language (ISO code)
  348. # We get this one from the default locale above
  349. #$default_language = substr( $default_locale, 0, 2 );
  350.  
  351. /**
  352.  * day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc
  353.  *
  354.  * This is used when displaying the calendar only.
  355.  * Weekly archives are grouped the way MySQL groups days by weeks; see MySQL documentation.
  356.  *
  357.  * @global int $start_of_week 
  358.  */
  359. $start_of_week 1;
  360.  
  361.  
  362. /**
  363.  * Set this to 1 if you are a translator and wish to extract strings from your .po file.
  364.  * Warning: do *not* extract .PO files you have not edited yourself.
  365.  * Shipped .PO files contain automatic translations that have *not* been reviewed.
  366.  *
  367.  * @global boolean 
  368.  */
  369. $allow_po_extraction 0;
  370.  
  371. ?>

Documentation generated on Tue, 20 May 2008 01:55:24 +0200 by phpDocumentor 1.4.2