Opened 5 years ago
Closed 5 years ago
#6854 closed enhancement (fixed)
Add plugin hook in schema.php to allow localizing default options
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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 (1)
Change History (4)
RanYanivHartstein
— 5 years ago
comment:2
Viper007Bond
— 5 years ago
- 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.
Note: See
TracTickets for help on using
tickets.
Patch to add plugin hook in populate_options()