// "Getter" for language
function getLanguage () {
- // Do we have cache?
+ // Is there cache?
if (!isCurrentLanguageSet()) {
// Default is 'de'. DO NOT CHANGE THIS!!!
$ret = 'de';
// Checks whether a language file is there for optional extension
function isLanguageIncludeReadable ($ext_name = 'none') {
- // Do we have array element?
+ // Is there array element?
if (!isset($GLOBALS['lang_inc'][$ext_name])) {
// Generate filename
if ($ext_name == 'none') {
setLanguage($currLanguage);
} // END - if
- // Do we have the language file NOT?
+ // Is there the language file NOT?
if (!isLanguageIncludeReadable($ext_name)) {
// Switch to default (DO NOT CHANGE!!!)
setLanguage('de');
} // END - if
// *Does* match by default
- $matches = true;
+ $matches = TRUE;
// Is one not readable?
if (!isIncludeReadable($source)) {
$GLOBALS['messages'][$backupLang] = array();
// Both are readable so include current language file
- $GLOBALS['count'] = false;
+ $GLOBALS['count'] = FALSE;
loadInclude($source);
$GLOBALS['msgs'][$source] = $GLOBALS['messages'][$backupLang];
unset($GLOBALS['count']);
// Set target language
setCurrentLanguage($targetLanguage);
- // Do we have an array?
+ // Is there an array?
if (!isset($GLOBALS['messages'][$targetLanguage])) {
// Then create it to avoid notice
$GLOBALS['messages'][$targetLanguage] = array();
// Do they mismatch?
if ((count($GLOBALS['msgs'][$source])) != (count($GLOBALS['msgs'][$target]))) {
// Does not match
- $matches = false;
+ $matches = FALSE;
// Check all differences
foreach ($GLOBALS['msgs'][$source] as $key => $value) {
}
// Checks whether the given message is masked
-function isMessageMasked ($messageId, $strict = true) {
+function isMessageMasked ($messageId, $strict = TRUE) {
// Is the message id valid?
- if (($strict === true) && (!isMessageIdValid($messageId))) {
+ if (($strict === TRUE) && (!isMessageIdValid($messageId))) {
// No, then abort here
reportBug(__FUNCTION__, __LINE__, 'Invalid message id ' . $messageId . ' detected.');
} // END - if