i would like to create a culture switcher that is driven by some values in app.yml.
I know this probably has been done before a million times. Also i have looked at the http://www.symfony-project.org/plugins/ysfDimensionsPlugin and http://symfonians.org/browser/trunk/apps/main/templates/_user.php First of all i am not using subdomains for the culture but rather in the URL http://www.dkkjds.com/en_US/about-us Also i would like the URL for each culture to still link the user to the current page they are on but with the new culture. This is what i have but i am not sure about the sfCultureInfo::getInstance($culture); and $cultureInfo->getNativeName() and how "expensive" it is to load a entire instance of a sfCultureInfo just to get the native name.... <?php $currentCulture = sfContext::getInstance()->getUser()- >getCulture(); $uri = sfContext::getInstance()->getRouting()- >getCurrentInternalUri(TRUE); $options = array(); $enabledCultures = sfConfig::get('app_cultures_enabled', array('en_US')); foreach ($enabledCultures as $culture) { if(sfCultureInfo::validCulture($culture)){ $cultureInfo = sfCultureInfo::getInstance($culture); $options[] = link_to($cultureInfo->getNativeName(), str_replace($currentCulture, $culture, $uri)).' '; } } echo implode('<br /> ', $options); ?> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---