Template tag: xiliml_the_category

replace the_category() tag of WP Core to translate items

The current template tag the_category is not hookable by plugin. So here the categories list of a post inside loop will be translated according the language of the current post.

<p class="postmetadata"><?php the_tags(__('Tags: ','xiliips'), ', ', '<br />'); echo " "; _e('Posted in','xiliips'); echo " "; 
				if (class_exists('xili_language')) {
					xiliml_the_category(get_the_ID(),', ');
				} else {
					the_category(', ');
				}  ?> | <?php edit_post_link(__('Edit','xiliips'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;','xiliips'), __('1 Comment &#187;','xiliips'), __('% Comments &#187;','xiliips')); ?></p>
Ce contenu a été publié dans xili-language, avec comme mot(s)-clé(s) , . Vous pouvez le mettre en favoris avec ce permalien.