Add Italian translation; improve installation script reliability
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## Poly dark GRUB theme
|
## Poly dark GRUB theme
|
||||||
|
|
||||||
Supported languages: Chinese (simplified), English, French, German, Norwegian, Portuguese, Russian, Spanish, Ukrainian
|
Supported languages: Chinese (simplified), English, French, German, Italian, Norwegian, Portuguese, Russian, Spanish, Ukrainian
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
+8
-4
@@ -3,6 +3,9 @@
|
|||||||
THEME='poly-dark'
|
THEME='poly-dark'
|
||||||
LANG='English'
|
LANG='English'
|
||||||
|
|
||||||
|
# Change to temporary directory
|
||||||
|
cd $(mktemp -d)
|
||||||
|
|
||||||
# Pre-authorise sudo
|
# Pre-authorise sudo
|
||||||
sudo echo
|
sudo echo
|
||||||
|
|
||||||
@@ -12,6 +15,7 @@ declare -A LANGS=(
|
|||||||
[English]=EN
|
[English]=EN
|
||||||
[French]=FR
|
[French]=FR
|
||||||
[German]=DE
|
[German]=DE
|
||||||
|
[Italian]=IT
|
||||||
[Norwegian]=NO
|
[Norwegian]=NO
|
||||||
[Portuguese]=PT
|
[Portuguese]=PT
|
||||||
[Russian]=RU
|
[Russian]=RU
|
||||||
@@ -53,7 +57,7 @@ if [ -e /etc/os-release ]; then
|
|||||||
|
|
||||||
elif [[ "$ID" =~ (centos|fedora|opensuse) || \
|
elif [[ "$ID" =~ (centos|fedora|opensuse) || \
|
||||||
"$ID_LIKE" =~ (fedora|rhel|suse) ]]; then
|
"$ID_LIKE" =~ (fedora|rhel|suse) ]]; then
|
||||||
|
|
||||||
GRUB_DIR='grub2'
|
GRUB_DIR='grub2'
|
||||||
UPDATE_GRUB='grub2-mkconfig -o /boot/grub2/grub.cfg'
|
UPDATE_GRUB='grub2-mkconfig -o /boot/grub2/grub.cfg'
|
||||||
fi
|
fi
|
||||||
@@ -61,10 +65,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
echo 'Fetching theme archive'
|
echo 'Fetching theme archive'
|
||||||
wget https://github.com/shvchk/${THEME}/archive/master.zip
|
wget -O ${THEME}.zip https://github.com/shvchk/${THEME}/archive/master.zip
|
||||||
|
|
||||||
echo 'Unpacking theme'
|
echo 'Unpacking theme'
|
||||||
unzip master.zip
|
unzip ${THEME}.zip
|
||||||
|
|
||||||
if [[ "$LANG" != "English" ]]
|
if [[ "$LANG" != "English" ]]
|
||||||
then
|
then
|
||||||
@@ -95,7 +99,7 @@ echo 'Adding theme to GRUB config'
|
|||||||
echo "GRUB_THEME=/boot/${GRUB_DIR}/themes/${THEME}/theme.txt" | sudo tee -a /etc/default/grub
|
echo "GRUB_THEME=/boot/${GRUB_DIR}/themes/${THEME}/theme.txt" | sudo tee -a /etc/default/grub
|
||||||
|
|
||||||
echo 'Removing theme installation files'
|
echo 'Removing theme installation files'
|
||||||
rm -rf master.zip ${THEME}-master
|
rm -rf ${THEME}.zip ${THEME}-master
|
||||||
|
|
||||||
echo 'Updating GRUB'
|
echo 'Updating GRUB'
|
||||||
if [[ $UPDATE_GRUB ]]; then
|
if [[ $UPDATE_GRUB ]]; then
|
||||||
|
|||||||
@@ -37,9 +37,11 @@ terminal-border: "0"
|
|||||||
# EN
|
# EN
|
||||||
text = "Booting in %d seconds"
|
text = "Booting in %d seconds"
|
||||||
# ES
|
# ES
|
||||||
# text = "Arranque en% d segundos"
|
# text = "Arranque en %d segundos"
|
||||||
# FR
|
# FR
|
||||||
# text = "Démarrage automatique dans %d secondes"
|
# text = "Démarrage automatique dans %d secondes"
|
||||||
|
# IT
|
||||||
|
# text = "Avvio in %d secondi"
|
||||||
# NO
|
# NO
|
||||||
# text = "Starter om %d sekunder"
|
# text = "Starter om %d sekunder"
|
||||||
# PT
|
# PT
|
||||||
@@ -68,6 +70,8 @@ terminal-border: "0"
|
|||||||
# text = "Use las teclas ↑ y ↓ para cambiar la selección, Enter para confirmar"
|
# text = "Use las teclas ↑ y ↓ para cambiar la selección, Enter para confirmar"
|
||||||
# FR
|
# FR
|
||||||
# text = "Choisissez le système avec les flèches du clavier (↑ et ↓), puis validez avec la touche Enter (↲)"
|
# text = "Choisissez le système avec les flèches du clavier (↑ et ↓), puis validez avec la touche Enter (↲)"
|
||||||
|
# IT
|
||||||
|
# text = "Usa i tasti ↑ e ↓ per cambiare la selezione, premi Invio ↲ per confermare"
|
||||||
# NO
|
# NO
|
||||||
# text = "Bruk ↑ og ↓ for å endre menyvalg, velg med Enter"
|
# text = "Bruk ↑ og ↓ for å endre menyvalg, velg med Enter"
|
||||||
# PT
|
# PT
|
||||||
|
|||||||
Reference in New Issue
Block a user