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/sys_menu.php | |
parent | 96a263f7129fbcf01ef644c531cdcc0a0be59085 (diff) |
basic gettext integration
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r-- | includes/sys_menu.php | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 805888e2..3cd42539 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -40,37 +40,35 @@ function make_navigation() { $menu = ""; $specials = array( - "faq" + "faq" ); $pages = array( - "news", - "user_meetings", - "user_myshifts", - "user_shifts", - "user_messages", - "user_questions", - "user_wakeup", - "admin_arrive", - "admin_active", - "admin_user", - "admin_free", - "admin_usershifts", - "admin_questions", - "admin_angel_types", - "admin_user_angeltypes", - "admin_shifts", - "admin_rooms", - "admin_groups", - "admin_faq", - "admin_language", - "admin_import", - "admin_log" + "news" => news_title(), + "user_meetings" => meetings_title(), + "user_myshifts" => myshifts_title(), + "user_shifts" => shifts_title(), + "user_messages" => messages_title(), + "user_questions" => questions_title(), + "user_wakeup" => wakeup_title(), + "admin_arrive" => admin_arrive_title(), + "admin_active" => admin_active_title(), + "admin_user" => admin_user_title(), + "admin_free" => admin_free_title(), + "admin_questions" => admin_questions_title(), + "admin_angel_types" => admin_angel_types_title(), + "admin_user_angeltypes" => admin_user_angeltypes_title(), + "admin_shifts" => admin_shifts_title(), + "admin_rooms" => admin_rooms_title(), + "admin_groups" => admin_groups_title(), + "admin_faq" => admin_faq_title(), + "admin_import" => admin_import_title(), + "admin_log" => admin_log_title() ); - foreach ($pages as $page) + foreach ($pages as $page => $title) if (in_array($page, $privileges) || in_array($page, $specials)) - $menu .= '<li' . ($page == $p ? ' class="selected"' : '') . '><a href="' . page_link_to($page) . '">' . Get_Text($page) . '</a></li>'; + $menu .= '<li' . ($page == $p ? ' class="selected"' : '') . '><a href="' . page_link_to($page) . '">' . $title . '</a></li>'; return '<nav><ul>' . $menu . '</ul></nav>'; } |