Hello Alessandro,
Thanks for writing in! I can confirm that “Assign a Menu” is not translatable because it was hard coded in one of the theme files. I will report this to our developers so that it can be added to the po file.
Meanwhile, if you want to translate it, assuming your child theme is set up, please add the following code in your child theme’s functions.php file
// Output Primary Navigation
// =============================================================================
if ( ! function_exists( 'x_output_primary_navigation' ) ) :
function x_output_primary_navigation() {
if ( x_is_one_page_navigation() ) {
wp_nav_menu( array(
'menu' => x_get_one_page_navigation_menu(),
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'x-nav x-nav-scrollspy',
'link_before' => '<span>',
'link_after' => '</span>'
) );
} elseif ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array(
'theme_location' => 'primary',
'container' => false,
'menu_class' => 'x-nav',
'link_before' => '<span>',
'link_after' => '</span>'
) );
} else {
echo '<ul class="x-nav"><li><a href="' . home_url( '/' ) . 'wp-admin/nav-menus.php">Assign a Menu</a></li></ul>';
}
}
endif;
And please do not forget to change the “Assign a Menu” keyword in the code above.
If you need anything else we can help you with, please let us know.