There is an easier way. In the theme's head.php, change the following:
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title><?php echo meta_title(); ?></title>
<meta name="title" content="<?php echo osc_esc_html(meta_title()); ?>" />
<?php if( meta_description() != '' ) { ?><meta name="description" content="<?php echo osc_esc_html(meta_description()); ?>" /><?php } ?>
<?php if( osc_get_canonical() != '' ) { ?><link rel="canonical" href="<?php echo osc_get_canonical(); ?>"/><?php } ?>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Mon, 01 Jul 1970 00:00:00 GMT" />
<?php if( !osc_is_search_page() ) { ?>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<?php } ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
With this:
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<?php
$current_locale = osc_current_user_locale();
// Define a secondary dynamic title and description based on the language. The primary language is set via the ADMIN panel.
if ($current_locale == 'en_US') {
$custom_title = 'domain.com | xxxxxxx ';
$custom_desc = 'Find what you are looking for';
} else {
$custom_title = meta_title();
$custom_desc = meta_description();
}
?>
<title><?php echo $custom_title; ?></title>
<meta name="title" content="<?php echo osc_esc_html($custom_title); ?>" />
<?php if( !empty($custom_desc) ) { ?>
<meta name="description" content="<?php echo osc_esc_html($custom_desc); ?>" />
<?php } ?>
<?php if( osc_get_canonical() != '' ) { ?><link rel="canonical" href="<?php echo osc_get_canonical(); ?>"/><?php } ?>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Mon, 01 Jul 1970 00:00:00 GMT" />
<?php if( !osc_is_search_page() ) { ?>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<?php } ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />