Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ezemans

    (@ezemans)

    I did it!

    In functions.php:

    load_theme_textdomain( 'My theme name', get_template_directory().'/languages' );
    	$locale = get_locale();
    	$locale_file = get_template_directory()."/languages/$locale.php";
    	if ( is_readable($locale_file) )
    		require_once($locale_file);
    }

    Then in the templates files I used for functions: __(

    <?php the_content(__('Read more...', "My theme name")); ?>

    and for simple strings I used: _e

    <?php _e( 'Sorry, no posts matched your criteria.','My theme name' ); ?>

    Fixed! ??

    Thread Starter ezemans

    (@ezemans)

    Thanks Samuel!
    How are the translation functions? could you post and example, please.

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