Yesterday I tried to create a drupal 6 site with translation, and I felt horribly compared to drupal5+i18n.
I did not test it further, so I will ask about it before submitting bugs. Maybe I am making something wrong..

Problems:
1. custom menu translation
2. front page does not respect actual language
3. URL aliases (path module)
4. language link in nodes

details
1. custom menu translation (using show menu (block) by actual language approach)
in drupal 5 I created different menus for different languages, and set block visibility like: show block only on hu/* or en/* pages (and some similar settings)
that does not work in 6, so I used php for visibility setting like this

<?php
global $language;
return ($language->language == 'hu')
?>

it looks like it works for now. (but had some problems with it, when the menu does not change, but can not tell what was wrong exactly. will try to test it more)

I know I am not the only one with the problem of custom menu translation http://drupal.org/node/206337
a) So is there any other way to translate custom menus, until i18n module is not released for drupal 6?
b) Would it be much to ask to add new setting: block visibility by language? The described php is not hard for me, but it might be for other users.

2. front page does not respect actual language
if I promote node to front page it will show up regardless the node language is different than actual language. I still don't know how should I fix this, but it worked nicely in d5+i18n.

3. URL aliases (path module)
I had problems when changed default language to Hungarian. The path aliases did not show up in the address bar or the English menu links showed "page not found". I did not investigate it further, maybe just a caching problem. But I can still reproduce this without a problem. (Language negotiation is set to "Path prefix only.")

a) Is there a way to always show the language in URL even for default language? I am concerned about when I change the default language the links will change.
b) Can I use the same path alias name for different languages? It showed me a database error, when I tried it. It definitely seems like a bug.
user warning: Duplicate entry 'front-hu' for key 2 query: UPDATE url_alias SET src = 'node/5', dst = 'front', language = 'hu' WHERE pid = 1 in ../modules/path/path.module on line 98.

4. language link in nodes
I don't want to see the language change link inside node. The Language switcher block is absolutely enough. I removed the $links from node.tpl.php, but there should be a better way.

a) Is there any better way?



I did not remember more problems, it was quite late when the site get to the *translation working* state. But these problems definitely does not exists in d5+i18n..

Comments

int’s picture

(1. custom menu translation (using show menu (block) by actual language approach))

[BUG] menu title custom translation fn not used
http://drupal.org/node/207908

pasqualle’s picture

Version: 6.0-rc1 » 6.0-rc2

2. Solution for language dependent front page:
Create front page nodes in every language you need, set same path alias (like:front) for these nodes. set this alias as the "default front page".
You can forget the "Promoted to front page" option, but at least you have language dependent front page in d6.

pasqualle’s picture

3. b) should be solved in rc2 by http://drupal.org/node/154517

flakerimi’s picture

Category: support » feature

I dont know if is already implemented till I get RC2 but I dont think so:

I talking of ablity to translate menu in node part.

When you create a translation of a node, you need to create same node in diffrent language, and I want to have menu translation right there, so I fill the Menu settings and menu will be displayed automatically in respective language.

pasqualle’s picture

Category: feature » support

Custom menu translation is not supported in Drupal 6. You will have to wait for a contrib module to implement this feature.

The method I described in point 1 works fine..

arestheimpaler’s picture

Any word on the 2nd problem:

2. front page does not respect actual language
if I promote node to front page it will show up regardless the node language is different than actual language. I still don't know how should I fix this, but it worked nicely in d5+i18n.

pasqualle’s picture

Any word on the 2nd problem

I think it also have to wait for contributed module.
possible candidates:
http://drupal.org/project/i18n
http://drupal.org/project/localizer
http://drupal.org/project/views

Leeteq’s picture

Subscribing.

gábor hojtsy’s picture

Status: Active » Closed (works as designed)

Re #6: listings (as well as menus, taxonomy, blocks, etc) are not language aware in Drupal 6. You will need to use enabler modules, such as Views (for listings), i18n or localizer for menus, taxonomy, blocks, etc. This might all get better in Drupal 7.

arestheimpaler’s picture

Thanks for the reply Gábor Hojtsy.. I had to go with some ugly trickery and put some magic into the theme itself till I can get either the i18n or the views module (both which are being developed right now)...

Cristian.Palmas’s picture

Version: 6.0-rc2 » 6.2

I had the same problem with URL Path aliases in Drupal 6.2.

I think to have solved the problem.

First of all, I created my project page ("Progetti") and about page ("Chi sono") forgotting to set the default language to italian. After setting to the correct language, the aliases did not work.
So I set the default language to Italian in Administer > Site configuration > Languages.
After that I went to Administer > Site building > URL Aliases and I adjusted the languages for the aliases of the already created content.

Now the aliases work and I believe they do for the newly created content too.

userid’s picture

I did some similar tweak to fix the lack of language-dependent path in the default language (.../en/...) by adding it in the pathauto module (with i18n).

Home page solution NOT in sight.

strellman’s picture

Status: Closed (works as designed) » Closed (fixed)

This is a pretty old support request.
All these items are working fine for me with drupal 6.2 and i18n-6.x-1.0-beta1.tar
Closing