Support

Account

Home Forums Feedback Better i18n core/input.php

Helping

Better i18n core/input.php

  • Hi!

    I don’t know where to do a pull-request for V5 of the plugin so here is my propose change for better i18n on line 199 of core/input.php

    Before:

    
    if( count($json['errors']) == 1 ) {
    			
    			$json['message'] .= '. ' . __('1 required field below is empty', 'acf');
    			
    		} else {
    			
    			$json['message'] .= '. ' . sprintf( __('%s required fields below are empty', 'acf'), count($json['errors']) );
    			
    		}
    

    After:

    
    $json['message'] .= '. ' . sprintf( _n('1 required field below is empty', '%s required fields below are empty', count($json['errors']), 'acf' ), count($json['errors']) );
    
  • Hi @bardo-jonathan

    Assigning this to Elliot so he can make a judgement call 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Better i18n core/input.php’ is closed to new replies.