qTranslate-Team / qtranslate-x

Wordpress plugin: Adds user-friendly and database-friendly multilingual content management and translation support.

Home Page:http://qtranslatexteam.wordpress.com/about/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get term name in a specific language

efoula opened this issue · comments

I am trying to get the term name in Arabic (only have 2 active langs English and Arabic) with no luck using "qtrans_use"

$terms = get_the_terms($postid, 'age'); if ($terms) { foreach ($terms as $term) { $val_en = $term->name; $val_ar = qtrans_use('ar', $term->name,false); } } echo $val_ar;

any luck?

The qTranslate-X project is abandoned since 2016 so you won't get any update here. I welcome you to switch to qTranslate-XT. Please read our README carefully to proceed with the installation. It's safe and being used by many people.