Hello,
why symfony version were you using?
Fabian

On Mon, Feb 2, 2009 at 4:39 PM, Guychmyrat Amanmyradov <
[email protected]> wrote:

> Hello.
>
> select_country_tag this hepler translates countries auto. This is super.
> But when i try to use for language Hebrew i raised with a problem.
>
> Error is in here :
>
>
>    1. in *SF_ROOT_DIR/lib/symfony/i18n/sfCultureInfo.class.php* line 278
>    ... <http://192.168.1.11/yobombo_dev.php/il/people/advancedsearch#>
>
>
>     1.
>       2.       if (is_file($filename) == false)
>       3.       {
>       4.         throw new sfException('Data file for "'.$file.
>       '" was not found.');
>       5.       }
>       6.
>       7.       if (in_array($filename, $this->dataFiles) == false)
>
>
>    1. at *sfCultureInfo->loadCultureData*('il')
>    in *SF_ROOT_DIR/lib/symfony/i18n/sfCultureInfo.class.php* line 194 
> ...<http://192.168.1.11/yobombo_dev.php/il/people/advancedsearch#>
>
>
>     1.     $this->setCulture($culture);
>       2.
>       3.     $this->loadCultureData('root');
>       4.     $this->loadCultureData($culture);
>       5.   }
>       6.
>       7.   /**
>
>
>    1. at *sfCultureInfo->__construct*('il')
>    in *SF_ROOT_DIR/lib/symfony/helper/FormHelper.php* line 214 
> ...<http://192.168.1.11/yobombo_dev.php/il/people/advancedsearch#>
>
>
>     1.  */
>       2. function select_country_tag($name, $selected = null, $options = 
> array())
>
>       3. {
>       4.   $c = new sfCultureInfo(sfContext::getInstance()->getUser()->
>       getCulture());
>       5.   $countries = $c->getCountries();
>       6.
>       7.   if ($country_option = _get_option($options, 'countries'))
>
>
>    1. at *select_country_tag*('countryCode', '', *array*('include_custom'
>    => 'Select Country', *array*('', 'AD', 'AE', 'AF', 'AG', 'AL', 'AM',
>    'AO', 'AR', 'AT', 'AU', 'AZ', 'BB', 'BD', 'BE', 'BG', 'BH', 'BJ', 'BM',
>    'BO', 'BR', 'BS', 'BT', 'BY', 'CA', 'CH', 'CI', 'CL', 'CN', 'CO', 'CV',
>    'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'ES',
>    'ET', 'FI', 'FR', 'GB', 'GE', 'GH', 'GN', 'GQ', 'GR', 'HR', 'IE', 'IL',
>    'IN', 'IQ', 'IR', 'IS', 'IT', 'JM', 'JO', 'JP', 'KG', 'KH', 'KY', 'KZ',
>    'LA', 'LB', 'LT', 'LU', 'LV', 'MD', 'MM', 'MN', 'MO', 'MU', 'MX', 'MY',
>    'MZ', 'NA', 'NF', 'NG', 'NL', 'NO', 'NP', 'PE', 'PH', 'PK', 'PL', 'PM',
>    'PN', 'PR', 'PT', 'RE', 'RO', 'RU', 'SA', 'SE', 'SH', 'SL', 'SN', 'SP',
>    'SV', 'SY', 'TH', 'TJ', 'TM', 'TN', 'TR', 'TW', 'TZ', 'UA', 'US', 'UZ',
>    'VA', 'VE', 'VG', 'VN', 'ZA'), 'onchange' => 'if(this.value)new
>    Ajax.Updater('cityList', '/yobombo_dev.php/il/first/cityfinder',
>    {asynchronous:true, evalScripts:false, onComplete:function(request,
>    json){new Effect.Highlight('cityList', {});},
>
>
> is there any way to solve this problem ?
>
> i use it for know like this :
>
> if($culture == 'il')
>  $sf_user->setCulture('en');
>
> select_country_tag();
>
>
> but this is not nice!
>
> ------------------------------
> Yahoo! Türkiye açıldı!
> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> www.yahoo.com.tr <http://tr.yahoo.com/>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to