ArticleType::getDisplayNameLanguageCode PHP Method

getDisplayNameLanguageCode() public method

Gets the language code of the current translation language; or none if there is no translation.
public getDisplayNameLanguageCode ( $p_lang ) : string
return string
    public function getDisplayNameLanguageCode($p_lang = 0)
    {
        return $this->m_metadata->getDisplayNameLanguageCode($p_lang);
    }

Usage Example

Example #1
0
        ?>
/article_types/fields/?f_article_type=<?php 
        print urlencode($articleType);
        ?>
"><?php 
        echo $translator->trans('Fields');
        ?>
</A>
	</TD>

	<TD>
		<?php 
        print $currentArticleType->getDisplayName($languageObj->getLanguageId());
        ?>
 <?php 
        print $currentArticleType->getDisplayNameLanguageCode($languageObj->getLanguageId());
        ?>
&nbsp;
	</TD>

	<td>
		<a href="javascript: void(0);" onclick="HideAll(type_ids); ShowElement('translate_type_<?php 
        p($i);
        ?>
');"><img src="<?php 
        echo $Campsite["ADMIN_IMAGE_BASE_URL"];
        ?>
/localizer.png" alt="<?php 
        echo $translator->trans("Translate");
        ?>
" title="<?php 
All Usage Examples Of ArticleType::getDisplayNameLanguageCode