Поддержка Переводы Проблема с переводом

  • Пытаюсь сделать перевод темы. Создал PO и МО файлы, но ВП их «не видит». Вот в functions.php упоминается о переводе, но я не совсем понял что нужно сделать. Подскажите други.

    /* Translators: If there are characters in your language that are not
    	 * supported by Source Sans Pro, translate this to 'off'. Do not translate
    	 * into your own language.
    	 */
    	$source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'fruitful' );
    
    	/* Translators: If there are characters in your language that are not
    	 * supported by Bitter, translate this to 'off'. Do not translate into your
    	 * own language.
    	 */
    	$bitter = _x( 'on', 'Bitter font: on or off', 'fruitful' );
    
    	if ( 'off' !== $source_sans_pro || 'off' !== $bitter ) {
    		$font_families = array();
    
    		if ( 'off' !== $source_sans_pro )
    			$font_families[] = 'Source Sans Pro:300,400,700,300italic,400italic,700italic';
    
    		if ( 'off' !== $bitter )
    			$font_families[] = 'Bitter:400,700';
    
    		$query_args = array(
    			'family' => urlencode( implode( '|', $font_families ) ),
    			'subset' => urlencode( 'latin,latin-ext' ),
    		);
    		$fonts_url = add_query_arg( $query_args, "//fonts.googleapis.com/css" );
    	}
    
    	return $fonts_url;
    }
    
    function fruitful_setup() {
    	/**
    	 * Make theme available for translation
    	 * Translations can be filed in the /languages/ directory
    	 * If you're building a theme based on Fruitful theme, use a find and replace
    	 * to change 'fruitful' to the name of your theme in all the template files
    	 */
    	load_theme_textdomain( 'fruitful', get_template_directory() . '/languages' );

Просмотр 1 ответа (всего 1)
Просмотр 1 ответа (всего 1)
  • Тема «Проблема с переводом» закрыта для новых ответов.