<commit_before><?php
// idiot gettext cannot understand "en". it needs "en_GB"...
$localeMap = array(
    'en' => 'en_US',
    'fr' => 'fr_FR',
    'it' => 'it_IT',
    'ru' => 'ru_RU',
    'ja' => 'ja_JP',
    'af' => 'af_ZA',
    'hr' => 'hr_HR',
    'cs' => 'cs_CZ',
    'nl' => 'nl_NL',
    'fi' => 'fi_FI',
    'de' => 'de_DE',
    'hu' => 'hu_HU',
    'no' => 'no_NO',
    'pl' => 'pl_PL',
    'ro' => 'ro_RO',
    'sr' => 'sr_RS',
    'uk' => 'uk_UA',
    'el' => 'el_GR',
    'sk' => 'sk_SK',
    'tr' => 'tr_TR',
    'sl' => 'sl_SI',
);
$lang = "en";
if (isSet($_GET["lang"])) $lang = $_GET["lang"];
$locale = isset($localeMap[$lang]) ? $localeMap[$lang] : $lang;
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain("homepage", "lang");
textdomain("homepage");
bind_textdomain_codeset("homepage", 'UTF-8');
?>

<!DOCTYPE html>
<html lang="<?php echo $lang;?>" class="home">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width = device-width, initial-scale = 1">

	<title><?php echo _('FreeCAD: Select Your Platform'); ?></title>
	<link rel="shortcut icon" href="images/favicon.ico">

	<!-- Include bootstrap CSS file -->
	<link rel="stylesheet" href="css/bootstrap-4.1.2.min.css">

	<!-- Custom Styles -->
	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<body>
	<nav class="navbar fixed-top navbar-expand-lg navbar-dark navbar-custom">

		<a class="navbar-brand" href="index.php">
			<img class="img-fluid" src="svg/logo-freecad.svg">
		</a>

		<div class="collapse navbar-collapse" id="navbarNav">
			<ul class="nav nav-pills ml-auto">
				<li class="nav-item"><a class="nav-link" href="https://www.freecadweb.org/wiki/Feature_list"><?php echo _('Features'); ?></a></li>
				<li class="nav-item"><a class="nav-link" href="downloads.php"><?php echo _('Downloads'); ?></a></li><commit_msg>Fixed downloads page navbar not showing active nav<commit_after><?php
// idiot gettext cannot understand "en". it needs "en_GB"...
$localeMap = array(
    'en' => 'en_US',
    'fr' => 'fr_FR',
    'it' => 'it_IT',
    'ru' => 'ru_RU',
    'ja' => 'ja_JP',
    'af' => 'af_ZA',
    'hr' => 'hr_HR',
    'cs' => 'cs_CZ',
    'nl' => 'nl_NL',
    'fi' => 'fi_FI',
    'de' => 'de_DE',
    'hu' => 'hu_HU',
    'no' => 'no_NO',
    'pl' => 'pl_PL',
    'ro' => 'ro_RO',
    'sr' => 'sr_RS',
    'uk' => 'uk_UA',
    'el' => 'el_GR',
    'sk' => 'sk_SK',
    'tr' => 'tr_TR',
    'sl' => 'sl_SI',
);
$lang = "en";
if (isSet($_GET["lang"])) $lang = $_GET["lang"];
$locale = isset($localeMap[$lang]) ? $localeMap[$lang] : $lang;
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain("homepage", "lang");
textdomain("homepage");
bind_textdomain_codeset("homepage", 'UTF-8');
?>

<!DOCTYPE html>
<html lang="<?php echo $lang;?>" class="home">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width = device-width, initial-scale = 1">

	<title><?php echo _('FreeCAD: Select Your Platform'); ?></title>
	<link rel="shortcut icon" href="images/favicon.ico">

	<!-- Include bootstrap CSS file -->
	<link rel="stylesheet" href="css/bootstrap-4.1.2.min.css">

	<!-- Custom Styles -->
	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

<body>
	<nav class="navbar fixed-top navbar-expand-lg navbar-dark navbar-custom">

		<a class="navbar-brand" href="index.php">
			<img class="img-fluid" src="svg/logo-freecad.svg">
		</a>

		<div class="collapse navbar-collapse" id="navbarNav">
			<ul class="nav nav-pills ml-auto">
				<li class="nav-item"><a class="nav-link" href="https://www.freecadweb.org/wiki/Feature_list"><?php echo _('Features'); ?></a></li>
				<li class="nav-item"><a class="nav-link active" href="downloads.php"><?php echo _('Downloads'); ?></a></li>
{'fraction_non_alphanumeric': 0.24961160020714657, 'fraction_numerical': 0.0031071983428275505, 'mean_word_length': 4.143808255659121, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 113, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7267982', 'n_tokens_mistral': 1570, 'n_tokens_neox': 1510, 'n_words': 311}