What I did:
- Default 6.0-rc3 install
- enabled Locale and Content Translation modules
- created new language: hu ("Magyar")
- on admin/settings/language/configure selected "path prefix only" and set path prefixes to languages: "en" and "en"
- tried to create a menu link on Primary links with path "hu" and drupal refused it with this error:

The path 'en' is either invalid or you do not have access to it.

Comments

edgarpe’s picture

Sorry, I messed up the 'en' and 'hu' words a bit, but the point is that one can not create a menu link to language paths.

catch’s picture

Priority: Normal » Critical

There were similar issues with path aliases before, this one looks fairly critical to me. Feel free to demote if you disagree.

catch’s picture

Title: Can not create link to language paths » Menu module disallows language specific paths
pwolanin’s picture

Unlike D5, D6 validates that a path is valid.

I'm not sure how the path prefixing works in D6 core - using language_url_rewrite()?

pwolanin’s picture

Version: 6.0-rc3 » 6.x-dev

looks like to set a specific language for a link, you need to set $item['options']['language']

One approach would be to add a new field to the menu module form?

http://api.drupal.org/api/function/menu_edit_item/6

Otherwise we'd need to alter this function:

http://api.drupal.org/api/function/menu_edit_item_validate/6

to look for a language prefix.

gábor hojtsy’s picture

Version: 6.x-dev » 7.x-dev

Menus are not language aware in Drupal 6 by default. i18n or localizer module will help you make your menus language aware either by simple things like adding a language option to forms or swapping menus by languages. Otherwise this is a feature missing in Drupal 6. It would be great to fill in this gap in Drupal 7!

pancho’s picture

I understand that this feature has been postponed to D7. IMHO it is a big mistake that we didn't postpone the final release of D6 instead, until the translation functionality has been completed. This way we ruin our D6 killer feature.

I'm expecting TONS of support requests, forum posts and complaints on this, if we don't add a short information (including links to i18n and localizer modules) on admin/settings/language/configure, admin/build/menu-customize/navigation/add and any other places where the missing features make Drupal look broken.
The absolute minimum would be to give the user this information in the respective error messages instead of misleading errors like "The path 'en' is either invalid or you do not have access to it."

This is just my personal opinion on this. I know it's (too) late and I don't want to offend anyone, but I think that it is going to be a huge problem.

gábor hojtsy’s picture

We stopped developing i18n features for core months ago (around half a year ago) when the feature freeze was in. So adding i18n features now would be quite shocking timing.

jwilson3’s picture

From a purely functional and usability standpoint, this issue is a bug rather than a feature in that if a language path-prefix really exists in a drupal install, then then adding a menu item to the language specific homepage should Just Work. Is there _really_ no way this can be fixed in D6????

sun.core’s picture

Priority: Critical » Normal

There's not even a patch here and this bug exists since D6. If you can come up with a patch until 15th, fine, if not => D8.

nedjo’s picture

Version: 7.x-dev » 8.x-dev
marcvangend’s picture

I am a bit surprised that I haven't run into this problem before, and that this issue has been sitting here for almost four years with very little activity.

I'm willing to put some time in this... it looks as if a fix would require a patch for menu_edit_item_validate, is that correct?

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

quietone’s picture

Version: 8.9.x-dev » 9.3.x-dev
Issue summary: View changes
Status: Active » Closed (cannot reproduce)
Issue tags: +Bug Smash Initiative

I tested this on Drupal 9.3.x, standard install, with added language of Italian. I was able to create menu links in Italian without any error messages.

Therefore, closing as cannot reproduce. If you are experiencing this problem reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

Thanks!