1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

Fix language support

This commit is contained in:
Jan Schneider 2018-03-24 00:57:13 +01:00
parent 27494b7cb5
commit 30b7317fee

View File

@ -1217,8 +1217,8 @@ proc ::rmupdate::delete_firmware_image {version} {
proc ::rmupdate::install_firmware {{download_url ""} {version ""} {lang ""} {reboot 1} {keep_download 0} {dryrun 0}} { proc ::rmupdate::install_firmware {{download_url ""} {version ""} {lang ""} {reboot 1} {keep_download 0} {dryrun 0}} {
variable language variable language
if {$lang != ""} { if {[regexp {^([a-z]][a-z])} $lang match l]} {
set language $lang set language [string tolower $l]
} }
if {[get_running_installation] != ""} { if {[get_running_installation] != ""} {
error [i18n "Another install process is running."] error [i18n "Another install process is running."]