2008/1/4, Ran Yaniv Hartstein <[EMAIL PROTECTED]>:
> Is there a way to set different default values for various variables that
> get set during installation in the localization files?
>
> For e.g., for the Hebrew localization, I change 'start_of_week' to '0' (the
> first day of the week in Israel in Sunday), 'rss_language' to 'he' and
> 'gmt_offset' to '2'.
>
> Currently, I do this by editing the wp-admin/includes/schema.php. Is there a
> way of setting these values in the localization files (the locale.php file)?
There is. First, add he.php in wp-content/languages and inside you
can add the option when we are currently installing WordPress only:
if (defined('WP_INSTALLING')) {
add_option('start_of_week', 0);
}
This file is loaded before the actual installation takes place, so the
option is not added by the code in schema.php.
Happy hacking,
Nikolay.
_______________________________________________
wp-polyglots mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-polyglots