Comment #1 on issue 1298 by [email protected]: display translated Site Title and Description
http://code.google.com/p/qubit-toolkit/issues/detail?id=1298

I found this is happening because scope value is NULL in both site title and site description i18n rows.

We may need to update the migration script to fix this retrospectively? And this patch:

Index: plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php
===================================================================
--- plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php (revision 6575) +++ plugins/sfInstallPlugin/modules/sfInstallPlugin/actions/configureSiteAction.class.php (working copy)
@@ -51,11 +51,13 @@
       {
         $setting = new QubitSetting;
         $setting->name = 'siteTitle';
+        $setting->scope = 'site_information';
         $setting->value = $this->form->getValue('siteTitle');
         $setting->save();

         $setting = new QubitSetting;
         $setting->name = 'siteDescription';
+        $setting->scope = 'site_information';
         $setting->value = $this->form->getValue('siteDescription');
         $setting->save();

Index: apps/qubit/templates/_header.php
===================================================================
--- apps/qubit/templates/_header.php    (revision 6575)
+++ apps/qubit/templates/_header.php    (working copy)
@@ -14,13 +14,13 @@

         <?php if (sfConfig::get('app_toggleTitle')): ?>
           <h1 id="site-name">
- <?php echo link_to('<span>'.sfConfig::get('app_siteTitle').'</span>', '@homepage', array('rel' => 'home', 'title' => __('Home'))) ?> + <?php echo link_to('<span>'.sfConfig::get('app_site_information_siteTitle').'</span>', '@homepage', array('rel' => 'home', 'title' => __('Home'))) ?>
           </h1>
         <?php endif; ?>

         <?php if (sfConfig::get('app_toggleDescription')): ?>
           <div id="site-slogan">
-            <?php echo sfConfig::get('app_siteDescription') ?>
+ <?php echo sfConfig::get('app_site_information_siteDescription') ?>
           </div>
         <?php endif; ?>


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Qubit 
Toolkit Issues" 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/qubit-issues?hl=en.

Reply via email to