I had installed 5.x-2.x-dev on Drupal 5.1. The transliteration checkbox is disabled as you can see in the attached screen capture.

CommentFileSizeAuthor
capture.jpg68.1 KBclaudiu.cristea

Comments

claudiu.cristea’s picture

The bug is in pathauto.module (line ~98)

  $disable_transliteration = TRUE;
  if (is_file($path. '/i18n-ascii.txt')) {
    $disable_transliteration = FALSE;
  }

... here the $path variable is not defined, no value is assigned. This code fragment should be:

  $disable_transliteration = TRUE;
  $path = drupal_get_path('module', 'pathauto');
  if (is_file($path. '/i18n-ascii.txt')) {
    $disable_transliteration = FALSE;
  }

In this moment I'm not able to create a patch file. Please update the file in 5.x-2.x-dev.

Thanks!

greggles’s picture

Title: Transliteration is disabled » improved help text about disabled transliteration
Priority: Critical » Normal

Thanks for the bug report.

Did you create i18n-ascii.txt file? There is an example file that you have to rename in order for this feature to work. I believe that if you create that file your checkbox will become enabled.

I believe that the help text underneath the checkbox should be more clear. For example, if the item is disabled then it should say in bold "This will be disabled until you create an i18n-ascii.txt file in your Pathauto directory." Would that be more helpful? Can you suggest alternative text that would help get this idea across?

greggles’s picture

Title: improved help text about disabled transliteration » improved help text about disabled transliteration - and have a $path that exists

Aha, yes, I see now. Thanks for finding that!

I'll fix that. Do you have any ideas on the other point about the help text?

claudiu.cristea’s picture

Thank you. The help text is fine.

greggles’s picture

Status: Active » Fixed

Great, this is now fixed. Thanks, Claudiu!

killes@www.drop.org’s picture

Status: Fixed » Closed (fixed)