Gets the language code of the current translation language; or none
if there is no translation.
public getDisplayNameLanguageCode ( $p_lang ) : string | ||
Résultat | string |
?> /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()); ?> </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
$commentImage = "is_shown.png"; } else { $commentChangeText = getGS('activate'); $commentImage = "is_hidden.png"; } ?> <TR <?php if ($color) { $color=0; ?>class="list_row_even"<?php } else { $color=1; ?>class="list_row_odd"<?php } ?>> <TD> <A HREF="/<?php p($ADMIN); ?>/article_types/rename.php?f_name=<?php print htmlspecialchars($articleType); ?>"><?php print htmlspecialchars($articleType); ?></A> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/fields/?f_article_type=<?php print urlencode($articleType); ?>"><?php putGS('Fields'); ?></A> </TD> <TD> <?php print $currentArticleType->getDisplayName(); ?> <?php print $currentArticleType->getDisplayNameLanguageCode(); ?> </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 putGS("Translate"); ?>" title="<?php putGS("Translate"); ?>" border="0"></a> </td> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/do_hide.php?f_article_type=<?php print urlencode($articleType); ?>&f_status=<?php print $hideShowStatus; ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to $1 the article type $2?', $hideShowText, "\'".htmlspecialchars($articleType)."\'"); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/<?php echo $hideShowImage; ?>" BORDER="0" ALT="<?php putGS('$1 article type $2', ucfirst($hideShowText), htmlspecialchars($articleType)); ?>" TITLE="<?php putGS('$1 article type $2', ucfirst($hideShowText), htmlspecialchars($articleType)); ?>" ></A> </TD> <TD ALIGN="CENTER"> <A HREF="/<?php p($ADMIN); ?>/article_types/do_comment_activation.php?f_article_type=<?php print urlencode($articleType); ?>&<?php echo SecurityToken::URLParameter(); ?>" onclick="return confirm('<?php putGS('Are you sure you want to $1 comments for article type $2?', $commentChangeText, "\'".htmlspecialchars($articleType)."\'"); ?>');"><IMG SRC="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/<?php echo $commentImage; ?>" BORDER="0" ALT="<?php putGS('$1 comments for article type $1', ucfirst($commentChangeText), htmlspecialchars($articleType)); ?>" TITLE="<?php putGS('$1 comments for article type $2', ucfirst($commentChangeText), htmlspecialchars($articleType)); ?>" ></A> </TD> <?php if ($g_user->hasPermission("DeleteArticleTypes")) { ?>
?> /article_types/fields/?f_article_type=<?php print urlencode($articleType); ?> "><?php putGS('Fields'); ?> </A> </TD> <TD> <?php print $currentArticleType->getDisplayName(); ?> <?php print $currentArticleType->getDisplayNameLanguageCode(); ?> </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 putGS("Translate"); ?> " title="<?php