Author: ornicar2
Date: 2010-01-21 15:54:03 +0100 (Thu, 21 Jan 2010)
New Revision: 27000
Modified:
plugins/diemPlugin/trunk/dmCorePlugin/lib/i18n/dmI18n.php
Log:
[Diem]
- i18n service now loads transliteration strings required for all sites
cultures when initializing - closes #8154
Modified: plugins/diemPlugin/trunk/dmCorePlugin/lib/i18n/dmI18n.php
===================================================================
--- plugins/diemPlugin/trunk/dmCorePlugin/lib/i18n/dmI18n.php 2010-01-21
14:48:23 UTC (rev 26999)
+++ plugins/diemPlugin/trunk/dmCorePlugin/lib/i18n/dmI18n.php 2010-01-21
14:54:03 UTC (rev 27000)
@@ -141,18 +141,7 @@
{
$this->culture = sfConfig::get('sf_default_culture');
}
- }
- /**
- * Listens to the user.change_culture event.
- *
- * @param sfEvent $event An sfEvent instance
- *
- */
- public function listenToChangeCultureEvent(sfEvent $event)
- {
- parent::listenToChangeCultureEvent($event);
-
$this->loadTransliterationStrings();
}
@@ -162,9 +151,12 @@
$transliterationMap = include(sprintf($filePattern, 'default'));
- if(file_exists(sprintf($filePattern, $this->getCulture())))
+ foreach($this->getCultures() as $culture)
{
- $transliterationMap = array_merge($transliterationMap,
include(sprintf($filePattern, $this->getCulture())));
+ if(file_exists(sprintf($filePattern, $culture)))
+ {
+ $transliterationMap = array_merge($transliterationMap,
include(sprintf($filePattern, $this->getCulture())));
+ }
}
sfConfig::set('dm_string_transliteration', $transliterationMap);
--
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.