diff SecureMenu.lua @ 65:60871b43531d

Add localization
author contrebasse
date Fri, 13 May 2011 02:17:52 +0200
parents 4e6492b19f4c
children 4f9fd025112b
line wrap: on
line diff
--- a/SecureMenu.lua	Wed May 11 19:03:02 2011 +0200
+++ b/SecureMenu.lua	Fri May 13 02:17:52 2011 +0200
@@ -195,7 +195,7 @@
 end
 
 local function WarnNotMakable(btn)
-	A.Error("You do not have enough ["..btn.itemNameString.."] to craft ["..TitleText:GetText().."]")
+	A.Error(L["You do not have enough [%s] to craft [%s]"]:format(btn.itemNameString,TitleText:GetText()))
 end
 
 -- Update counts and button actions