Quantcast

Started using positional parameters in string.format

Kevin Lyles [06-21-10 - 03:37]
Started using positional parameters in string.format
Filename
Locales/enUS/base.lua
Upgrade.lua
diff --git a/Locales/enUS/base.lua b/Locales/enUS/base.lua
index e1271fb..92c0d16 100644
--- a/Locales/enUS/base.lua
+++ b/Locales/enUS/base.lua
@@ -131,7 +131,7 @@ L["UPGRADE_ERR_NO_FUNC_TBL"] = "WeightsWatcher: error: no %s function table foun
 L["LOADING_DEFAULTS"] = "WeightsWatcher: no %s data found, loading defaults."
 L["account"] = "account"
 L["character"] = "character"
-L["UPGRADE_ATTEMPT"] = "WeightsWatcher: attempting to %s %s data from version %d%s%d to %d%s%d."
+L["UPGRADE_ATTEMPT"] = "WeightsWatcher: attempting to %s %s data from version %d%s%d to %d%4$s%7$d."
 L["UPGRADE_ERR_NO_PATH"] = "WeightsWatcher: error: No %s data %s path found."
 L["UPGRADE_ERR_GENERIC"] = "WeightsWatcher: %s data %s error."
 L["UPGRADE_ERR_INF_LOOP"] = "WeightsWatcher: error: infinite loop in %s data %s."
diff --git a/Upgrade.lua b/Upgrade.lua
index e2c464b..f48543b 100644
--- a/Upgrade.lua
+++ b/Upgrade.lua
@@ -1115,7 +1115,7 @@ function WeightsWatcher.Upgrade(dataType)
 	if oldMajorVersion == 0 and oldMinorVersion == 0 then
 		print(string.format(L["LOADING_DEFAULTS"], dataType))
 	else
-		print(string.format(L["UPGRADE_ATTEMPT"], direction, dataType, oldMajorVersion, L["DECIMAL_SEPARATOR"], oldMinorVersion, newMajorVersion, L["DECIMAL_SEPARATOR"], newMinorVersion))
+		print(string.format(L["UPGRADE_ATTEMPT"], direction, dataType, oldMajorVersion, L["DECIMAL_SEPARATOR"], oldMinorVersion, newMajorVersion, newMinorVersion))
 	end

 	local newVars = ww_deepTableCopy(vars)