When I add child book translated page, the new item is created.

# Information
# Информация (this is russian translation of Information)

The book page have assigned path en/info
The translated book page have assigned path ru/info

Language switching shows translation correctly, but new added translated item appears in book tree.

CommentFileSizeAuthor
#1 localizernode_0.module17.16 KBRoberto Gerola

Comments

Roberto Gerola’s picture

StatusFileSize
new17.16 KB

I have implemented db_rewrite_sql hook.
Can you make some tests with the attached localizernode module ?
It seems to me that it works.

Let me know.
Roberto.

Roberto Gerola’s picture

Roberto Gerola’s picture

Priority: Normal » Critical
Status: Fixed » Active
Roberto Gerola’s picture

Some fixes :
localizertaxonomy simply extend the taxonomy.module, that must be activated.
Fixed localizernode.
You have to patch taxonomy.module to make translation work. This patch doesn't depend
on localizer, it is more generic. Even if you throw away localizer module, taxonomy continue
to work correctly. In fact it simply add a hook for translation.

http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...

Please, test this new version. If it works well I'll prepare a new official module release.

Thanks.

vb’s picture

It works!
Thank you.

In this version remains only this.

recent posts

user warning: Not unique table/alias: 'l' query: SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, l.last_comment_timestamp AS last_post, l.comment_count FROM node n INNER JOIN users u ON n.uid = u.uid INNER JOIN node_comment_statistics l ON n.nid = l.nid INNER JOIN localizernode l ON l.nid=n.nid WHERE (l.locale='en' OR l.locale='-') AND n.status = 1 ORDER BY last_post DESC LIMIT 0, 25 in ...\includes\database.mysql.inc on line 121.

and see please
breadcrumbs
some of it have translation in another language

Home » Инфо» Wheater

Инфо - russian translation of word "Info"

vb’s picture

I have created forum and when I follow forum link the same warning

Forums

user warning: Not unique table/alias: 'l' query: SELECT r.tid, COUNT(n.nid) AS topic_count, SUM(l.comment_count) AS comment_count FROM node n INNER JOIN node_comment_statistics l ON n.nid = l.nid INNER JOIN term_node r ON n.nid = r.nid INNER JOIN localizernode l ON l.nid=n.nid WHERE (l.locale='en' OR l.locale='-') AND n.status = 1 AND n.type = 'forum' GROUP BY r.tid in ...\includes\database.mysql.inc on line 121.

My discussions.
Active discussions.
Post new forum topic.

Forum Topics Posts Last post
General
News and announcements 0 0 n/a
General discussion 0 0 n/a

Roberto Gerola’s picture

Just fixed alias l name clashing :
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...

About breadcrumbs.
It seems to be a problem with the localizermenu.
I think I have to restructure localizermenu in a similar way as for taxonomy, also
because, not everything is possible only with an external module.
Stay tuned.
I'll fix it in the next hours.

vb’s picture

Yes, it works.

Another issue.
Block Latest news has to much br

I see
-----------------------------
Latest news
School Vacation 30/12/2006-07/01/2007
2006/12/17 14:09:03

Dear friends!
br
br
br
We would like to inform you that the Russian Village school is on Christmas vacations in the period from December 30, 2006 to January 7, 2007.
br
br
br
We start working on January 8th and we will be happy to welcome you at Russian courses.
br
br
br
Come to visit us to improve your Russian and get new friends!!!
-----------------------------

Html code for that story teaser
-----------------------------

<h6>Dear friends! </h6>
<p>
We would like to inform you that the Russian Village school is on Christmas vacations in the period from <b>December 30, 2006 to January 7, 2007</b>. 
</p>
<p>
We start working on <b>January 8th</b> and we will be happy to welcome you at Russian courses. 
</p>
<p>
Come to visit us to improve your Russian and get new friends!!! 
</p>

----------------------------

I do not know if this can be fixed in this part of your code or somewhere.

while ($node = db_fetch_object($result)) {
  $items[] = l($node->title,"node/" . $node->nid) .
		'<br />' .
		date('Y/m/d H:i:s', $node->created).
    '<br />'.
    str_replace("\n", "<br />", localizernode_newsteaser($node->body)) .
    '<br />'.
    '<div class="more-link">'. l(t('more'), 'node/' . $node->nid, array('title' => t('Read more.'))) .
		'</div>' .
    '<br /><br />';
	}
Roberto Gerola’s picture

Try this and let me know :
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...

Where you have the breadcrumb problem ?
When you open taxonomy or when you open menus ?
For translated menus I see there is a problem, but taxonomy seems to me work correctly.

Roberto Gerola’s picture

Assigned: Unassigned » Roberto Gerola
Status: Active » Fixed
vb’s picture

Assigned: Roberto Gerola » Unassigned
Status: Fixed » Active

BR issue fixed!

I see it inside book. This is a book page. Locale - en

Home » Инфо» Weather

Weather

view edit translation

WEATHER

==content===

Menu i did not test yet.

vb’s picture

Translated menu items work.

Roberto Gerola’s picture

Assigned: Unassigned » Roberto Gerola
Status: Active » Fixed

I open a different issue for books breadcrumbs.

Roberto Gerola’s picture

Status: Fixed » Closed (fixed)