diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-11-25 21:04:58 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-11-25 21:04:58 +0100 |
commit | aad54bfe885e2ce69801597c791bff4b7f0e1521 (patch) | |
tree | ea5b6164698163c07ab1833df5a1afebdbdbc7ab /includes/pages/guest_faq.php | |
parent | 96a263f7129fbcf01ef644c531cdcc0a0be59085 (diff) |
basic gettext integration
Diffstat (limited to 'includes/pages/guest_faq.php')
-rw-r--r-- | includes/pages/guest_faq.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/pages/guest_faq.php b/includes/pages/guest_faq.php index e639731b..b6452f87 100644 --- a/includes/pages/guest_faq.php +++ b/includes/pages/guest_faq.php @@ -1,10 +1,14 @@ <?php +function faq_title() { + return _("FAQ"); +} + function guest_faq() { $html = ""; $faqs = sql_select("SELECT * FROM `FAQ`"); foreach ($faqs as $faq) { $html .= "<dl>"; - if ($_SESSION['Sprache'] == "DE") { + if ($_SESSION['locale'] == "de_DE.UTF-8") { $html .= sprintf( '<dt>%s</dt> <dd>%s</dd>', $faq['Frage_de'], |