[wp-polyglots] Locale-related defaults in schema.php

Ran Yaniv Hartstein ran.hartstein at gmail.com
Mon Jun 2 10:38:07 GMT 2008


This is the ticket:

http://trac.wordpress.org/ticket/6854

On Mon, Jun 2, 2008 at 1:04 PM, Ran Yaniv Hartstein <ran.hartstein at gmail.com>
wrote:

> A recent patch to schema.php now allows setting installation defaults in
> the xx_XX.php locale file instead of directly in the schema.php file. For
> e.g., for the Hebrew locale, I added the following to he_IL.php:
>
>     function schema_il() {
>         add_option('start_of_week', 0);
>         add_option('gmt_offset', '2');
>         add_option('rss_language', 'he');
>     }
>
>     add_action ('populate_options', 'schema_il');
>
>
> This sets the following locale-specific settings: First day of the week in
> Sunday, GMT offset is +2, and RSS language is Hebrew.
>
> This can be used for all the defaults set in schema.php
>
> --
> -- RYH♡,
> ranh.co.il
> _______________________________________________
> wp-polyglots mailing list
> wp-polyglots at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-polyglots
>
>


-- 
-- RYH♡,
ranh.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-polyglots/attachments/20080602/d62b756c/attachment.htm


More information about the wp-polyglots mailing list