Changeset 35714 for trunk/src/wp-includes/pomo/mo.php
- Timestamp:
- 11/20/2015 04:33:12 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/mo.php
r34348 r35714 3 3 * Class for working with MO files 4 4 * 5 * @version $Id: mo.php 718 2012-10-31 00:32:02Z nbachiyski$5 * @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $ 6 6 * @package pomo 7 7 * @subpackage mo … … 125 125 $exported = $entry->singular; 126 126 if ($entry->is_plural) $exported .= chr(0).$entry->plural; 127 if ( !is_null($entry->context)) $exported = $entry->context . chr(4) . $exported;127 if ($entry->context) $exported = $entry->context . chr(4) . $exported; 128 128 return $exported; 129 129 } … … 135 135 function export_translations($entry) { 136 136 //TODO: warnings for control characters 137 return implode(chr(0), $entry->translations);137 return $entry->is_plural ? implode(chr(0), $entry->translations) : $entry->translations[0]; 138 138 } 139 139
Note: See TracChangeset
for help on using the changeset viewer.