Ticket #6854 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

Add plugin hook in schema.php to allow localizing default options

Reported by: RanYanivHartstein Assigned to: ryan
Priority: normal Milestone: 2.6
Component: i18n Version: 2.5.1
Severity: normal Keywords: has-patch tested
Cc:

Description

The populate_options() function in schema.php sets several default options that are locale-specific, such as the first day of the week, feed language and possibly timezone (depending on your locale). Adding a plugin hook to populate_options() will allow overriding these defaults in the locale files.

I included a patch to add a plugin hook to populate_options(), I tested it with 2.5.1

Attachments

schema.php.diff (0.6 kB) - added by RanYanivHartstein on 04/26/08 23:30:00.
Patch to add plugin hook in populate_options()

Change History

04/26/08 23:30:00 changed by RanYanivHartstein

  • attachment schema.php.diff added.

Patch to add plugin hook in populate_options()

04/27/08 04:27:43 changed by ryan

  • owner changed from anonymous to ryan.

04/28/08 07:46:20 changed by Viper007Bond

  • version set to 2.5.1.

Technically, you could do this via the pre_ hooks for add/update, but it'd be a lot more work.

04/28/08 19:55:01 changed by ryan

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

(In [7848]) Add populate_options action. Props RanYanivHartstein?. fixes #6854