String translations not working after setting language in page preprocess function
I have got this working now by moving the code into the preprocess_node() function instead.


function phptemplate_preprocess_node(&amp;$vars, $hook) {
  global $language;
  $languages = language_list();
  $new_lang_code = $vars['node']->language;  

 if (isset($languages[$new_lang_code])) {  
  $language = $languages[$new_lang_code];  
 }
}