Hi
actar, sorry for the late reply.
We agree, this is not a bug.
I tested your last version:
- without language file: ok
- without strings: ok
It is a good job!
But I'm not finished with language management, you are using a static list, easy to code but not handy to add new languages without altering the program.
If you used a dynamic list, it will be handy.
Should change the language file by adding:
- Code: Tout sélectionner
[language]
CountryId=FRA iso 3166-1 alpha-3 for France
CountryDisplay=Français for french
This method has several advantages:
- Only the languages really present are listed.
- It is easy to add new ones.
- The language is independent of the file name.
Other things:These strings have a placement absolute and not relative to their length.
Some resources:These images were optimized with this Bash script:
- Code: Tout sélectionner
#!/bin/bash
oldIFS="$IFS" # sauvegarde du séparateur de champ
IFS=$'\n' # nouveau séparateur de champ, le caractère fin de ligne
for fichier
do
printf "%-32.32s %8d → " $(basename $fichier) $(du -b "$fichier" | cut -f1)
(which optipng && optipng -o7 "$fichier") > /dev/null
(which advpng && advpng -z4 "$fichier") > /dev/null
(which pngout && pngout -ks "$fichier") > /dev/null
(which deflopt && deflopt "$fichier") > /dev/null
printf "%8d\\n" $(du -b "$fichier" | cut -f1)
done
IFS="$old_IFS" # rétablissement du séparateur de champ par défaut
And finally, how does one access the tutorial?