Drupal 6.6
Bilingual site - BG-EN
I would like that the URL alias look for a translated page something like:
www.site.com/bg/page
www.site.com/en/page

In Language negotiation settings of admin/settings/language/configure I have set Path prefix only and it seems to work properly, because when I switch over between the languages, the correct page is displayed.

The problem is that when I edit any of the two pages from the above example, I'm getting the following message:
user warning: Duplicate entry 'page-bg' for key 2 query: UPDATE url_alias SET src = 'node/12', dst = 'page', language = 'bg' WHERE dst = 'page' in /users/myhost/public_html/cms/modules/path/path.module on line 108.

As far as I can see it doesn't cause any visible problems, but I feel unsure if everything is OK.
Strange for me is that in the message is mentioned page-bg and a've never created such alias. Actually I'm trying to stay away from alias like: www.site.com/bg/page-bg as I don't like the repeated bg.

Another strange fact is that the message appears only when I edit already created page. It never appears on the first submission of the page after the creation.

Comments

Avitohol’s picture

Nobody interested?

Avitohol’s picture

Ping

Avitohol’s picture

Here's the table url_alias

pid--src--dst-------------------language 
1	node/5	fortress-baba-vida		bg
.
3	node/7	fortress-baba-vida		en
4	node/8	annotation-en			en
.
7	node/11	annotation			bg
8	node/12	fortresses-vidin-district	bg
9	node/13	fortresses-vidin-district	en

The mentioned before message appears for the pairs if translated pages from rows 8 and 9, 1 and 3.
For ex. for pairs like 4 and 7 there-s no problem (message).

Modules installed:
CCK
i18n
Image
Languageicons
Lightbox2
Translation overview
Views

Avitohol’s picture

What's wrong with this question, that nobody want's to give a hand?

Steff Vanhaverbeke’s picture

I used to have the same problem, but was lucky to use similar multilingual functionality on 2 sites; site A and site B.

Sites A & B use the Multilanguage Module (i18n)
Sites A & B use the same Language Configuration settings: "Only Path Prefix"
Sites A & B use the same Language Workflow settings in their node types: "Enabled, With Translation"
Site A uses no language synchronization for respective fields.
Site B uses language synchronization for a few fields in certain node types.

If you would like to use the same path across different languages for certain node types, make sure you use NO language synchronization for those node types.

Hope this helps.