Author Topic: Category name display in a specific language  (Read 473 times)

be

  • Beginner
  • *
  • Posts: 36
Category name display in a specific language
« on: September 10, 2013, 23:58:32 pm »
Hi,
is it possible to show the category name of a specific language?

As example:
Code: [Select]
$lang = JFactory::getLanguage();
$langactive = $lang->getTag();

if ($langactive=="de-DE") {
echo '
<hr class="headerseperator" style="border: 1px solid #000; text-align:left;" width="96">
<h3>'. $category_name . '</h3>';
}
elseif($langactive=="en-GB") {
echo '
<hr class="headerseperator" style="border: 1px solid #000; text-align:left;" width="96">
<h3>'. $category_name . '</h3>';
}

I have the categorynames in both languages in the database in the tables "xyz_virtuemart_categories_de_de" and "xyz_virtuemart_categories_en_gb".
But i donĀ“t have any idea how I can call them directly.

BR

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2658
Re: Category name display in a specific language
« Reply #1 on: September 12, 2013, 10:53:40 am »
This question could be addressed to the Joomla Forum.

You could manually insert links in category descriptions still.