|
'WPLANG',
'id' => 'WPLANG',
'selected' => $locale,
'languages' => $languages,
'translations' => $translations,
'show_available_translations' => current_user_can( 'install_languages' ) && wp_can_install_language_pack(),
)
);
// Add note about deprecated WPLANG constant.
if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) {
if ( is_multisite() && current_user_can( 'manage_network_options' )
|| ! is_multisite() && current_user_can( 'manage_options' ) ) {
?>
WPLANG', 'wp-config.php' ); ?>
|
|
' . __( 'UTC' ) . '',
'' . date_i18n( $timezone_format, false, true ) . ''
);
?>
' . date_i18n( $timezone_format ) . ''
);
?>
$right_now ) {
$found = true;
break;
}
}
if ( $found ) {
echo ' ';
$message = $tr['isdst'] ?
/* translators: %s: date and time */
__( 'Daylight saving time begins on: %s.' ) :
/* translators: %s: date and time */
__( 'Standard time begins on: %s.' );
// Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
printf(
$message,
'' . date_i18n(
__( 'F j, Y' ) . ' ' . __( 'g:i a' ),
$tr['ts'] + ( $tz_offset - $tr['offset'] )
) . ''
);
} else {
_e( 'This timezone does not observe daylight saving time.' );
}
}
// Set back to UTC.
date_default_timezone_set( 'UTC' );
?>
|