diff --git a/generate.sh b/generate.sh index 6eabcf9..2d3c502 100755 --- a/generate.sh +++ b/generate.sh @@ -201,7 +201,8 @@ echo "Header links translation..." # cf. la page info 4.2 du manuel Bash (transforme un fichier en tableau) mapfile translateHeader < $langDir/links.config langs=${translateHeader[0]} -nbLang=$(echo "$langs" | grep -c "|") +tmpCount=${langs//[^|]} +nbLang=${#tmpCount} for (( i=1; i<${#translateHeader[@]}; i++ )) do # pour chaque langue diff --git a/header.html b/header.html index 78cf5d3..51a68f2 100644 --- a/header.html +++ b/header.html @@ -19,6 +19,7 @@
diff --git a/lang/en/index.html b/lang/en/index.html index 5d3869e..54e03ea 100644 --- a/lang/en/index.html +++ b/lang/en/index.html @@ -24,7 +24,8 @@ rel="stylesheet" href="/css/index.css"I'll add the interesting news of my website here. Read the commits to have more informations about the small changes of the site !
04-04-2024:
use ISO norm instead of flags for languages.
06-10-2024:
prepare ukrainian traduction of the website.
04-04-2024:
use ISO 639-1 norm instead of flags for languages.
25-10-2023:
translate everything \o/ (unless ??).
04-10-2023:
moving to a VPS at Contabo.
29-09-2023:
nice favicon :).
Je rajouterai les nouveautés intéressantes du site ici. Lisez les commits pour avoir plus de détails sur les petites modifications du site !
04-04-2024:
utilisation de la norme ISO au lieu de drapeaux pour les langues.
06-10-2024:
préparation de la traduction ukrainienne du site.
04-04-2024:
utilisation de la norme ISO 639-1 au lieu de drapeaux pour les langues.
04-10-2023:
migration vers un VPS chez Contabo.
29-09-2023:
un joli favicon :).
30-05-2023:
une meilleure CSP pour éviter les injections de trackers.