| 744 | | $langFile = sfConfig::get('sf_calendar_web_dir').'/lang/calendar-'.strtolower(substr($culture, 0, 2)); |
|---|
| | 744 | $langFile = sfConfig::get('sf_calendar_web_dir').'/lang/calendar-'.$culture; |
|---|
| | 745 | if((!is_readable(sfConfig::get('sf_symfony_data_dir').'/web/'.$langFile.'.js')) && |
|---|
| | 746 | (!is_readable(sfConfig::get('sf_web_dir').'/'.$langFile.'.js'))) |
|---|
| | 747 | { |
|---|
| | 748 | $langFile = sfConfig::get('sf_calendar_web_dir').'/lang/calendar-'.substr($culture,0,2); |
|---|
| | 749 | if((!is_readable(sfConfig::get('sf_symfony_data_dir').'/web/'.$langFile.'.js')) && |
|---|
| | 750 | (!is_readable(sfConfig::get('sf_web_dir').'/'.$langFile.'.js'))) |
|---|
| | 751 | { |
|---|
| | 752 | $langFile = sfConfig::get('sf_calendar_web_dir').'/lang/calendar-en'; |
|---|
| | 753 | } |
|---|
| | 754 | } |
|---|
| | 755 | |
|---|