Display current version in version check

This commit is contained in:
Koen Verheyen 2018-06-29 16:41:50 +02:00
parent 45dcc43392
commit 7939784d1b
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ module Vagrant
ui = Vagrant::UI::Prefixed.new(env.ui, "vagrant")
if latest_version > installed_version
@logger.info("new version of Vagrant available - #{latest_version}")
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version))
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version, installed_version: installed_version))
env.ui.info("")
else
@logger.debug("vagrant is currently up to date")

View File

@ -311,7 +311,7 @@ en:
Vagrant was unable to check for the latest version of Vagrant.
Please check manually at https://www.vagrantup.com
version_upgrade_available: |-
A new version of Vagrant is available: %{latest_version}!
A new version of Vagrant is available: %{latest_version} (installed version: ${installed_version})!
To upgrade visit: https://www.vagrantup.com/downloads.html
version_upgrade_howto: |-