components/I18n/I18n.php
public function create_lang_label( $lang_data ) {

		$english_name = '';
		$native_name  = '';

		if ( isset( $lang_data['english_name'] ) ) {
			$english_name = $lang_data['english_name'];
		}
		if ( isset( $lang_data['native_name'] ) ) {
			$native_name = $lang_data['native_name'];
		}

		if ( ! empty( $native_name ) && ! empty( $english_name ) ) {
			if ( $native_name == $english_name ) {
				return $english_name;
			} else {
				return $english_name . ' / ' . $native_name;
			}
		} else {
			if ( ! empty( $english_name ) ) {
				return $english_name;
			}
			if ( ! empty( $native_name ) ) {
				return $native_name;
			}
		}

		return '';
	}
public function create_lang_label( $lang_data ) {

		$english_name = '';
		$native_name  = '';

		if ( isset( $lang_data['english_name'] ) ) {
			$english_name = $lang_data['english_name'];
		}
		if ( isset( $lang_data['native_name'] ) ) {
			$native_name = $lang_data['native_name'];
		}

		if ( ! empty( $native_name ) && ! empty( $english_name ) ) {
			if ( $native_name == $english_name ) {
				return $english_name;
			} else {
				return $english_name . ' / ' . $native_name;
			}
		} else {
			if ( ! empty( $english_name ) ) {
				return $english_name;
			}
			if ( ! empty( $native_name ) ) {
				return $native_name;
			}
		}

		return '';
	}
public function create_lang_label ( $ lang_data ) { $ english_name = '' ; $ native_name = '' ; if ( isset ( $ lang_data [ 'english_name' ] ) ) { $ english_name = $ lang_data [ 'english_name' ] ; } if ( isset ( $ lang_data [ 'native_name' ] ) ) { $ native_name = $ lang_data [ 'native_name' ] ; } if ( ! empty ( $ native_name ) && ! empty ( $ english_name ) ) { if ( $ native_name == $ english_name ) { return $ english_name ; } else { return $ english_name . ' / ' . $ native_name ; } } else { if ( ! empty ( $ english_name ) ) { return $ english_name ; } if ( ! empty ( $ native_name ) ) { return $ native_name ; } } return '' ; }
Create a label with the english and native name combined

@since 0.1.0

@param  array $lang_data

@return string
Create a label with the english and native name combined