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 :
in SF_ROOT_DIR/lib/symfony/i18n/sfCultureInfo.class.php line 278 ...
if (is_file($filename) == false)
{
throw new sfException('Data file for "'.$file.'" was not found.');
}
if (in_array($filename, $this->dataFiles) == false)
at sfCultureInfo->loadCultureData('il')
in SF_ROOT_DIR/lib/symfony/i18n/sfCultureInfo.class.php line 194 ...
$this->setCulture($culture);
$this->loadCultureData('root');
$this->loadCultureData($culture);
}
/**
at sfCultureInfo->__construct('il')
in SF_ROOT_DIR/lib/symfony/helper/FormHelper.php line 214 ...
*/
function select_country_tag($name, $selected = null, $options = array())
{
$c = new sfCultureInfo(sfContext::getInstance()->getUser()->getCulture());
$countries = $c->getCountries();
if ($country_option = _get_option($options, 'countries'))
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ı! http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---