[wp-polyglots] Blank string in POT

Xavier Borderie xavier at borderie.net
Wed Mar 25 11:21:25 GMT 2009


Quick question: am I the only one seeing a blank line in the current POT?

It's tied to wp-admin/options-general.php:

#: wp-admin/options-general.php:171
msgid " "
msgstr ""

It's in line 7031 of the POT

What's its use?

Oh well, I dived in and had a look: it seems to be part of the timezone
option. I have yet to understand why its there...

    <?php
    if (function_exists('timezone_transitions_get') && $tzstring) {
        $dateTimeZoneSelected = new DateTimeZone($tzstring);
        foreach (timezone_transitions_get($dateTimeZoneSelected) as $tr) {
            if ($tr['ts'] > time()) {
                    $found = true;
                break;
            }
        }

        if ( isset($found) && $found === true ) {
===>        _e(' ');
<==== Here it is.
            $message = $tr['isdst'] ?
                __('This timezone switches to daylight savings time on:
%s.') :
                __('This timezone switches to standard time on: %s.');
            $tz = new DateTimeZone($tzstring);
            $d = new DateTime( "@{$tr['ts']}" );
            $d->setTimezone($tz);
            printf( $message, date_i18n(__('Y-m-d \a\t g:i a T'),
$d->format('U') ) );
        } else {
            _e('This timezone does not observe daylight savings time.');
        }
    }
    ?>

-- 
Xavier Borderie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/wp-polyglots/attachments/20090325/e38c28d2/attachment.htm


More information about the wp-polyglots mailing list