From: Roland Häder Date: Mon, 9 Nov 2009 16:59:04 +0000 (+0000) Subject: Some old lost language constants fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=498f14a6cae9f79913b07da2778c68b57b7dcdef;p=mailer.git Some old lost language constants fixed --- diff --git a/inc/libs/surfbar_functions.php b/inc/libs/surfbar_functions.php index 09bbe89931..278ad21d4a 100644 --- a/inc/libs/surfbar_functions.php +++ b/inc/libs/surfbar_functions.php @@ -737,14 +737,8 @@ function translateSurfbarUrlStatus ($status) { // Create constant name $constantName = sprintf("SURFBAR_URL_STATUS_%s", strtoupper($status)); - // Set default translated status - $statusTranslated = '!'.$constantName.'!'; - - // Is the constant there? - if (defined($constantName)) { - // Then get it's value - $statusTranslated = constant($constantName); - } // END - if + // Get message + $statusTranslated = getMessage($constantName); // Return result return $statusTranslated; diff --git a/inc/modules/admin/what-list_surfbar_actions.php b/inc/modules/admin/what-list_surfbar_actions.php index 184ac2a9b2..d262671aff 100644 --- a/inc/modules/admin/what-list_surfbar_actions.php +++ b/inc/modules/admin/what-list_surfbar_actions.php @@ -59,16 +59,16 @@ if (SQL_NUMROWS($result) > 0) { $OUT = ''; $SW = 2; while ($content = SQL_FETCHARRAY($result)) { // "Translate" some data - $content['status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['status'])); - $content['action'] = constant(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['action'])); + $content['status'] = translateSurfbarUrlStatus($content['status']); + $content['action'] = getMessage(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['action'])); // New status set? if (!is_null($content['new_status'])) { // Translate it - $content['new_status'] = constant(sprintf("SURFBAR_URL_STATUS_%s", $content['new_status'])); + $content['new_status'] = translateSurfbarUrlStatus($content['new_status']); } else { // "Do nothing" status - $content['new_status'] = SURFBAR_URL_STATUS_NONE; + $content['new_status'] = getMessage('SURFBAR_URL_STATUS_NONE'); } // Add color diff --git a/templates/de/html/admin/admin_add_surfbar_url.tpl b/templates/de/html/admin/admin_add_surfbar_url.tpl index 8c6ef2bc70..34a473147a 100644 --- a/templates/de/html/admin/admin_add_surfbar_url.tpl +++ b/templates/de/html/admin/admin_add_surfbar_url.tpl @@ -1,25 +1,25 @@
-
-
+
+
URL in Surfbar hinzufügen:
-
+
URL eingeben:
-
+
Maximale Einblendung:
(0 = Unbegrenzt)
-
+
Reloadsperre: $content[reload] (0 = Standarteinstellungen)
-