I copied the template file translation404-page.tpl.php into my theme folder and changed it. However, the original template is not overridden by my own. Any idea why?

Marcus

Comments

vm’s picture

did you clear the theme registry/cache in administer performance?

gavri’s picture

Did you try clear the theme registry?

marcushenningsen’s picture

Several times.

Do I need a preprocess function in my template.php in order to get my theme to include the new translation404-page.tpl.php?

shadysamir’s picture

What happened to this issue? Having the same problem

marcushenningsen’s picture

I've been busy with another project, but I'll be getting back to this within a couple of weeks, and I'm still interested in a solution.

Marcus

Stephen Scholtz’s picture

Subscribe, also have the same problem. In the meantime, I just overwrote the original tpl file in the module folder.

Johnny vd Laar’s picture

This:

function translation404_theme($existing) {
  return array(
    'translation_not_found_page' => array(
      'arguments' => array(),
      'template' => 'translation404-page',
    ),
  );
}

should be this:

function translation404_theme($existing) {
  return array(
    'translation404_page' => array(
      'arguments' => array(),
      'template' => 'translation404_page',
    ),
  );
}

The array key should have the same name as the template name.