News:

Support the VirtueMart project and become a member

Main Menu

Category name display in a specific language

Started by be, September 10, 2013, 23:58:32 PM

Previous topic - Next topic

be

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

Maxim Pishnyak

This question could be addressed to the Joomla Forum.

You could manually insert links in category descriptions still.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart