Closed (fixed)
Project:
Localizer
Version:
4.7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 Dec 2006 at 17:28 UTC
Updated:
19 Dec 2006 at 15:04 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | localizernode_0.module | 17.16 KB | Roberto Gerola |
Comments
Comment #1
Roberto Gerola commentedI 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.
Comment #2
Roberto Gerola commentedSee :
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...
Comment #3
Roberto Gerola commentedComment #4
Roberto Gerola commentedSome 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.
Comment #5
vb commentedIt 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"
Comment #6
vb commentedI 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
Comment #7
Roberto Gerola commentedJust 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.
Comment #8
vb commentedYes, 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
-----------------------------
----------------------------
I do not know if this can be fixed in this part of your code or somewhere.
Comment #9
Roberto Gerola commentedTry 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.
Comment #10
Roberto Gerola commentedComment #11
vb commentedBR 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.
Comment #12
vb commentedTranslated menu items work.
Comment #13
Roberto Gerola commentedI open a different issue for books breadcrumbs.
Comment #14
Roberto Gerola commented