And speaking of languages, do all resources revert to english if the language default in the manager or in the user override is not found?
// include_once the language file
if(!isset($manager_language)) {
$manager_language = "english"; // if not set, get the english language file.
}
$_lang = array();
include_once "lang/english.inc.php";
$length_eng_lang = count($_lang);
if($manager_language!="english") {
include_once "lang/".$manager_language.".inc.php";
}
#include language files
include_once($snipPath."eform/lang/english.inc.php");
$form_language = isset($language)?$language:$modx->config['manager_language'];
if($form_language!="english" && $form_language!='') {
include_once $snipPath ."eform/lang/".$form_language.".inc.php";
}eForm (at least the version I have) does it this way:
<?php
#include default language file
include_once($snipPath."eform/lang/english.inc.php");
#include other language file if set.
$form_language = isset($language)?$language:$modx->config['manager_language'];
if($form_language!="english" && $form_language!='') {
if(file_exists($snipPath ."eform/lang/".$form_language.".inc.php"))
include_once $snipPath ."eform/lang/".$form_language.".inc.php";
else
if( $isDebug ) $debugText .= "<strong>Language file '$form_language.inc.php' not found!</strong><br />";
}
?>


includes\lang\english.inc.php(484): $_lang["mgrlog_sortinst"] = 'You can sort the table by clicking on the column headers. If the logs are becoming too large, you can <a href=\"index.php?a=55\">empty</a> the logs. This will remove all log entries up to now, and cannot be undone!';
) 
spellcheck="true"
This discussion is closed to further replies. Keep calm and carry on.