Posted by robby.smith on May 31, 2010 at 4:21am
4 followers
| Project: | UC Localize |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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!
Comments
#1
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.
#2
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.
#3
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.
#4
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...
#5
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.