Development

#1877 (i18n: Default culture not loaded by default)

You must first sign up to be able to contribute.

Ticket #1877 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

i18n: Default culture not loaded by default

Reported by: Andrejs.Verza Assigned to: fabien
Priority: minor Milestone: 1.1.0
Component: i18n Version: 1.0.4
Keywords: i18n, default_culture Cc:
Qualification: Unreviewed

Description

The default culture is not loaded from the

/config/i18n.yml

... until the i18n is set to true in

/config/settings.yml

I think this is indeed a defect, because the default culture is not in any way related to the interface translation (settings.yml - i18n). I just want to force another "default" culture.

-- Thanks!

Change History

06/22/07 13:24:23 changed by Andrejs.Verza

The problem is here (/lib/symfony.php):

96: if (sfConfig::get('sf_i18n'))
97: {
98:   include($configCache->checkConfig($sf_app_config_dir_name.'/i18n.yml'));
99: }

I sugguest to remove the If statement.

06/22/07 13:42:10 changed by Andrejs.Verza

The idea is to separate those two things:

1) the default culture for non-i18n application,
2) settings for i18n application (those are set in i18n.yml file).

So, better suggestion would be to move the "default_culture" from the i18n.yml to settings.yml. Therefore leaving i18n settings in i18n.yml and the default_culture in settings.yml.

12/23/07 12:41:20 changed by fabien

  • qualification set to Unreviewed.
  • milestone set to 1.1.0.

12/26/07 21:59:34 changed by fabien

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

in r6721