Development

#4323 (I18n code ignores sf_app_i18n_dir)

You must first sign up to be able to contribute.

Ticket #4323 (closed defect: fixed)

Opened 4 months ago

Last modified 2 months ago

I18n code ignores sf_app_i18n_dir

Reported by: adam Assigned to: fabien
Priority: minor Milestone: 1.1.5
Component: i18n Version: 1.1.1
Keywords: Cc:
Qualification: Unreviewed

Description

The 1.1 code base ignores the value sf_app_i18n_dir.

The problem is in sfApplicationConfiguration.class.php, function getI18NGlobalDirs(), lines 405-408.

// application if (is_dir($dir = sfConfig::get('sf_app_dir').'/i18n')) {

$dirs[] = $dir;

}

Change History

09/06/08 01:59:38 changed by adam

  • version changed from 1.0.18 to 1.1.1.
  • component changed from other to i18n.

09/21/08 01:30:53 changed by adam

Suggested patch:

--- sfApplicationConfiguration.class.php        (revision 11667)
+++ sfApplicationConfiguration.class.php        (working copy)
@@ -404,7 +404,7 @@
     $dirs = array();
 
     // application
-    if (is_dir($dir = sfConfig::get('sf_app_dir').'/i18n'))
+    if (is_dir($dir = sfConfig::get('sf_app_i18n_dir')))
     {
       $dirs[] = $dir;
     }
@@ -437,7 +437,7 @@
     }
 
     // application
-    if (is_dir($dir = sfConfig::get('sf_app_dir').'/i18n'))
+    if (is_dir($dir = sfConfig::get('sf_app_i18n_dir')))
     {
       $dirs[] = $dir;
     }

11/17/08 21:27:19 changed by fabien

  • milestone set to 1.1.5.

11/17/08 21:27:39 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [13078]) [1.1, 1.2] fixed I18n code ignores sf_app_i18n_dir (closes #4323)