After upgrade 4.7.2 to 4.7.3 i18n cvs modules does not work correctly.

I18n modules version: cvs

Pleas check out for real work example to the simpler understanding.

Link German page: http://www.quiptime.de/qt/de/taxonomy/term/5
Link English page: http://www.quiptime.de/qt/en/taxonomy/term/36

You can see:
"Verfasst von", "Weiterlesen" and "Kommentar hinzufügen" is not in English.
It is the same, if I set the default language on English: "Verfasst von", "Weiterlesen" and "Kommentar hinzufügen" is not in English.

Next thing:
I can't switch the backend (administer) to English language. The backend uses completely the default language - German.
It is the same, if I set the default language on English: The backend uses completely the German language.

Note: The i18n block of the example website use statik menu names ("Deutsch" "English") with a template - is not a error.

Comments

quiptime’s picture

As test I installed the old version of i18n in 4.7.3-cvs.

// $Id: i18n.module,v 1.30 2006/05/31 21:50:16 jareyero Exp $
// $Id: i18n.inc,v 1.23 2006/05/31 21:50:16 jareyero Exp $
// $Id: translation.module,v 1.8 2006/06/03 15:42:41 jareyero Exp $

The result: no change. The error continues to exist.

quiptime’s picture

As test I changed the language of the first user of German to English.

Result: the same error. But, all before German texts are now excluding English.

As examples:
"Submitted by", "read more" and "add new comment" is not in German.
I can't switch the backend (administer) to German language. The backend uses completely the first user language - English.

quiptime’s picture

I think, I found the cause error.

The file common.inc
// $Id: common.inc,v 1.537.2.4 2006/07/02 10:06:04 killes Exp $

use a new function with name module_load_all()

In old versions of common.inc a function with the name module_init() is used.

quiptime’s picture

old variant in module.inc

function module_init() {
  // Load all the modules that have been enabled in the system table.
  foreach (module_list(TRUE, FALSE) as $module) {
    drupal_load('module', $module);
  }
  module_invoke_all('init');
}

 
new variant in module.inc

function module_load_all() {
  foreach (module_list(TRUE, FALSE) as $module) {
    drupal_load('module', $module);
  }
}

Which is also withe the function module_invoke_all('init') in the new version of module.inc?

I can't insert this line in the function module_load_all(). I receive then the following error:

Fatal error: Cannot redeclare i18n_url_rewrite() (previously declared in /my_path/www.quiptime.de/qt/modules/contrib/i18n/i18n.inc:26) in /my_path/www.quiptime.de/qt/modules/contrib/i18n/i18n.inc on line 26

jose reyero’s picture

Status: Active » Closed (duplicate)