Keyword

[SOLVED] User description translation issue

  • Julien Bousquet
  • Julien Bousquet's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #117607 by Julien Bousquet
[SOLVED] User description translation issue was created by Julien Bousquet
hello,

We are building a multilingual site, in content item we have activated post and username and description. It will be great that the user description displayed in selected language. We saw that user description doesn't have the select box "languages". We try to use {loadposition xxx} but it doesn't work.

www.micrositeme.com/dev/mercegirona/site/index.php/en/sushi/item/384-bracelet-bondage

Apreciate your help.
Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #117608 by aubenefit
Replied by aubenefit on topic Re: User description translation issue
{loadposition xxx}

you use that to load module with info of user?
enable the plugin load module.
Or tell me more detail, we can help

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 1 month ago #117609 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: User description translation issue
{loadposition} can only be used in your editor.

In order to have modules outside index.php you have to use this method.
getk2.org/community/New-to-K2-Ask-here-first/179348-Adding-advert-at-end-of-every-article

In order to translate the full elements of the user you have to use an extension like Joomfish or Falaang (not 100% sure)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Julien Bousquet
  • Julien Bousquet's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #117610 by Julien Bousquet
Replied by Julien Bousquet on topic Re: User description translation issue
Ok i'm gone check that & try it. Thanks

Please Log in or Create an account to join the conversation.

  • Julien Bousquet
  • Julien Bousquet's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #117611 by Julien Bousquet
Replied by Julien Bousquet on topic Re: User description translation issue
GREAT!!! it work just fine. Exactly what I need.

In item.php replace:

<?php if($this->item->params->get('itemAuthorDescription') && !empty($this->item->author->profile->description)): ?>
<p><?php echo $this->item->author->profile->description; ?></p>
<?php endif;?>

BY >>

<?php if(JModuleHelper::getModules('module_name')): ?>
<?php foreach (JModuleHelper::getModules('module_name') as $module) {
echo JModuleHelper::renderModule($module, array('style' => 'module_style'));
}?>
<?php endif; ?>

Change in code module _name (2) and module_style (1)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum