From 0cf214cc1938ab11295e32a6b7a4e28691df94ce Mon Sep 17 00:00:00 2001 From: Barry Jackson Date: Mon, 16 Jan 2023 20:57:37 +0000 Subject: - prefix LANGUAGE with $LANG to fix i18n issues - update man page now log file is not removed on package removal - update Norweigian translation file --- locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo | Bin 6153 -> 6233 bytes remove-old-kernels | 3 ++- remove-old-kernels.1 | 2 -- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo b/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo index 3485380..80cf531 100644 Binary files a/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo and b/locale/nb_NO.UTF-8/LC_MESSAGES/remove-old-kernels.mo differ diff --git a/remove-old-kernels b/remove-old-kernels index 4684dfb..f78a4a7 100755 --- a/remove-old-kernels +++ b/remove-old-kernels @@ -15,7 +15,8 @@ NBK=3 # Default number of kernels to keep. DEBUG=0 # 1 for test mode, urpme is simulated and not applied MODE="I" # mode A)utomatic, I)nteractve (DO NOT CHANGE THIS) VISU=0 # If VISU=1, show commands which can be used -LANG=$(echo $LANGUAGE|cut -d: -f1) +#LANG=$(echo $LANGUAGE|cut -d: -f1) +LANGUAGE="${LANG}:${LANGUAGE}" # Colours for display Defaults Used for Normal="\e[0m" # System default f/g colour diff --git a/remove-old-kernels.1 b/remove-old-kernels.1 index 080b556..978e1e5 100644 --- a/remove-old-kernels.1 +++ b/remove-old-kernels.1 @@ -30,8 +30,6 @@ This is a good way to make a quick check without any risk of error. \fBIn automatic mode a log is kept at /var/log/remove-old-kernels.log. The log is limited to 1000 lines (up to a year) and will then start to remove the oldest entries whilst adding new ones. See the -l option to view the log. .br -NOTE: If the 'remove old kernels' package is uninstalled, then the log will also be removed, -so if you need it, you must make a backup of /var/log/remove-old-kernels.log before uninstalling. .SH DISPLAY -- cgit v1.2.1