Hello,

After having successfully configured wysiwyg module with your help and your patches (under Drupal 6.20), I tried to configure multilingual settings, but it seem not to work at all (the form cannot be loaded). Could you please tell me if it is possible to configure the following settings with patterns or what is exactly the problem which prevent the pattern module to work fine for configuring multilingual settings: for example configuration of - language negotiation - (admin/settings/language/configure): see image1.jpg (error), multilingual_conf.xml.txt.

Many thanks in advance for your informations !

Jonathan

Comments

vaish’s picture

I'm assuming that you have locale module enabled already in which case it seems that patterns module failed to locate in which *.inc file your form is defined. When that happens, you need to manually specify which file to include. See: http://drupal.org/node/408960 (paragraph starting with "Many form callbacks are stored ..."). First solution is preferred and 100% accurate while the second one may fail sometimes.

As a side note, it's always a best practice to list all the modules required by your pattern in the modules section. I see you listed system module which is absolutely required by Drupal and can't be disabled while locale module is not listed although it's required by your pattern and disabled by default.

foufure’s picture

StatusFileSize
new999 bytes

Thanks for your answer! I tried to adapt my pattern according to your recommendations, but it did not seem to work: I still have the same error (the form cannot be loaded). I have the feeling, that configuring the locale module is a special case.

Explanations: the "local.inc" file is located in the general "includes" directory of drupal and not in the "locale" module directory itself. So I tried different syntaxes with the include/module/file: "../../includes/locale.inc" for example did not work.

Could you please take a look at my modified pattern in attachment and tell me if I have to define the include in an other manner or if there is another problem ?

vaish’s picture

Title: Problems configuring Multilingual site with patterns. » Add support for including files from Drupal's 'includes' directory
Category: support » feature

You are right - locale module is kind of a special case. Pattern is trying to locate include file in the Locale module's folder, not in Drupal's includes folder. Including files from Drupal's includes folder is unfortunately not supported. I'm changing this issue into feature request, but I'm not sure when I'll be able to actually work on this.

michaek’s picture

If we decided on a format to support this, would it be:

      <include>        
        <module>drupal</module>
        <file>includes/locale.inc</file>
      </include>

?