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 »','xiliips'), __('1 Comment »','xiliips'), __('% Comments »','xiliips')); ?></p> |