]> git.mxchange.org Git - mailer.git/commitdiff
Moved language strings, more EL in templates
authorRoland Häder <roland@mxchange.org>
Tue, 24 Aug 2010 14:59:55 +0000 (14:59 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 24 Aug 2010 14:59:55 +0000 (14:59 +0000)
DOCS/TODOs.txt
inc/footer.php
inc/language/de.php
inc/language/user_de.php
inc/modules/admin/what-list_user.php
inc/template-functions.php
templates/de/html/admin/admin_list_user_row.tpl

index 654edc9242dc3c01ab4b25db226ee035be92ee33..37cff7e40d337d4949a7b63dd90902038df79070 100644 (file)
 ./inc/functions.php:2261:      // @TODO This is still very static, rewrite it somehow
 ./inc/gen_sql_patches.php:96:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:59:        // @TODO DEACTIVATED: changeDataInFile(getCachePath() . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
-./inc/language/de.php:1111:// @TODO Rewrite these two constants
-./inc/language/de.php:1126:// @TODO Rewrite these three constants
+./inc/language/de.php:1099:// @TODO Rewrite these two constants
+./inc/language/de.php:1114:// @TODO Rewrite these three constants
 ./inc/language/de.php:300:     // @TODO Following two are unused?
-./inc/language/de.php:804:// @TODO Are these constants longer used?
+./inc/language/de.php:799:// @TODO Are these constants longer used?
 ./inc/language-functions.php:234:      // @TODO These are all valid languages, again hard-coded
 ./inc/language-functions.php:46:// @TODO Rewrite all language constants to this function.
 ./inc/language/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no       *
 ./inc/modules/admin/what-list_unconfirmed.php:98:      // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
 ./inc/modules/admin/what-list_user.php:151:            // @TODO Rewrite these to filters
 ./inc/modules/admin/what-list_user.php:257:            // @TODO Rewrite this into a filter
-./inc/modules/admin/what-list_user.php:300:                    // @TODO Rewrite this into a filter
+./inc/modules/admin/what-list_user.php:297:                    // @TODO Rewrite this into a filter
 ./inc/modules/admin/what-list_user.php:59:// @TODO Rewrite these if-blocks in a filter
 ./inc/modules/admin/what-logs.php:66:                  // @TODO Fix content-type here
 ./inc/modules/admin/what-logs.php:72:                  // @TODO Fix content-type here
index a036830ee2aaeb15b850d1b87b53f3eadc97f12e..610d1d951dbddbb504571918ffaa7a02675c4f7b 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 $GLOBALS['page_footer'] = '';
 
 // Footer disabled or already sent?
-// 1234      5                       54    45                            5    5                            543    3                    321
+// 1234      5                       54    45                            5    5                            543    3                44321
 if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (!isCssOutputMode()))) {
        // Run the filter, sweet huh?
        runFilterChain('page_footer');
index 14001c6398d24058be2ccb20ddd6856af02b075f..2fa3562fba7cdd1a737b413d2b0630c38b144e41 100644 (file)
@@ -503,11 +503,6 @@ addMessages(array(
        'TOTAL_POINTS' => "{?POINTS?} gesamt",
        'TOTAL_REFERALS' => "Referals gesamt",
        'ADMIN_MEMBER_FUNCTIONS' => "Administrative Funktionen",
-       'ADMIN_DELETE_USER' => "L&ouml;schen",
-       'ADMIN_LOCK_USER' => "Sperren",
-       'ADMIN_UNLOCK_USER' => "Entsperren",
-       'ADMIN_ADD_POINTS' => "{?POINTS?} aufbuchen",
-       'ADMIN_EDIT_USER' => "&Auml;ndern",
        'ADMIN_ALL_REFS' => "Alle Refs auflisten",
        'BIRTHDAY2' => "Geburtstag",
        'TOTAL_CATEGORIES' => "Ausgew&auml;hlte Kategorien",
@@ -893,7 +888,6 @@ addMessages(array(
        'ADMIN_SUB_POINTS_FROM_USER' => "Abzug von {?POINTS?} eines Mitgliedes",
        'ADMIN_ENTER_POINTS_SUB' => "Abzuziehende {?POINTS?}",
        'ADMIN_ENTER_SUB_REASON' => "Grund des Abzuges",
-       'ADMIN_SUB_POINTS' => "{?POINTS?} abziehen",
        'ADMIN_SUB_POINTS_FROM_ALL' => "Allen Mitgliedern {?POINTS?} abziehen",
        'ADMIN_DOWNLOAD_SVN' => "SVN-Version herunterladen",
        'ADMIN_SVN_REPOSITORY' => "SVN-Repository",
@@ -958,12 +952,6 @@ addMessages(array(
        'PROBLEM_POINTS_OVERVIEW_UNAVAILABLE' => "{?POINTS?}-&Uuml;bersicht derzeit nicht verf&uuml;gbar.",
        'ADMIN_NOTHING_SELECTED_CHANGE' => "Sie haben nichts zum &Auml;ndern des Status ausgew&auml;hlt.",
        'TEMPLATE_CONTENT' => "Templatedaten:",
-       'ADMIN_LINK_DELETE_USER_TITLE' => "Mitglied l&ouml;schen (mit Abfrage)",
-       'ADMIN_LINK_EDIT_USER_TITLE' => "Mitglied editieren",
-       'ADMIN_LINK_LOCK_USER_TITLE' => "Mitglied sperren",
-       'ADMIN_LINK_UNLOCK_USER_TITLE' => "Mitglied entsperren",
-       'ADMIN_LINK_ADD_POINTS_TITLE' => "{?POINTS?} aufbuchen",
-       'ADMIN_LINK_SUB_POINTS_TITLE' => "{?POINTS?} abziehen",
        'MESSAGE_HEADER' => "Hinweis:",
        'WARNING_MESSAGE_HEADER' => "Warnung:",
        'ADMIN_ALPHA_SELCTION' => "Alphabetische Suche:",
index fd24b2ebd462ac5ff1dc64bd842ce4e03773c5d7..3ae7bf5eb8d9f11c4d21586b230edab1128499dc 100644 (file)
@@ -52,6 +52,18 @@ addMessages(array(
        'ADMIN_USER_ACCOUNT_NOT_SAVED' => "Mitgliedsaccount <u>nicht</u> gespeichert.",
        'ADMIN_USER_ACCOUNT_LOCKED' => "Mitgliedsaccount <span class=\"data\">%s</span> wurde gesperrt.",
        'ADMIN_USER_ACCOUNT_UNLOCKED' => "Mitgliedsaccount <span class=\"data\">%s</span> wurde freigegeben.",
+       'ADMIN_USER_ACTION_LINK_DEL_USER' => "L&ouml;schen",
+       'ADMIN_USER_ACTION_LINK_EDIT_USER' => "&Auml;ndern",
+       'ADMIN_USER_ACTION_LINK_LOCK_USER' => "Sperren",
+       'ADMIN_USER_ACTION_LINK_UNLOCK_USER' => "Entsperren",
+       'ADMIN_USER_ACTION_LINK_ADD_POINTS' => "{?POINTS?} aufbuchen",
+       'ADMIN_USER_ACTION_LINK_SUB_POINTS' => "{?POINTS?} abziehen",
+       'ADMIN_USER_ACTION_LINK_DEL_USER_TITLE' => "Mitglied l&ouml;schen (mit Abfrage)",
+       'ADMIN_USER_ACTION_LINK_EDIT_USER_TITLE' => "Mitglied editieren",
+       'ADMIN_USER_ACTION_LINK_LOCK_USER_TITLE' => "Mitglied sperren (mit Sperrgrund)",
+       'ADMIN_USER_ACTION_LINK_UNLOCK_USER_TITLE' => "Mitglied entsperren",
+       'ADMIN_USER_ACTION_LINK_ADD_POINTS_TITLE' => "Dem Mitglied {?POINTS?} aufbuchen",
+       'ADMIN_USER_ACTION_LINK_SUB_POINTS_TITLE' => "Dem Mitglied {?POINTS?} abziehen",
 ));
 
 // [EOF]
index 53e8a7c6579596445c0874cd80a63d755c7f0100..71d580f60a0ca6ddafae449a5484f9bdd6bd1251 100644 (file)
@@ -269,18 +269,15 @@ LIMIT 1",
 
                        // Get number of unconfirmed mails
                        $content['links'] = countSumTotalData($content['userid'], 'user_links', 'id', 'userid', true);
-                       if ($content['links'] > 0) $content['links'] = $base . '&amp;what=list_links&amp;userid=' . $content['userid'] . '%}">' . translateComma($content['links']) . '</a>]';
+                       if ($content['links'] > 0) $content['links'] = $base . '&amp;what=list_links&amp;userid=' . $content['userid'] . '%}">{%pipe,translateComma=' . $content['links'] . '%}</a>]';
 
                        // Set link to sent mails if present
-                       if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&amp;what=email_details&amp;userid=' . $content['userid'] . '%}">' . translateComma($content['emails_sent']) . '</a>]';
+                       if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&amp;what=email_details&amp;userid=' . $content['userid'] . '%}">{%pipe,translateComma=' . $content['emails_sent'] . '%}</a>]';
 
                        // Add nickname
                        $content['nickname'] = '{--EXT_NICKNAME_404--}';
                        if (isExtensionInstalled('nickname')) $content['nickname'] = getNickname($content['userid']);
 
-                       // Calculate total points
-                       $content['points'] = getTotalPoints($content['userid']);
-
                        // Clickrate
                        $content['rate'] = '0';
                        if ($content['emails_received'] > 0) {
index b838f086a07cb71373d4b43555cb7fa3ab1ac8b4..1c2fac4d400b81209db643c3a5114be1dcc515b2 100644 (file)
@@ -1040,7 +1040,7 @@ function generateMemberAdminActionLinks ($userid) {
        $OUT = '[';
 
        foreach ($targetArray as $tar) {
-               $OUT .= '<span class="admin_user_link"><a href="{%url=modules.php?module=admin&amp;what=' . $tar . '&amp;userid=' . $userid . '%}" title="{--ADMIN_LINK_';
+               $OUT .= '<span class="admin_user_link"><a href="{%url=modules.php?module=admin&amp;what=' . $tar . '&amp;userid=' . $userid . '%}" title="{--ADMIN_USER_ACTION_LINK_';
                //* DEBUG: */ debugOutput('*' . $tar.'/' . $status.'*');
                if (($tar == 'lock_user') && ($status == 'LOCKED')) {
                        // Locked accounts shall be unlocked
@@ -1049,7 +1049,7 @@ function generateMemberAdminActionLinks ($userid) {
                        // All other status is fine
                        $OUT .= strtoupper($tar);
                }
-               $OUT .= '_TITLE--}">{--ADMIN_';
+               $OUT .= '_TITLE--}">{--ADMIN_USER_ACTION_LINK_';
                if (($tar == 'lock_user') && ($status == 'LOCKED')) {
                        // Locked accounts shall be unlocked
                        $OUT .= 'UNLOCK_USER';
index 6aa22b8948d0724bd6aa0e77dc089914734b05b0..d2278f31b3c7d98efd805d672a0f0f44ed49130b 100644 (file)
@@ -34,7 +34,7 @@
        <td align="center" class="{%template,ColorSwitch%}"><strong>{--TOTAL_REFERALS--}:</strong></td>
 </tr>
 <tr>
-       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[points]%} {?POINTS?}</td>
+       <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,getTotalPoints,translateComma=$content[userid]%} {?POINTS?}</td>
        <td align="center" class="right {%template,ColorSwitch%} bottom">$content[emails_sent]</td>
        <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[rate]%}%</td>
        <td align="center" class="right {%template,ColorSwitch%} bottom">{%pipe,translateComma=$content[locked]%} {?POINTS?}</td>