Parent Directory
|
Revision Log
|
Revision Graph
|
Patch
| revision 1.14.2.5, Sat Mar 29 13:37:28 2008 UTC | revision 1.14.2.6, Thu Jun 19 22:17:46 2008 UTC | |
|---|---|---|
| # | Line 1 | Line 1 |
| 1 | <?php | <?php |
| 2 | // $Id: jscalendar.module,v 1.16 2007/06/21 23:03:00 nedjo Exp $ | // $Id: jscalendar.module,v 1.14.2.5 2008/03/29 13:37:28 nedjo Exp $ |
| 3 | ||
| 4 | /** | /** |
| 5 | * @file | * @file |
| # | Line 114 function jscalendar_load($lib_locale = N | Line 114 function jscalendar_load($lib_locale = N |
| 114 | // If the locale library hasn't been explicitly set, we look for support for the current locale. | // If the locale library hasn't been explicitly set, we look for support for the current locale. |
| 115 | if (empty($lib_locale)) { | if (empty($lib_locale)) { |
| 116 | // Supported directly. | // Supported directly. |
| 117 | if (in_array($locale, array('af', 'bg', 'ca', 'da', 'de', 'el', 'es', 'fi', 'fr', 'he', 'hu', 'id', 'is', 'it', 'ja', 'kn', 'ko', 'lt', 'nl', 'pl', 'ro', 'ru', 'sk', 'sv', 'tr'))) { | if (in_array($locale, array('af', 'bg', 'ca', 'da', 'de', 'el', 'es', 'fi', 'fr', 'hu', 'id', 'is', 'it', 'ja', 'kn', 'ko', 'lt', 'nl', 'pl', 'ro', 'ru', 'sk', 'sv', 'tr'))) { |
| 118 | $lib_locale = $locale; | $lib_locale = $locale; |
| 119 | } | } |
| 120 | // Supported indirectly. | // Supported indirectly. |
| 121 | else if ($locale == 'cs') { | else if ($locale == 'cs') { |
| 122 | $lib_locale = 'cs-utf8'; | $lib_locale = 'cs-utf8'; |
| 123 | } | } |
| 124 | else if ($lib_locale == 'he') { | else if ($locale == 'he') { |
| 125 | $lib_locale = 'he-utf8'; | $lib_locale = 'he-utf8'; |
| 126 | } | } |
| 127 | else if (($locale == 'pt-br') || ($locale == 'pt-pt')) { | else if (($locale == 'pt-br') || ($locale == 'pt-pt')) { |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |