./inc/extensions/ext-network.php:38: * @TODO Yoo!Media: What is LayerAd compared to Layer click? *
./inc/extensions/ext-network.php:93: // @TODO network_type_handle is an internal name and needs documentation
./inc/extensions/ext-newsletter.php:218: // @TODO Move these into configuration
-./inc/extensions/ext-order.php:356: // @TODO This should be moved out to inc/daily/
+./inc/extensions/ext-order.php:354: // @TODO This should be moved out to inc/daily/
./inc/extensions/ext-rallye.php:329: // @TODO Move this code into a hook
./inc/extensions/ext-rallye.php:92: // @TODO Fix config_rallye_prices to list_rallye_prices
./inc/extensions/ext-yoomedia.php:121: // @TODO Can this be moved into a database table?
return $converted;
}
+// Translates task type to a human-readable version
+function translateTaskType ($taskType) {
+ // Construct message id
+ $messageId = 'ADMIN_TASK_TYPE_' . strtoupper($taskType) . '';
+
+ // Is the message id there?
+ if (isMessageIdValid($messageId)) {
+ // Then construct message
+ $message = '{--' . $messageId . '--}';
+ } else {
+ // Else it is an unknown task type
+ $message = '{%message,ADMIN_TASK_TYPE_UNKNOWN=' . $taskType . '%}';
+ } // END - if
+
+ // Return message
+ return $message;
+}
+
//-----------------------------------------------------------------------------
// Automatically re-created functions, all taken from user comments on www.php.net
//-----------------------------------------------------------------------------
'ADMIN_LIST_MODE_NOREFS_ACCOUNTS' => "Alle Mitglieder-Accounts ohne Referals auflisten",
// Admin task lines
- 'ADMIN_TASK_IS_MEMBER_SUPPORT' => "Support-Anfrage eines Mitgliedes",
- 'ADMIN_TASK_IS_EXTENSION' => "Erweiterung-Installation",
- 'ADMIN_TASK_IS_EXTENSION_UPDATE' => "Erweiterungsupdate",
- 'ADMIN_TASK_IS_EXTENSION_DEACTIVATION' => "Erweiterung-Deaktivierung",
+ 'ADMIN_TASK_TYPE_MEMBER_SUPPORT' => "Support-Anfrage eines Mitgliedes",
+ 'ADMIN_TASK_TYPE_EXTENSION' => "Erweiterung-Installation",
+ 'ADMIN_TASK_TYPE_EXTENSION_UPDATE' => "Erweiterungsupdate",
+ 'ADMIN_TASK_TYPE_EXTENSION_DEACTIVATION' => "Erweiterung-Deaktivierung",
+ 'ADMIN_TASK_TYPE_UNKNOWN' => "Unbekannter Task-Typ <span class=\"data\">%s</span> detected.",
// Filter sub-system
'FILTER_FAILED_ALREADY_INIT' => "Filter-System ist bereits initialisiert.",
// Language definitions
addMessages(array(
// Admin strings
- 'ADMIN_TASK_IS_HOLIDAY_REQUEST' => "Urlaubsanfrage",
+ 'ADMIN_TASK_TYPE_HOLIDAY_REQUEST' => "Urlaubsanfrage",
'ADMIN_HOLIDAY_NOTHING_FOUND' => "Niemand hat Urlaub beantragt.",
'ADMIN_HOLIDAY_TSTART' => "Anfang",
'ADMIN_HOLIDAY_TEND' => "Ende",
'ADMIN_CONFIG_REPAY_POINTS_SHRED' => "Nicht gutschreiben (verfällt dann)",
'ADMIN_REPAY_ON_DELETE_MODE' => "Wenn Sie eine Mailbuchung löschen, wie sollen die ausgegebenen {?POINTS?} gehandhabt werden?",
- 'ADMIN_TASK_IS_MEMBER_ORDER' => "Mailbuchung vom Mitglied",
+ 'ADMIN_TASK_TYPE_MEMBER_ORDER' => "Mailbuchung vom Mitglied",
'ADMIN_UNLOCK_EMAIL_LINK' => "Mailbuchung ansehen",
));
'ADMIN_PAYOUT_YOUR_RET_FAILED' => "Return-Code: Fehlgeschlagen",
'ADMIN_PAYOUT_OPTIONAL_SETTINGS' => "Optionale Einstellungen",
'ADMIN_PAYOUT_YOUR_PASS_TRANSFER' => "Passwortverschlüsslung zur Übertragung",
- 'ADMIN_TASK_IS_PAYOUT_REQUEST' => "Auszahlungsanfrage",
+ 'ADMIN_TASK_TYPE_PAYOUT_REQUEST' => "Auszahlungsanfrage",
'ADMIN_PAYOUT_LIST_REQUESTS' => "Jetzt alle Auszahlungsanfragen auflisten.",
'ADMIN_PAYOUT_TRANSFER_FAILED' => "Transfer nicht abgeschlossen:",
'ADMIN_PAYOUT_ALLOW_URLS' => "URLs erlauben",
'RALLYE_REFERAL_POINTS' => "Verdienst durch Refs",
'RALLYE_REGISTER_NOW' => "Jetzt kostenlos und unverbindlich anmelden.",
'RALLYE_GET_REFERAL_LINK' => "Jetzt dran teilnehmen.",
- 'ADMIN_TASK_IS_RALLYE_EXPIRED' => "Rallye wurde beendet",
- 'ADMIN_TASK_IS_RALLYE_PURGED' => "Rallye wurde gelöscht",
+ 'ADMIN_TASK_TYPE_RALLYE_EXPIRED' => "Rallye wurde beendet",
+ 'ADMIN_TASK_TYPE_RALLYE_PURGED' => "Rallye wurde gelöscht",
'RALLYE_LIST_USERS_TITLE' => "Alle teilnehmenden Mitglieder auflisten.",
'RALLYE_REFERAL_POINTS_NOTE' => "Die {?POINTS?} in der Spalte <u>Verdienst durch Refs</u> geben den Verdienst in erster Ebene vor der Referal-Rallye an und wird sich bis Ende der Referal-Rallye nicht verändern.",
'RALLYE_MIN_USERS' => "Gesamtzahl der Mitglieder, ab der Referal-Rallye automatisch endet.",
'MEMBER_SUPPORT_ORDER_SUBJECT' => "Ihr Anfrage an den Support: Mailbuchung",
'MEMBER_SUPPORT_REFERAL_LINK_SUBJECT' => "Ihr Anfrage an den Support: Referal-Link",
'MEMBER_SUPPORT_UNCONFIRMED_SUBJECT' => "Ihr Anfrage an den Support: Unbestätigte Mails",
- 'ADMIN_TASK_IS_MEMBER_SUPPORT' => "Mitglieder-Support",
+ 'ADMIN_TASK_TYPE_MEMBER_SUPPORT' => "Mitglieder-Support",
'ADMIN_UNKNOWN_SUPPORT_MODE' => "Unbekannter Support-Modus <span class=\"data\">%s</span> erkannt.",
'ADMIN_TASK_SUPPORT_MODE' => "Support-Art",
));
break;
} // END - switch
- // Get task type
- $content['task_type_msg'] = '{--ADMIN_TASK_IS_' . strtoupper($content['task_type']) . '--}';
-
if (isValidUserId($content['userid'])) {
// Member found otherwise it's a system task
$content['userid'] = generateUserProfileLink($content['userid']);
// Init infos
$content['infos'] = '';
- // Get admin task
- $content['task_type_msg'] = '{--ADMIN_TASK_IS_' . strtoupper($content['task_type']) . '--}';
-
// Generate infos
switch ($content['task_type']) {
case 'EXTENSION':
// Prepare content
$content = merge_array($content, array(
- 'assign_admin' => $content['assigned_admin'],
- 'userid' => $content['userid'],
- 'task_type_msg' => $content['task_type_msg'],
'task_created' => generateDateTime($content['task_created'], 2)
));
$content[userid]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[task_type_msg]
+ {%pipe,translateTaskType=$content[task_type]%}
</td>
<td class="{%template,ColorSwitch%} bottom" align="center">
$content[task_created]
$content[userid]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[task_type_msg]
+ {%pipe,translateTaskType=$content[task_type]%}
</td>
<td class="{%template,ColorSwitch%} bottom" align="center">
$content[task_created]
$content[userid]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[task_type_msg]
+ {%pipe,translateTaskType=$content[task_type]%}
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
$content[task_created]
$content[userid]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[task_type_msg]
+ {%pipe,translateTaskType=$content[task_type]%}
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
$content[task_created]