Fix language support
This commit is contained in:
parent
27494b7cb5
commit
30b7317fee
|
@ -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."]
|
||||||
|
@ -1226,7 +1226,7 @@ proc ::rmupdate::install_firmware {{download_url ""} {version ""} {lang ""} {reb
|
||||||
if {! [is_system_upgradeable]} {
|
if {! [is_system_upgradeable]} {
|
||||||
error [i18n "System not upgradeable."]
|
error [i18n "System not upgradeable."]
|
||||||
}
|
}
|
||||||
|
|
||||||
set firmware_image ""
|
set firmware_image ""
|
||||||
if {$version == ""} {
|
if {$version == ""} {
|
||||||
set_running_installation "Firmware unknown"
|
set_running_installation "Firmware unknown"
|
||||||
|
|
Loading…
Reference in New Issue