Please consider these minor changes.
First, let me introduce you lang(). It’s easy function:
function lang($key) { /* returns translation form $lang array. But if it is not present, returns $key - better than nothing! */
global $_lang;
if (isset($_lang[$key])) {
return $_lang[$key];
} else return $key;
}
Function lang() is better than $_lang for obvious reason - when language file is corrupted on incomplete, lang() shows the key. This is much better to handle and search for an error.
I’ve put lang() in config.inc.php, becouse I didn’t know any better place.
Now we need to repair site_schedule.static.action.php. This file contains minor errors in translation - englis si hardcoded into PHP. Search for first line of 3 tables and change those static text into lang() calls. After then, it would be something like this:
<tr bgcolor=’#CCCCCC’>
<td><?=lang("document");?></td>
<td><?=lang("id");?></td>
<td><?=lang("page_data_publishdate");?></td>
<td><?=lang("page_data_unpublishdate");?></td>
</tr>
</thead>
Please note, that not always all 4 columns are present...
Now, there is a need for language file to update. Here are few lines from my Czech translation that I’m currently working on. English statements please fill yourself.
/* Site schedule */
$_lang["document"] = "Dokument";
$_lang["id"] = "ID";
$_lang["publish_events"] = "Nejbližší publikování";
$_lang["unpublish_events"] = "Nejbližší vrácení";
$_lang["all_events"] = "Všechny události";
$_lang["no_docs_pending_unpublishing"]="Žádné dokumenty neèekají na vrácení.";
$_lang["no_docs_pending_publishing"]="Žádné dokumenty neèekají na publikování.";