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 @@
FR EN + UK
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"

News

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 :).

diff --git a/lang/fr/index.html b/lang/fr/index.html index 5e514f2..50fbb4c 100644 --- a/lang/fr/index.html +++ b/lang/fr/index.html @@ -24,7 +24,8 @@ rel="stylesheet" href="/css/index.css"

Nouveautés

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.

diff --git a/lang/links.config b/lang/links.config index e512d2a..97dc790 100644 --- a/lang/links.config +++ b/lang/links.config @@ -1,6 +1,7 @@ -fr |en -apropos |about -autres |others -copaings|friends -ou |where -projets |projects +fr |en |uk +apropos |about |index +autres |others |index +copaings|friends |index +ou |where |index +projets |projects|index +index |index |index diff --git a/lang/uk/header.link b/lang/uk/header.link new file mode 100644 index 0000000..d00c271 --- /dev/null +++ b/lang/uk/header.link @@ -0,0 +1,12 @@ +%subtitle% +rick's website +%endsubtitle% + +%links% +#where.html : where to find me +#friends.html : friends & co +#projects.html : projects +#a/ : annuaire +#rss.html : my rss feeds +#others.html : others +%endlinks% diff --git a/lang/uk/index.html b/lang/uk/index.html new file mode 100644 index 0000000..d7241de --- /dev/null +++ b/lang/uk/index.html @@ -0,0 +1,52 @@ +%link% +rel="stylesheet" href="/css/index.css" +%endlink% + +
+

СКОРО УКРАЇНСЬКОЮ !!!!!

+ + + + + +