~katiekitty/+junk/wordpress-byet

« back to all changes in this revision

Viewing changes to wp-includes/pomo/po.php

  • Committer: kserver
  • Date: 2010-05-15 01:16:36 UTC
  • Revision ID: kserver@kserver-desktop-20100515011636-mnr1j7t637suptdq
Wordpress 2.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/**
3
3
 * Class for working with PO files
4
4
 *
5
 
 * @version $Id: po.php 123 2009-05-13 19:35:43Z nbachiyski $
 
5
 * @version $Id: po.php 283 2009-09-23 16:21:51Z nbachiyski $
6
6
 * @package pomo
7
7
 * @subpackage po
8
8
 */
16
16
/**
17
17
 * Routines for working with PO files
18
18
 */
 
19
if ( !class_exists( 'PO' ) ):
19
20
class PO extends Gettext_Translations {
20
21
        
21
22
 
316
317
                                return false;
317
318
                        }
318
319
                }
319
 
                if (array() == array_filter($entry->translations)) $entry->translations = array();
 
320
                if (array() == array_filter($entry->translations, create_function('$t', 'return $t || "0" === $t;'))) {
 
321
                        $entry->translations = array();
 
322
                }
320
323
                return array('entry' => $entry, 'lineno' => $lineno);
321
324
        }
322
325
        
357
360
                return $s;
358
361
        }
359
362
}
360
 
?>
 
363
endif;
 
 
b'\\ No newline at end of file'