Commit e6aec700 authored by Katrin Otto's avatar Katrin Otto

Übersetzungen und Anpassungen

parent ce9d4eb0
......@@ -6,7 +6,7 @@
# active TUC specific settings with TRUE
$tuc = False;
$tuc = false;
# local file path
$base_dir = dirname(__FILE__);
......@@ -70,7 +70,7 @@ $array_navigation = array(
'evaluation' => 'Evaluace'),
'rechts' => array(
'Nástroje' => array(
'links' => 'Linkssammlung',
'links' => 'Seznam odkazů',
'glossary' => 'Glossar'),
'Sprachen' => $lang))
);
......
......@@ -147,6 +147,7 @@ function main_navigation($current_lang)
# get the naviagtion in current language
$navigation = $array_navigation[$current_lang];
$file_ending = $current_lang === 'de' ? '' : 'index.html.' . $current_lang;
# array for output
$html = array();
......@@ -168,7 +169,7 @@ function main_navigation($current_lang)
$html[] = '<span class="icon-bar"></span>'. PHP_EOL;
$html[] = '</button>'. PHP_EOL;
$html[] = '<a class="navbar-brand" href="' . $base_URL . $startpage . '">' . $navigation['titel'] . '</a>'. PHP_EOL;
$html[] = '<a class="navbar-brand" href="' . $base_URL . '/' . $file_ending . '">' . $navigation['titel'] . '</a>'. PHP_EOL;
$html[] = '</div>'. PHP_EOL;
$html[] = '<div class="collapse navbar-collapse" id="main_navigation">'. PHP_EOL;
$html[] = '<ul class="nav navbar-nav">'. PHP_EOL;
......@@ -231,14 +232,14 @@ function main_navigation($current_lang)
$html[] = '<ul class="dropdown-menu">'. PHP_EOL;
foreach ($right as $submenu => $r)
{
$html[] = '<li><a href="' . $base_URL . '/content/' . $submenu . '/">' . $r . '</a></li>'. PHP_EOL;
$html[] = '<li><a href="' . $base_URL . '/content/' . $submenu . '/'. $file_ending . '">' . $r . '</a></li>'. PHP_EOL;
}
$html[] = '</ul>'. PHP_EOL;
$html[] = '</li>'. PHP_EOL;
}
else
{
$html[] = '<li><a href="' . $base_URL . '/'. $menu . '/">' . $right . '</a></li>'. PHP_EOL;
$html[] = '<li><a href="' . $base_URL . '/'. $menu . '/'. $file_ending . '">' . $right . '</a></li>'. PHP_EOL;
}
}
......@@ -492,7 +493,26 @@ function get_popover($id, $text)
# Glossary + alphabetic navigation
function get_glossary()
{
global $glossary;
global $glossary, $current_lang;
# set local to order glossary array correct
if ($current_lang === 'cs')
{
setlocale (LC_ALL, 'cs_CZ.utf8');
}
elseif($current_lang === 'de')
{
setlocale (LC_ALL, 'de_DE.utf8');
}
# order array by title
$title = array();
foreach ($glossary as $k => $row)
{
$title[$k] = $row['title'];
}
array_multisort($title, SORT_ASC, SORT_LOCALE_STRING, $glossary);
$html = array('<dl id="glossar">');
......@@ -576,4 +596,6 @@ function get_glossary()
echo implode('', $navigation);
echo implode('', $html);
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment