Translating Mai Theme
All translatable strings are ready to translate in a .pot file in our Mai Engine plugin.
You can access that file via /wp-content/plugins/mai-engine/assets/lang/mai-engine.pot
Many of our customers have found success using Loco Translate or Say What? plugins for their translations as well.
Mai Theme and Genesis have many PHP filters available as well. Add any of these to functions.php or a custom functionality plugin.
/** * Changes the archive pagination previous page link text. * * @return string */ add_filter( 'genesis_prev_link_text', function() { return esc_html__( 'Older', 'textdomain' ); }, 20 );
/** * Changes the archive pagination next page link text. * * @return string */ add_filter( 'genesis_next_link_text', function() { return esc_html__( 'Newer', 'textdomain' ); }, 20 );
/** * Change Latest Posts title when homepage is set to show latest posts. * * @return string */ add_filter( 'genesis_latest_posts_title', function( $title ) { return __( 'Recent Posts', 'textdomain' ); });