Author: ornicar2
Date: 2010-01-22 21:43:56 +0100 (Fri, 22 Jan 2010)
New Revision: 27074

Modified:
   
plugins/diemPlugin/trunk/dmAdminPlugin/modules/dmInterface/actions/components.class.php
Log:
[Diem]
- culture selector presents each culture translated

Modified: 
plugins/diemPlugin/trunk/dmAdminPlugin/modules/dmInterface/actions/components.class.php
===================================================================
--- 
plugins/diemPlugin/trunk/dmAdminPlugin/modules/dmInterface/actions/components.class.php
     2010-01-22 20:28:56 UTC (rev 27073)
+++ 
plugins/diemPlugin/trunk/dmAdminPlugin/modules/dmInterface/actions/components.class.php
     2010-01-22 20:43:56 UTC (rev 27074)
@@ -12,11 +12,10 @@
     if ($this->context->getI18n()->hasManyCultures())
     {
       $cultures = array();
-      $languages = 
sfCultureInfo::getInstance($this->getUser()->getCulture())->getLanguages();
-      
+
       foreach($this->context->getI18n()->getCultures() as $key)
       {
-        $cultures[$key] = dmArray::get($languages, $key, $key);
+        $cultures[$key] = sfCultureInfo::getInstance($key)->getLanguage($key);
       }
     
       $this->cultureSelect = new sfWidgetFormSelect(array('choices' => 
$cultures));

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" 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-svn?hl=en.

Reply via email to