If I activate Marinelli Theme and set it as default, the multilanguage features (Internationalization modul ist installed and enabled) doesn't work. I can't load any translated node. Still have a redirect error:

The site is redirecting the request in a way that they will never complete.

If I try the Bartik Theme the translation feature works perfect.

Comments

Lioz’s picture

Assigned: Unassigned » Lioz

Hi, can you tell me your installation parameters?
OS, browser, webserver ecc..

picsofle’s picture

Hi,
Drupal 7.0 is installed on a Apache Webserver (shared hosting) with PHP Version 5.2.12-nmm2 & MySQL 5.0.
Following modules are installed & enabled:
-Devel 7.x-1.0
-Internationalization 7.x-1.0-beta2
-Media 7.x-1.0-beta3
-Pathauto 7.x-1.0-beta1
-Rotating Banner 7.x-7.x-dev (2011-Feb-25)
-Styles 7.x-2.0-alpha5
-Token 7.x-1.0-beta1
-Variable 7.x-1.0-beta2

I have this redirect error with all browsers (Chrome, FF, Opera & IE), but only if I logged in as Admin. When I visit the site as a guest, I get the following error:

The website encountered an unexpected error. Please try again later.
Error messagePDOException: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'changed' in order clause is ambiguous: SELECT n.nid AS nid FROM {node} n LEFT OUTER JOIN {node} i18n ON n.tnid > 0 AND n.tnid = i18n.tnid AND i18n.language = :lang WHERE (n.status = :db_condition_placeholder_0) AND (n.language=:lang OR (n.language=:default_lang AND i18n.nid IS NULL)) ORDER BY changed DESC LIMIT 10 OFFSET 0; Array ( [:db_condition_placeholder_0] => 1 [:lang] => en [:default_lang] => de ) in node_get_recent() (line 2196 of /www/htdocs/***/cms/modules/node/node.module).

I only get this error message with enabled Marinelli Theme (default theme) and as guest.

Lioz’s picture

that's strange, i've installed those modules and actived the i18n module but i don't see any error visiting the translated node
anyone with the same problem?

Lioz’s picture

Status: Active » Postponed (maintainer needs more info)
ClaudeS-1’s picture

Title: Multi-Language Support? » Multi-Language Support Missing
Version: 7.x-3.0-beta9 » 7.x-3.0-beta11
Status: Postponed (maintainer needs more info) » Needs work

I've had issues getting menu items to be localized, and found two problems.

Firstly, it seems that Marinelli's implementation of MegaMenu has no internationalization functionality built in.

I've fixed this in my installation by editing template.php.

Replace:

// primary links markup
if (theme_get_setting('menu_type') == 2) { // use mega menu
   $vars['mainmenu'] = theme('mega_menu', array('menu' => menu_tree_all_data(theme_get_setting('menu_element'))));
}

with:

// primary links markup
if (theme_get_setting('menu_type') == 2) { // use mega menu
   $tree = menu_tree_all_data(theme_get_setting('menu_element'));
   // Localize the tree.
   if (function_exists('i18n_menu_localize_tree'))
   {
      $tree = i18n_menu_localize_tree($tree);
   }
   $vars['mainmenu'] = theme('mega_menu', array('menu' => $tree));
}

Secondly, even if I modified Marinelli to localize the menu tree, there was a typo in i18n module in function i18n_menu_localize_tree (http://drupal.org/node/1227812#comment-5832118) which prevented the translated menu link titles from being passed back to MegaMenu.