VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: be on September 10, 2013, 23:58:32 PM

Title: Category name display in a specific language
Post by: be on September 10, 2013, 23:58:32 PM
Hi,
is it possible to show the category name of a specific language?

As example:

$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
Title: Re: Category name display in a specific language
Post by: Maxim Pishnyak 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.