From 55141154c083acc2d0397f4c62b4e0be1c7a19fa Mon Sep 17 00:00:00 2001 From: Bot Date: Tue, 3 Jan 2017 14:12:17 +0100 Subject: Replaced " with ' --- includes/helper/email_helper.php | 6 +++--- includes/helper/internationalization_helper.php | 8 ++++---- includes/helper/message_helper.php | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'includes/helper') diff --git a/includes/helper/email_helper.php b/includes/helper/email_helper.php index 18203ecb..a2e25269 100644 --- a/includes/helper/email_helper.php +++ b/includes/helper/email_helper.php @@ -17,10 +17,10 @@ function engelsystem_email_to_user($recipient_user, $title, $message, $not_if_it gettext_locale($recipient_user['Sprache']); - $message = sprintf(_("Hi %s,"), $recipient_user['Nick']) . "\n\n" - . _("here is a message for you from the engelsystem:") . "\n\n" + $message = sprintf(_('Hi %s,'), $recipient_user['Nick']) . "\n\n" + . _('here is a message for you from the engelsystem:') . "\n\n" . $message . "\n\n" - . _("This email is autogenerated and has not to be signed. You got this email because you are registered in the engelsystem."); + . _('This email is autogenerated and has not to be signed. You got this email because you are registered in the engelsystem.'); gettext_locale(); diff --git a/includes/helper/internationalization_helper.php b/includes/helper/internationalization_helper.php index ee9339e2..7c04ebbd 100644 --- a/includes/helper/internationalization_helper.php +++ b/includes/helper/internationalization_helper.php @@ -1,7 +1,7 @@ "Deutsch", - 'en_US.UTF-8' => "English" + 'de_DE.UTF-8' => 'Deutsch', + 'en_US.UTF-8' => 'English' ]; $default_locale = 'en_US.UTF-8'; @@ -68,12 +68,12 @@ function gettext_locale($locale = null) function make_langselect() { global $locales; - $URL = $_SERVER["REQUEST_URI"] . (strpos($_SERVER["REQUEST_URI"], "?") > 0 ? '&' : '?') . "set_locale="; + $url = $_SERVER['REQUEST_URI'] . (strpos($_SERVER['REQUEST_URI'], '?') > 0 ? '&' : '?') . 'set_locale='; $items = []; foreach ($locales as $locale => $name) { $items[] = toolbar_item_link( - htmlspecialchars($URL) . $locale, + htmlspecialchars($url) . $locale, '', '' . $name . ' ' . $name ); diff --git a/includes/helper/message_helper.php b/includes/helper/message_helper.php index 613ac32e..1f429c27 100644 --- a/includes/helper/message_helper.php +++ b/includes/helper/message_helper.php @@ -8,10 +8,10 @@ function msg() { if (!isset($_SESSION['msg'])) { - return ""; + return ''; } $msg = $_SESSION['msg']; - $_SESSION['msg'] = ""; + $_SESSION['msg'] = ''; return $msg; } @@ -62,14 +62,14 @@ function success($msg, $immediately = false) function alert($class, $msg, $immediately = false) { if ($immediately) { - if ($msg == "") { - return ""; + if ($msg == '') { + return ''; } return '
' . $msg . '
'; } if (!isset($_SESSION['msg'])) { - $_SESSION['msg'] = ""; + $_SESSION['msg'] = ''; } $_SESSION['msg'] .= alert($class, $msg, true); -- cgit v1.2.3-54-g00ecf