k2 extra field translation not working for default language - Joomla! Forum - community, help and support


hello guys,

i have issue going destroy mind :) ... not php developer can not find way solve it...

i using k2 (v 2.5.7) cck (with alotof custom templates) , joomfish (2.1.7) deployed on joomla 1.5.26 installation.

i using following code (in templates) in order fetch individual k2 fields name:

code: select all

$extrafld = array();
if ( $this->item->extra_fields ) {
      foreach ( $this->item->extra_fields $key=>$extrafield ) {
        $extrafld[ $extrafield->name ] = $extrafield->value;
   }
}


and fetch this:

code: select all

echo "<li class=\"dinning-cuisine\"><span>" . jtext::_('cuisine') . "</span><br />" . $extrafld['cuisine'] . "</li>\n";


the problem if translate field cuisine (to greek (default) , english) default language translation disappears (see below)
untitled-1.jpg


while english 1 works fine!
untitled-2.jpg


any ideas causing weird behavior??

please see attached screenshots...






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support