* -------------------------------------------------------------------- *
* Kurzbeschreibung : Sprachfunktionen *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
$return = $GLOBALS['messages'][getCurrentLanguage()][$messageId];
} else {
// Missing language constant
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Missing message string %s detected.", $messageId));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf('Missing message string %s detected.', $messageId));
}
// Return the string
// Generate filename
if ($ext_name == 'none') {
// Generic
- $languageInclude = sprintf("inc/language/%s.php", getLanguage());
+ $languageInclude = sprintf('inc/language/%s.php', getLanguage());
} else {
// Extension's language file
- $languageInclude = sprintf("inc/language/%s_%s.php", $ext_name, getLanguage());
+ $languageInclude = sprintf('inc/language/%s_%s.php', $ext_name, getLanguage());
}
// Look for file if no extension name is provided
loadLanguageInclude($ext_name);
} elseif ((isDebugModeEnabled()) && (isHtmlOutputMode()) && ($ext_name != 'sql_patches') && (substr($ext_name, 0, 10) != 'admintheme')) {
// No language file is not so good...
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("NOTICE: Extension %s has no language file or we cannot read from it. lang=%s, mode=%s",
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf('NOTICE: Extension %s has no language file or we cannot read from it. lang=%s, mode=%s',
$ext_name,
getLanguage(),
getExtensionMode()
}
// Check for installation mode
- if ((isInstallationPhase()) || (!isAdminRegistered())) {
+ if ((isInstaller()) || (!isAdminRegistered())) {
// Load language file
loadLanguageInclude('install');
} // END - if
// Generate filename
if ($ext_name == 'none') {
// Generic
- $languageInclude = sprintf("inc/language/%s.php", getLanguage());
+ $languageInclude = sprintf('inc/language/%s.php', getLanguage());
} else {
// Extension's language file
- $languageInclude = sprintf("inc/language/%s_%s.php", $ext_name, getLanguage());
+ $languageInclude = sprintf('inc/language/%s_%s.php', $ext_name, getLanguage());
}
// Check it before loading
loadIncludeOnce($languageInclude);
} else {
// Not readable!
- logDebugMessage(__FUNCTION__, __LINE__, sprintf("Language file %s not found or readable.", $languageInclude));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf('Language file %s not found or readable.', $languageInclude));
}
}