aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-14 13:20:26 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-14 13:20:26 +0000
commit7babeead0417e8266411fcb01724c47dd01747ac (patch)
tree4d53919eb0c3edf316ff832fc438b786691b3897
parenta872bc4c3894b79ca3ea90d72f846a8f03b62c79 (diff)
downloadremove-old-kernels-7babeead0417e8266411fcb01724c47dd01747ac.tar
remove-old-kernels-7babeead0417e8266411fcb01724c47dd01747ac.tar.gz
remove-old-kernels-7babeead0417e8266411fcb01724c47dd01747ac.tar.bz2
remove-old-kernels-7babeead0417e8266411fcb01724c47dd01747ac.tar.xz
remove-old-kernels-7babeead0417e8266411fcb01724c47dd01747ac.zip
- added mk-pot script
- split some script lines so only one translation per line - added pot file to locale for translators using poedit etc.
-rw-r--r--locale/es.UTF-8/LC_MESSAGES/remove-old-kernels.mobin0 -> 6216 bytes
-rw-r--r--locale/es_ES.UTF-8/LC_MESSAGES/remove-old-kernels.mobin0 -> 6221 bytes
-rw-r--r--locale/sv_SE.UTF-8/LC_MESSAGES/remove-old-kernels.mobin0 -> 6471 bytes
-rwxr-xr-xmk-pot58
-rw-r--r--po/es.UTF-8.po184
-rw-r--r--po/es_ES.UTF-8.po184
-rw-r--r--po/remove-old-kernels.pot168
-rw-r--r--po/sv_SE.UTF-8.po180
-rw-r--r--pot_header.txt18
-rwxr-xr-xremove-old-kernels20
10 files changed, 806 insertions, 6 deletions
diff --git a/locale/es.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/es.UTF-8/LC_MESSAGES/remove-old-kernels.mo
new file mode 100644
index 0000000..baf92d6
--- /dev/null
+++ b/locale/es.UTF-8/LC_MESSAGES/remove-old-kernels.mo
Binary files differ
diff --git a/locale/es_ES.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/es_ES.UTF-8/LC_MESSAGES/remove-old-kernels.mo
new file mode 100644
index 0000000..1870be9
--- /dev/null
+++ b/locale/es_ES.UTF-8/LC_MESSAGES/remove-old-kernels.mo
Binary files differ
diff --git a/locale/sv_SE.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/sv_SE.UTF-8/LC_MESSAGES/remove-old-kernels.mo
new file mode 100644
index 0000000..037af91
--- /dev/null
+++ b/locale/sv_SE.UTF-8/LC_MESSAGES/remove-old-kernels.mo
Binary files differ
diff --git a/mk-pot b/mk-pot
new file mode 100755
index 0000000..bbd8b49
--- /dev/null
+++ b/mk-pot
@@ -0,0 +1,58 @@
+#!/usr/bin/bash
+# Create remove-old-kernels.pot from remove-old-kernels script
+
+linesin=0; linesout=0
+
+grep -o '(i18n ".*)' remove-old-kernels|sed "s/(i18n/msgid /"|sed "s/.$//" > pot-temp
+
+rm -f pot-temp1
+while read line; do
+ ((linesin++))
+ if echo "$line" | grep -q "\${plural}"; then
+ echo "$line" |sed 's/\${plural}/s/' >> pot-temp1
+ ((linesout++))
+ echo "$line" |sed 's/\${plural}//' >> pot-temp1
+ ((linesout++))
+ continue
+ fi
+ echo "$line" >> pot-temp1
+ ((linesout++))
+done < pot-temp
+echo "lines in from script $linesin"
+echo "lines out after fixing plurals $linesout"
+
+#Check for dupes
+rm -f pot-temp2
+rawarray=(); x=0 ; y=0
+# Loop through pot-temp1
+while read line; do
+# Reset isdupe
+ isdupe=0; rawstr=""
+# get raw string
+ rawstr="$(echo $line|cut -d\" -f2)"
+#loop through array to check if msgid already exists
+ for ((y=1;y<$((x+1));y++)); do
+ if [[ "$rawstr" == "${rawarray[$y]}" ]]; then
+ isdupe=1
+ break
+ fi
+ done
+# Dupe found so loop and ignore this $line
+ [[ $isdupe = 1 ]] && continue
+# Dupe not found so add raw string to array
+# increment line index
+ ((x++))
+ rawarray[$x]="$rawstr"
+# Output line to pot-temp2
+ echo "$line" >> pot-temp2
+# Insert blank msgstr line and blank line
+ echo -e 'msgstr ""\n' >> pot-temp2
+done < pot-temp1
+
+echo "Lines out after dupe removal: $x"
+
+# Save to po dir
+cat pot_header.txt > po/remove-old-kernels.pot
+cat pot-temp2 >> po/remove-old-kernels.pot
+# Delete all tmp files
+rm -f pot-temp*
diff --git a/po/es.UTF-8.po b/po/es.UTF-8.po
new file mode 100644
index 0000000..fffea88
--- /dev/null
+++ b/po/es.UTF-8.po
@@ -0,0 +1,184 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: remove-old-kernels\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: RWR\n"
+"Language-Team: \n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.2.2\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: \n"
+
+# "kernel" se usa en español también y aparece en los nombres de los archivos
+msgid "Welcome to 'remove-old-kernels' Interactive"
+msgstr "Bienvenido a 'quitar-kernels-viejos' interactivo"
+
+msgid "Keep"
+msgstr "Conservar"
+
+msgid "Remove"
+msgstr "Quitar"
+
+msgid "KEEP"
+msgstr "CONSERVAR"
+
+msgid "AUTO"
+msgstr "AUTO"
+
+msgid "Must be root to allow removal"
+msgstr "Debe ser administrador para quitar"
+
+msgid "Must be root to edit configuration"
+msgstr "Debe ser administrador para editar la configuración"
+
+msgid "kernel"
+msgstr "kernel"
+
+msgid "kernels"
+msgstr "kernels"
+
+# For languages where "y/N" is not appropriate DO NOT change "y/N/i"
+# but only translate "yes", "no" and "confirm for each".
+msgid "y/N/i (i=confirm for each)"
+msgstr "y/N/i (y=sí N=no i=confirmar cada uno)"
+
+# Only translate "yes", "no" and "quit"
+msgid "y/N/q (q=quit)"
+msgstr "y/N/q (q=salir)"
+
+msgid "interactive"
+msgstr "interactivo"
+
+msgid "abort"
+msgstr "abortar"
+
+msgid "Aborted"
+msgstr "Abortado"
+
+msgid "quit"
+msgstr "salir"
+
+# Supongo es para un listado de kernels instalados, pero no estoy seguro
+msgid "Kernels in"
+msgstr "Kernels en"
+
+msgid "Gain"
+msgstr "Conseguir"
+
+msgid "Tap spacebar to exit"
+msgstr "Pulse espaciador para salir"
+
+msgid "Tap spacebar"
+msgstr "Pulse espaciador"
+
+msgid "In use now"
+msgstr "Ejecutándose ahora"
+
+msgid "Test mode is on - kernels will not be removed"
+msgstr "En modo de prueba - no se quitará ningún kernel"
+
+msgid "DEBUG: Could execute: urpme"
+msgstr "DEPURAR: Podría ejecutar: urpme"
+
+msgid "Command that would be used"
+msgstr "Comando que se usaría"
+
+msgid "Commands that would be used"
+msgstr "Comandos que se usarían"
+
+msgid "Your alternative configuration file does not exist:"
+msgstr "No existe ningún archivo de configuración alternativo:"
+
+msgid "Either replace it or set ALTCFG=0 in"
+msgstr "Reemplácelo o asigne ALTCFG=0 en"
+
+msgid "FATAL: Failed to read:"
+msgstr "FATAL: No se leyó:"
+
+msgid "No such alternative configuration file:"
+msgstr "No existe tal archivo de configuración:"
+
+# Sin más contexto, no estoy seguro si habla de habilitado/deshabilitado o..., pero creo que se entenderá en el contexto con las palabras inglesas
+msgid "Please use 0 or 1 for OFF and ON"
+msgstr "Por favor use 0 o 1 para OFF y ON"
+
+msgid "Bad input value"
+msgstr "Valor de entrada equivocado"
+
+msgid "INFO: Number to keep is restricted to "
+msgstr "INFO: Número a conservar se limita a "
+
+msgid ", by the dnf 'installonly_limit' set in /etc/dnf/dnf.conf"
+msgstr ", por el dnf 'installonly_limit' asignado en /etc/dnf/dnf.conf"
+
+msgid "FATAL: Has the running kernel been uninstalled since last boot? - Aborting."
+msgstr "FATAL: ¿Se ha quitado el kernel ejecutandose después del último arranque? - Abortando."
+
+msgid "Usage: <remove-old kernels|rok> [-a] [-A 0|1] [-c] [-t] [-f 0-9] [-F 0-9] [-n number] [-N number] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+msgstr "Uso: <remove-old kernels|rok> [-a] [-A <1|0>] [-c] [-t] [-f 0-9] [-F 0-9] [-n número] [-N número] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+
+msgid " -a = automatic, no questions. Interactive if not specified. (must be root)"
+msgstr " -a = automático, sin preguntas. Interactivo si no se especifica. (debe ser administrador)"
+
+msgid " -A value = 1 or 0 to turn ON or OFF automatic weekly removal of kernels. (e.g. -A1)"
+msgstr " -A valor = 1 o 0 para QUITAR o NO QUITAR los kernels cada semana. (ej. -A1)"
+
+msgid " -c = as automatic but also checks for CRON=1 in the cfg file or exits. (must be root)"
+msgstr " -c = automático, pero también verifica si CRON=1 en el archivo cfg o sale. (debe ser administrador)"
+
+msgid " -t = Test mode, nothing is removed, urpme is simulated."
+msgstr " -t = Modo de prueba, no se quita nada, se simula urpme."
+
+msgid " -f value = number of the alternate .cfg file to use this time only. Exits if missing."
+msgstr " -f valor = número de archivos .cfg alternativos a usar sólo esta vez. Sale si no hay."
+
+msgid " -F value = number of alt .cfg file to use. This changes the ALTCFG= setting in the main .cfg file."
+msgstr " -F valor = número de archivos .cfg alternativos en uso. Cambia el ajuste ALTCFG= en el archivo .cfg principal."
+
+msgid " -n value = number of kernels to keep this time only. (-n5 or -n 5 keep 5 kernels), Min=2, Default=3"
+msgstr " -n valor = número de kernels a conservar sólo esta vez. (-n5 o -n 5 conservar 5 kernels), Mín=2, Por defecto=3"
+
+msgid " -N value = number of kernels to keep. This changes the config file setting. (e.g. -N 5)"
+msgstr " -N valor = número de kernels a conservar. Cambia el ajuste en el archivo de configuración. (ej. -N 5)"
+
+msgid " -p = preview the urpme commands which would be used."
+msgstr " -p = previsualizar el comando urpme que se usaría."
+
+msgid " -q = advanced mode, this time only - see man page."
+msgstr " -q = modo avanzado, sólo está vez - vea página man."
+
+msgid " -Q value = 1 or 0 (1 = ON) advanced mode, persistent. (e.g. -Q1)"
+msgstr " -Q valor = 1 o 0 (1 = ON) modo avanzado, persistente. (ej. -Q1)"
+
+msgid " -l = list the last 1000 lines of the log."
+msgstr " -l = mostrar las últimas 1000 líneas del log."
+
+msgid " -m = mono. No colours in screen output."
+msgstr " -m = mono. Salida de pantalla sin colores."
+
+msgid " -v = version."
+msgstr " -v = versión."
+
+msgid " -? or -h = show this help."
+msgstr " -? or -h = mostrar esta ayuda."
+
+msgid "KEY for column 3:"
+msgstr "LEYENDA para la columna 3:"
+
+msgid " U = currently (U)sed running kernel."
+msgstr " U = kernel actualmente en (U)so (ejecutándose)."
+
+# "latest" se usa en el nombre el kernel más reciente
+msgid " V = keeping for (V)irtualbox -latest. (only in advanced mode)"
+msgstr " V = conservando para (V)irtualbox -latest. (sólo en modo avanzado)"
+
+msgid " X = keeping for (X)tables-addons -latest. (only in advanced mode)"
+msgstr " X = conservando para (X)tables-addons -latest. (sólo en modo avanzado)"
+
+msgid " K = keeping kernel-*-devel for installed (K)ernel. (only advanced mode)"
+msgstr " K = conservando kernel-*-devel para el (K)ernel instalado. (sólo en modo avanzado)"
diff --git a/po/es_ES.UTF-8.po b/po/es_ES.UTF-8.po
new file mode 100644
index 0000000..2a3d200
--- /dev/null
+++ b/po/es_ES.UTF-8.po
@@ -0,0 +1,184 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: remove-old-kernels\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: RWR\n"
+"Language-Team: \n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 3.2.2\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: \n"
+
+# "kernel" se usa en español también y aparece en los nombres de los archivos
+msgid "Welcome to 'remove-old-kernels' Interactive"
+msgstr "Bienvenido a 'quitar-kernels-viejos' interactivo"
+
+msgid "Keep"
+msgstr "Conservar"
+
+msgid "Remove"
+msgstr "Quitar"
+
+msgid "KEEP"
+msgstr "CONSERVAR"
+
+msgid "AUTO"
+msgstr "AUTO"
+
+msgid "Must be root to allow removal"
+msgstr "Debes ser administrador para quitar"
+
+msgid "Must be root to edit configuration"
+msgstr "Debes ser administrador para editar la configuración"
+
+msgid "kernel"
+msgstr "kernel"
+
+msgid "kernels"
+msgstr "kernels"
+
+# For languages where "y/N" is not appropriate DO NOT change "y/N/i"
+# but only translate "yes", "no" and "confirm for each".
+msgid "y/N/i (i=confirm for each)"
+msgstr "y/N/i (y=sí N=no i=confirmar cada uno)"
+
+# Only translate "yes", "no" and "quit"
+msgid "y/N/q (q=quit)"
+msgstr "y/N/q (q=salir)"
+
+msgid "interactive"
+msgstr "interactivo"
+
+msgid "abort"
+msgstr "abortar"
+
+msgid "Aborted"
+msgstr "Abortado"
+
+msgid "quit"
+msgstr "salir"
+
+# Supongo es para un listado de kernels instalados, pero no estoy seguro
+msgid "Kernels in"
+msgstr "Kernels en"
+
+msgid "Gain"
+msgstr "Conseguir"
+
+msgid "Tap spacebar to exit"
+msgstr "Pulsa espaciador para salir"
+
+msgid "Tap spacebar"
+msgstr "Pulsa espaciador"
+
+msgid "In use now"
+msgstr "Ejecutándose ahora"
+
+msgid "Test mode is on - kernels will not be removed"
+msgstr "En modo de prueba - no se quitará ningún kernel"
+
+msgid "DEBUG: Could execute: urpme"
+msgstr "DEPURAR: Podría ejecutar: urpme"
+
+msgid "Command that would be used"
+msgstr "Comando que se usaría"
+
+msgid "Commands that would be used"
+msgstr "Comandos que se usarían"
+
+msgid "Your alternative configuration file does not exist:"
+msgstr "No existe ningún archivo de configuración alternativo:"
+
+msgid "Either replace it or set ALTCFG=0 in"
+msgstr "Reemplázalo o asigne ALTCFG=0 en"
+
+msgid "FATAL: Failed to read:"
+msgstr "FATAL: No se ha leído:"
+
+msgid "No such alternative configuration file:"
+msgstr "No existe tal archivo de configuración:"
+
+# Sin más contexto, no estoy seguro si habla de habilitado/deshabilitado o..., pero creo que se entenderá en el contexto con las palabras inglesas
+msgid "Please use 0 or 1 for OFF and ON"
+msgstr "Por favor usa 0 o 1 para OFF y ON"
+
+msgid "Bad input value"
+msgstr "Valor de entrada equivocado"
+
+msgid "INFO: Number to keep is restricted to "
+msgstr "INFO: Número a conservar se limita a "
+
+msgid ", by the dnf 'installonly_limit' set in /etc/dnf/dnf.conf"
+msgstr ", por el dnf 'installonly_limit' asignado en /etc/dnf/dnf.conf"
+
+msgid "FATAL: Has the running kernel been uninstalled since last boot? - Aborting."
+msgstr "FATAL: ¿Se ha quitado el kernel ejecutandose después del último arranque? - Abortando."
+
+msgid "Usage: <remove-old kernels|rok> [-a] [-A 0|1] [-c] [-t] [-f 0-9] [-F 0-9] [-n number] [-N number] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+msgstr "Uso: <remove-old kernels|rok> [-a] [-A 0|1] [-c] [-t] [-f 0-9] [-F 0-9] [-n número] [-N número] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+
+msgid " -a = automatic, no questions. Interactive if not specified. (must be root)"
+msgstr " -a = automático, sin preguntas. Interactivo si no se especifica. (debes ser administrador)"
+
+msgid " -A value = 1 or 0 to turn ON or OFF automatic weekly removal of kernels. (e.g. -A1)"
+msgstr " -A valor = 1 o 0 para QUITAR o NO QUITAR los kernels cada semana. (ej. -A1)"
+
+msgid " -c = as automatic but also checks for CRON=1 in the cfg file or exits. (must be root)"
+msgstr " -c = automático, pero también verifica si CRON=1 en el archivo cfg o sale. (debe ser administrador)"
+
+msgid " -t = Test mode, nothing is removed, urpme is simulated."
+msgstr " -t = Modo de prueba, no se quita nada, se simula urpme."
+
+msgid " -f value = number of the alternate .cfg file to use this time only. Exits if missing."
+msgstr " -f valor = número de archivos .cfg alternativos a usar sólo esta vez. Sale si no hay."
+
+msgid " -F value = number of alt .cfg file to use. This changes the ALTCFG= setting in the main .cfg file."
+msgstr " -F valor = número de archivos .cfg alternativos en uso. Cambia el ajuste ALTCFG= en el archivo .cfg principal."
+
+msgid " -n value = number of kernels to keep this time only. (-n5 or -n 5 keep 5 kernels), Min=2, Default=3"
+msgstr " -n valor = número de kernels a conservar sólo esta vez. (-n5 o -n 5 conservar 5 kernels), Mín=2, Por defecto=3"
+
+msgid " -N value = number of kernels to keep. This changes the config file setting. (e.g. -N 5)"
+msgstr " -N valor = número de kernels a conservar. Cambia el ajuste en el archivo de configuración. (ej. -N 5)"
+
+msgid " -p = preview the urpme commands which would be used."
+msgstr " -p = previsualizar el comando urpme que se usaría."
+
+msgid " -q = advanced mode, this time only - see man page."
+msgstr " -q = modo avanzado, sólo está vez - vea página man."
+
+msgid " -Q value = 1 or 0 (1 = ON) advanced mode, persistent. (e.g. -Q1)"
+msgstr " -Q valor = 1 o 0 (1 = ON) modo avanzado, persistente. (ej. -Q1)"
+
+msgid " -l = list the last 1000 lines of the log."
+msgstr " -l = mostrar las últimas 1000 líneas del log."
+
+msgid " -m = mono. No colours in screen output."
+msgstr " -m = mono. Salida de pantalla sin colores."
+
+msgid " -v = version."
+msgstr " -v = versión."
+
+msgid " -? or -h = show this help."
+msgstr " -? or -h = mostrar esta ayuda."
+
+msgid "KEY for column 3:"
+msgstr "LEYENDA para la columna 3:"
+
+msgid " U = currently (U)sed running kernel."
+msgstr " U = kernel actualmente en (U)so (ejecutándose)."
+
+# "latest" se usa en el nombre el kernel más reciente
+msgid " V = keeping for (V)irtualbox -latest. (only in advanced mode)"
+msgstr " V = conservando para (V)irtualbox -latest. (sólo en modo avanzado)"
+
+msgid " X = keeping for (X)tables-addons -latest. (only in advanced mode)"
+msgstr " X = conservando para (X)tables-addons -latest. (sólo en modo avanzado)"
+
+msgid " K = keeping kernel-*-devel for installed (K)ernel. (only advanced mode)"
+msgstr " K = conservando kernel-*-devel para el (K)ernel instalado. (sólo en modo avanzado)"
diff --git a/po/remove-old-kernels.pot b/po/remove-old-kernels.pot
new file mode 100644
index 0000000..92d8bf2
--- /dev/null
+++ b/po/remove-old-kernels.pot
@@ -0,0 +1,168 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the remove-old-kernels package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr "Project-Id-Version: remove-old-kernels\n"
+ "Report-Msgid-Bugs-To: \n"
+ "POT-Creation-Date: \n"
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+ "Language-Team: LANGUAGE <LL@li.org>\n"
+ "Language: \n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=CHARSET\n"
+ "Content-Transfer-Encoding: 8bit\n"
+
+msgid "Usage: <remove-old kernels|rok> [-a] [-A 0|1] [-c] [-t] [-f 0-9] [-F 0-9] [-n number] [-N number] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+msgstr ""
+
+msgid " -a = automatic, no questions. Interactive if not specified. (must be root)"
+msgstr ""
+
+msgid " -A value = 1 or 0 to turn ON or OFF automatic weekly removal of kernels. (e.g. -A1)"
+msgstr ""
+
+msgid " -c = as automatic but also checks for CRON=1 in the cfg file or exits. (must be root)"
+msgstr ""
+
+msgid " -t = Test mode, nothing is removed, urpme is simulated."
+msgstr ""
+
+msgid " -f value = number of the alternate .cfg file to use this time only. Exits if missing."
+msgstr ""
+
+msgid " -F value = number of alt .cfg file to use. This changes the ALTCFG= setting in the main .cfg file."
+msgstr ""
+
+msgid " -n value = number of kernels to keep this time only. (-n5 or -n 5 keep 5 kernels), Min=2, Default=3"
+msgstr ""
+
+msgid " -N value = number of kernels to keep. This changes the config file setting. (e.g. -N 5)"
+msgstr ""
+
+msgid " -p = preview the urpme commands which would be used."
+msgstr ""
+
+msgid " -q = advanced mode, this time only - see man page."
+msgstr ""
+
+msgid " -Q value = 1 or 0 (1 = ON) advanced mode, persistent. (e.g. -Q1)"
+msgstr ""
+
+msgid " -l = list the last 1000 lines of the log."
+msgstr ""
+
+msgid " -m = mono. No colours in screen output."
+msgstr ""
+
+msgid " -v = version."
+msgstr ""
+
+msgid " -? or -h = show this help."
+msgstr ""
+
+msgid "KEY for column 3:"
+msgstr ""
+
+msgid " U = currently (U)sed running kernel."
+msgstr ""
+
+msgid " V = keeping for (V)irtualbox -latest. (only in advanced mode)"
+msgstr ""
+
+msgid " X = keeping for (X)tables-addons -latest. (only in advanced mode)"
+msgstr ""
+
+msgid " K = keeping kernel-*-devel for installed (K)ernel. (only advanced mode)"
+msgstr ""
+
+msgid "FATAL: Failed to read:"
+msgstr ""
+
+msgid "Your alternative configuration file does not exist:"
+msgstr ""
+
+msgid "Either replace it or set ALTCFG=0 in"
+msgstr ""
+
+msgid "Must be root to edit configuration"
+msgstr ""
+
+msgid "No such alternative configuration file:"
+msgstr ""
+
+msgid "Please use 0 or 1 for OFF and ON"
+msgstr ""
+
+msgid "Bad input value"
+msgstr ""
+
+msgid "Tap spacebar"
+msgstr ""
+
+msgid "Welcome to 'remove-old-kernels' Interactive"
+msgstr ""
+
+msgid "INFO: Number to keep is restricted to "
+msgstr ""
+
+msgid ", by the dnf 'installonly_limit' set in /etc/dnf/dnf.conf"
+msgstr ""
+
+msgid "FATAL: Has the running kernel been uninstalled since last boot? - Aborting."
+msgstr ""
+
+msgid "Keep"
+msgstr ""
+
+msgid "Remove"
+msgstr ""
+
+msgid "Kernels in"
+msgstr ""
+
+msgid "KEEP"
+msgstr ""
+
+msgid "In use now"
+msgstr ""
+
+msgid "Must be root to allow removal"
+msgstr ""
+
+msgid "Commands that would be used"
+msgstr ""
+
+msgid "Command that would be used"
+msgstr ""
+
+msgid "Test mode is on - kernels will not be removed"
+msgstr ""
+
+msgid "kernels"
+msgstr ""
+
+msgid "kernel"
+msgstr ""
+
+msgid "y/N/i (i=confirm for each)"
+msgstr ""
+
+msgid "interactive"
+msgstr ""
+
+msgid "Aborted"
+msgstr ""
+
+msgid "y/N/q (q=quit)"
+msgstr ""
+
+msgid "DEBUG: Could execute: urpme"
+msgstr ""
+
+msgid "Gain"
+msgstr ""
+
diff --git a/po/sv_SE.UTF-8.po b/po/sv_SE.UTF-8.po
new file mode 100644
index 0000000..43e0f62
--- /dev/null
+++ b/po/sv_SE.UTF-8.po
@@ -0,0 +1,180 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: remove-old-kernels\n"
+"POT-Creation-Date: \n"
+"PO-Revision-Date: \n"
+"Last-Translator: Kristoffer Grundström <swedishsailfishosuser@tutanota.com>\n"
+"Language-Team: Mageia\n"
+"Language: sv_SE\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 2.4.2\n"
+"X-Poedit-SourceCharset: UTF-8\n"
+"X-Poedit-KeywordsList: \n"
+
+msgid "Welcome to 'remove-old-kernels' Interactive"
+msgstr "Välkommen till 'remove-old-kernels' Interaktiv"
+
+msgid "Keep"
+msgstr "Behåll"
+
+msgid "Remove"
+msgstr "Ta bort"
+
+msgid "KEEP"
+msgstr "BEHÅLL"
+
+msgid "AUTO"
+msgstr "AUTO"
+
+msgid "Must be root to allow removal"
+msgstr "Måste vara root för att tillåta borttagning"
+
+msgid "Must be root to edit configuration"
+msgstr "Måste vara root för att redigera konfiguration"
+
+msgid "kernel"
+msgstr "kärna"
+
+msgid "kernels"
+msgstr "kärnor"
+
+# For languages where "y/N" is not appropriate DO NOT change "y/N/i"
+# but only translate "yes", "no" and "confirm for each".
+msgid "y/N/i (i=confirm for each)"
+msgstr "y/N/i (y=ja N=nej i=bekräfta för varje)"
+
+# Only translate "yes", "no" and "quit"
+msgid "y/N/q (q=quit)"
+msgstr "y/N/q (y=ja N=nej q=avsluta)"
+
+msgid "interactive"
+msgstr "interactive"
+
+msgid "abort"
+msgstr "avbryt"
+
+msgid "Aborted"
+msgstr "Avbröts"
+
+msgid "quit"
+msgstr "avsluta"
+
+msgid "Kernels in"
+msgstr "Kärnor i"
+
+msgid "Gain"
+msgstr "Gain"
+
+msgid "Tap spacebar to exit"
+msgstr "Tryck på mellanslag för att avsluta"
+
+msgid "Tap spacebar"
+msgstr "Tryck på mellanslag"
+
+msgid "In use now"
+msgstr "Används nu"
+
+msgid "Test mode is on - kernels will not be removed"
+msgstr "Test-läge är påslaget - kärnorna kommer inte tas bort"
+
+msgid "DEBUG: Could execute: urpme"
+msgstr "AVLUSA: Kunde köra: urpme"
+
+msgid "Command that would be used"
+msgstr "Kommandot som kommer att användas"
+
+msgid "Commands that would be used"
+msgstr "Kommandon som kommer att användas"
+
+msgid "Your alternative configuration file does not exist:"
+msgstr "Din alternativa konfigurationsfil finns inte:"
+
+msgid "Either replace it or set ALTCFG=0 in"
+msgstr "Byt ut den eller ställ in ALTCFG=0"
+
+msgid "FATAL: Failed to read:"
+msgstr "DÖDLIG: Läsningen misslyckades:"
+
+msgid "No such alternative configuration file:"
+msgstr "Ingen sådan alternativ konfigurationsfil:"
+
+msgid "Please use 0 or 1 for OFF and ON"
+msgstr "Vänligen använd 0 eller 1 för AV och PÅ"
+
+msgid "Bad input value"
+msgstr "Felaktigt inmatningsvärde"
+
+msgid "INFO: Number to keep is restricted to "
+msgstr "INFO: Antalet att behålla är begränsat till "
+
+msgid ", by the dnf 'installonly_limit' set in /etc/dnf/dnf.conf"
+msgstr ", av dnf 'installonly_limit' inställt i /etc/dnf/dnf.conf"
+
+msgid "FATAL: Has the running kernel been uninstalled since last boot? - Aborting."
+msgstr "DÖDLIG: Har kärnan som körs blivit avinstallerad sedan den senaste uppstarten? - Avbryter."
+
+msgid "Usage: <remove-old kernels|rok> [-a] [-A 0|1] [-c] [-t] [-f 0-9] [-F 0-9] [-n number] [-N number] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+msgstr "Användningsområde: <remove-old kernels|rok> [-a] [-A <1|0>] [-c] [-t] [-f 0-9] [-F 0-9] [-n antal] [-N nummer] [-p] [-q] [-Q 0|1][-l] [-m] [-v] [-h|-?]"
+
+msgid " -a = automatic, no questions. Interactive if not specified. (must be root)"
+msgstr " -a = automatiskt, inga frågor. Interaktivt om ej angivet. (måste vara root)"
+
+msgid " -A value = 1 or 0 to turn ON or OFF automatic weekly removal of kernels. (e.g. -A1)"
+msgstr " -A värde = 1 eller 0 för att slå PÅ eller AV automatisk borttagning av kärnor varje vecka. (t.ex. -A1)"
+
+msgid " -c = as automatic but also checks for CRON=1 in the cfg file or exits. (must be root)"
+msgstr " -c = som automatisk, men söker också efter CRON=1 i cfg-filen eller avslutar. (måste vara root)"
+
+msgid " -t = Test mode, nothing is removed, urpme is simulated."
+msgstr " -t = Test-läge, ingenting tas bort, urpme simuleras."
+
+msgid " -f value = number of the alternate .cfg file to use this time only. Exits if missing."
+msgstr " -f värde = nummer i den alternativa .cfg-filen som ska användas endast den här gången. Avslutar om det saknas."
+
+msgid " -F value = number of alt .cfg file to use. This changes the ALTCFG= setting in the main .cfg file."
+msgstr " -F värde = nummer för alt .cfg-fil att använda. Det här ändrar inställningen ALTCFG= i den huvudsakliga .cfg-filen."
+
+msgid " -n value = number of kernels to keep this time only. (-n5 or -n 5 keep 5 kernels), Min=2, Default=3"
+msgstr " -n värde = antalet kärnor som ska behållas endast den här gången. (-n5 eller -n 5 behåll 5 kärnor), Minst=2, Standard=3"
+
+msgid " -N value = number of kernels to keep. This changes the config file setting. (e.g. -N 5)"
+msgstr " -N värde = antalet kärnor som ska behållas. Det här ändrar på config-filens inställning. (t.ex. -N 5)"
+
+msgid " -p = preview the urpme commands which would be used."
+msgstr " -p = förhandsgranska urpme-kommandona som kommer att användas."
+
+msgid " -q = advanced mode, this time only - see man page."
+msgstr " -q = avancerat läge, endast den här gången - läs i manualsidan."
+
+msgid " -Q value = 1 or 0 (1 = ON) advanced mode, persistent. (e.g. -Q1)"
+msgstr " -Q värde = 1 eller 0 (1 = PÅ) avancerat läge, ihärdig. (t.ex. -Q1)"
+
+msgid " -l = list the last 1000 lines of the log."
+msgstr " -l = listar de 1000 senaste raderna i loggen."
+
+msgid " -m = mono. No colours in screen output."
+msgstr " -m = mono. Inga färger i utmatningen på skärmen."
+
+msgid " -v = version."
+msgstr " -v = version."
+
+msgid " -? or -h = show this help."
+msgstr " -? eller -h = visa det här hjälpavsnittet."
+
+msgid "KEY for column 3:"
+msgstr "TANGENT för column 3:"
+
+msgid " U = currently (U)sed running kernel."
+msgstr " U = Kärnan som körs för närvarande."
+
+msgid " V = keeping for (V)irtualbox -latest. (only in advanced mode)"
+msgstr " V = behåller för (V)irtualbox -latest. (endast i avancerat läge)"
+
+msgid " X = keeping for (X)tables-addons -latest. (only in advanced mode)"
+msgstr " X = behåller för (X)tables-addons -latest. (endast i avancerat läge)"
+
+msgid " K = keeping kernel-*-devel for installed (K)ernel. (only advanced mode)"
+msgstr " K = behåller kernel-*-devel för installerad (K)ärna. (endast i avancerat läge)"
diff --git a/pot_header.txt b/pot_header.txt
new file mode 100644
index 0000000..626c8d2
--- /dev/null
+++ b/pot_header.txt
@@ -0,0 +1,18 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the remove-old-kernels package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr "Project-Id-Version: remove-old-kernels\n"
+ "Report-Msgid-Bugs-To: \n"
+ "POT-Creation-Date: \n"
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+ "Language-Team: LANGUAGE <LL@li.org>\n"
+ "Language: \n"
+ "MIME-Version: 1.0\n"
+ "Content-Type: text/plain; charset=CHARSET\n"
+ "Content-Transfer-Encoding: 8bit\n"
+
diff --git a/remove-old-kernels b/remove-old-kernels
index 88fc68a..b8eac46 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -251,7 +251,8 @@ fi
# Use dnf kernel 'number to keep' if installed
if [[ $dnfNBK -gt $NBK ]] || $dnfmsg; then
NBK=$dnfNBK
- dnfmssg="${InfoCol}$(i18n "INFO: Number to keep is restricted to ")${dnfNBK}$(i18n ", by the dnf 'installonly_limit' set in /etc/dnf/dnf.conf")${Normal}"
+ dnfmssg="${InfoCol}$(i18n "INFO: Number to keep is restricted to ")${dnfNBK}\
+ $(i18n ", by the dnf 'installonly_limit' set in /etc/dnf/dnf.conf")${Normal}"
fi
# Get info for status message
@@ -272,7 +273,8 @@ TMPKTR=$(mktemp)
OCCDISK1=$(df -B 1M -l --output=used / | tail -n1 | awk '{ print $1 }')
# Pad translated strings for column 2
- keepstr=$(i18n "Keep"); remstr=$(i18n "Remove")
+ keepstr=$(i18n "Keep")
+ remstr=$(i18n "Remove")
if [[ ${#keepstr} != ${#remstr} ]]; then
if [[ ${#keepstr} > ${#remstr} ]]; then
while (( ${#remstr} < ${#keepstr} )); do remstr="${remstr} "; done
@@ -290,7 +292,8 @@ NK=$(ls /boot/vmlinuz*.mga* | wc -l)
#================================ Show status ==============================
-echo -e "${HdBgCol} System: $(cat /etc/mageia-release) | $(i18n "Kernels in") /boot/:${NK} | AUTO:$autostat | $(i18n "KEEP"):$NBK ${qamssg}${cfgmssg}${Normal} "
+echo -e "${HdBgCol} System: $(cat /etc/mageia-release) | $(i18n "Kernels in") /boot/:${NK} | \
+AUTO:$autostat | $(i18n "KEEP"):$NBK ${qamssg}${cfgmssg}${Normal} "
#================================= Analyse rpms =============================
# Get master list from rpm -qa --last
@@ -445,7 +448,9 @@ if [[ ${nbt} -ne 0 ]] ; then
echo -e "\n${KeepCol}>> $(i18n "Test mode is on - kernels will not be removed") <<${Normal}"
fi
plural="s"; [[ ${nbt} -eq 1 ]] && plural=""
- read -p "$(i18n "Remove") ${nbt} $(i18n "kernel${plural}") ? $(i18n "y/N/i (i=confirm for each)") " -n 1 response
+ read -p "$(i18n "Remove") \
+ ${nbt} $(i18n "kernel${plural}") ?\
+ $(i18n "y/N/i (i=confirm for each)") " -n 1 response
if [[ -z ${response} ]] ; then response="n" ; fi
case ${response} in
[Yy])
@@ -471,7 +476,8 @@ if [[ ${nbt} -ne 0 ]] ; then
for installedKernelPackage in $(tac ${TMPKTR}) ; do
if [[ ${MODE} = "I" ]] ; then # --- interactive mode ---
- read -p "$(i18n "Remove") ${installedKernelPackage} ? $(i18n "y/N/q (q=quit)") " -n 1 response
+ read -p "$(i18n "Remove") ${installedKernelPackage} ? \
+ $(i18n "y/N/q (q=quit)") " -n 1 response
echo -e " \n"
if [[ -z ${response} ]]; then
response="N"
@@ -508,7 +514,9 @@ if [[ ${nbt} -ne 0 ]] ; then
done
NK=$(ls /boot/vmlinuz*.mga[0-9] | wc -l)
OCCDISK2=$(df -B 1M -l --output=used / | tail -n1 | awk '{ print $1 }')
- echo -e "${HdBgCol} $(i18n "Gain") : $((OCCDISK1 - OCCDISK2)) MB - $(i18n "Kernels in") /boot/: ${NK} ${Normal}"
+ echo -e "${HdBgCol} $(i18n "Gain") \
+ : $((OCCDISK1 - OCCDISK2)) MB - \
+ $(i18n "Kernels in") /boot/: ${NK} ${Normal}"
fi
[[ $MODE == "I" ]] && { i18n "Tap spacebar to exit"; read -n1; echo -en "${ClearLine}"; }