Changeset 2174819
- Timestamp:
- 10/17/2019 11:30:53 AM (6 years ago)
- Location:
- dynamic-mo-loader/trunk
- Files:
-
- 3 edited
-
dynamic-mo-loader.php (modified) (1 diff)
-
inc/mo_dynamic.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dynamic-mo-loader/trunk/dynamic-mo-loader.php
r2130572 r2174819 4 4 Plugin URI: https://github.com/aucor/dynamic-mo-loader 5 5 Description: Better text domain loading with object cache support 6 Version: 1. 3.06 Version: 1.4.0 7 7 Author: Aucor Oy 8 8 Author URI: -
dynamic-mo-loader/trunk/inc/mo_dynamic.php
r2130572 r2174819 144 144 wp_cache_replace( $key, $t, 'dymoloader1.0', $cache_time ); 145 145 } 146 147 146 return json_decode( gzuncompress( $t['data'] ), true ); 148 147 } … … 167 166 } 168 167 } 169 168 170 169 if ( $this->translations === NULL ) { 171 170 $this->translations = array(); … … 404 403 $cmpval = strcmp( $key, $mo_original ); 405 404 406 if ( $cmpval === 0 ) {405 //if ( $cmpval === 0 ) { 407 406 // key found, read translation string 408 407 $moitem->reader->seekto( $moitem->translations_table[$pos+1] ); … … 414 413 } 415 414 return $translation; 416 }415 //} 417 416 } 418 417 } 418 419 419 if ($idx >= $moitem->hash_length - $incr) 420 420 $idx -= ($moitem->hash_length - $incr); … … 514 514 if ( $context == NULL ) { 515 515 $s = $singular; 516 517 516 } else { 518 517 $s = $context . chr(4) . $singular; … … 535 534 536 535 if ( $t !== false ) { 537 if ( false !== ( $i = strpos( $t, '0') ) ) {536 if ( false !== ( $i = strpos( $t, 0 ) ) ) { 538 537 if ( $count == 1 ) { 539 538 return substr ( $t, '0', $i ); 540 541 539 } else { 542 540 // only one plural form is assumed - needs improvement … … 565 563 } 566 564 } 567 565 568 566 foreach ( $other->MOs as $moitem ) { 569 567 $i = 0; -
dynamic-mo-loader/trunk/readme.txt
r2130572 r2174819 3 3 Tags: WordPress, REST API, WP_Query 4 4 Requires at least: 4.7.3 5 Tested up to: 4.9.85 Tested up to: 5.2.4 6 6 Requires PHP: 7.0 7 7 Stable tag: trunk … … 23 23 24 24 == Changelog == 25 = 1.4.0 = 26 * bugfix for plural translation 25 27 = 1.3.0 = 26 28 * unique function names, sanitized current_url and bugfix for translate function concatenating string with zero
Note: See TracChangeset
for help on using the changeset viewer.