Hello,

My drupal default language is French (www.example.com/) and second language is English (www.example.com/en). I would like to translate the product title/name in both languages. Is this module needed?

Thanks!

CommentFileSizeAuthor
#5 uc_localize.zip4.24 KBmandreato

Comments

mathieuhelie’s picture

Category: support » bug

I'm doing a French/English site right now. The product body is translating properly but the translated title is not showing up on my node view page, despite showing up when I edit the node.

It also fails to format the French body text with paragraphs as per the filtered HTML filter.

mathieuhelie’s picture

Same problem with translated attributes. Translated attribute titles get saved in the database but do not show up in the product edit page or the product view page.

aacraig’s picture

As this is a hack module to diminish the effects of a deeper problem in Ubercart, it is not complete, nor, I hope, will it ever be completed.

The admin forms do not display translated strings reliably (I believe this is stated in the documentation). The front-end stuff should display the translated strings correctly, though.

mandreato’s picture

I'm trying this module which can have a foundamental importance for multilanguage Ubercart sites.
I've experienced the same problem: product body is being translated, whist title remains in the default lang.
As a workaround, I've edited the uc_localize.module file in the uc_localize_nodeapi function:
changed

  switch ($op) {
    case 'view':
    ...

into

  switch ($op) {
    case 'load':
      $row = uc_localize_node_strings($node->nid);
      if (!$row)
        return;

      if ($row['title'])
        $node->title = $row['title'];
      break;

    case 'view':
    ... 

It seems working... Now I've to investigate into further parts...

mandreato’s picture

StatusFileSize
new4.24 KB

If anyone is interested, I've edited the uc_localize.module file to gain more translated parts. It seems to function...
I'm not able to build a patch, so attaching it directly here.