';
}
$result .= '%1$s';
if ( $include_html ) {
$result .= '';
}
if ( $show_translate_name ) {
$result .= ' ';
if ( $include_html ) {
$result .= '';
}
$result .= $show_native_name
? '(%2$s)'
: '%2$s';
if ( $include_html ) {
$result .= '';
}
}
} elseif ( $show_translate_name ) {
if ( $include_html ) {
$result .= '';
}
$result .= '%2$s';
if ( $include_html ) {
$result .= '';
}
}
} else {
if ( $include_html ) {
$result .= '';
}
$result .= '%1$s';
if ( $include_html ) {
$result .= '';
}
}
} elseif ( $native_name ) {
$result = '%1$s';
} elseif ( $translated_name ) {
$result = '%2$s';
}
return sprintf( $result, $native_name, $translated_name );
}
} // end class
global $icl_language_switcher;
$icl_language_switcher = new SitePressLanguageSwitcher();