[wp-polyglots] Blank string in POT
Wacław Jacek
mail at waclawjacek.com
Wed Mar 25 14:05:07 GMT 2009
Xavier Borderie wrote the following on 25.03.2009 12:21:
> 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.');
> }
> }
> ?>
I guess it's just a separator between two strings which you can change
if the standard format doesn't fit your language too well.
Cheers,
W. J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3262 bytes
Desc: S/MIME Cryptographic Signature
Url : http://comox.textdrive.com/pipermail/wp-polyglots/attachments/20090325/f95e9353/smime.bin
More information about the wp-polyglots
mailing list