# HG changeset patch # User syzler # Date 1302974081 0 # Node ID 830b2ccf349d789fe2f54d7441235fe293bcaa83 # Parent ed1d946e5df5bd6096073e79438e9ad3d079baaa Added more strings. diff -r ed1d946e5df5 -r 830b2ccf349d MyLilPony.lua --- a/MyLilPony.lua Sat Apr 16 17:08:09 2011 +0000 +++ b/MyLilPony.lua Sat Apr 16 17:14:41 2011 +0000 @@ -43,7 +43,7 @@ SLASH_MyLilPony2 = "/mlp"; SLASH_MyLilPony3 = "/mylilpony"; - MyLilPony.Log(format("Version %s loaded", MYLILPONY_VERSION)); + MyLilPony.Log(format(L["msgVersionLoaded"], MYLILPONY_VERSION)); MyLilPony.LoadDefaults(); end @@ -53,22 +53,22 @@ function MyLilPony.AutoMount() if UnitIsDead("player") or UnitIsGhost("player") then - MyLilPony.Log("You are dead"); + MyLilPony.Log(L["msgYouAreDead"]); return; end if InCombatLockdown() then - MyLilPony.Log("You are in combat"); + MyLilPony.Log(L["msgYouAreInCombat"]); return; end if IsMounted() and not MyLilPony.AutoDismount then - MyLilPony.Log("You are already mounted"); + MyLilPony.Log(L["msgYouAreMounted"]); return; end if IsMounted() and IsFlying() then - MyLilPony.Log("You are already flying"); + MyLilPony.Log(L["msgYouAreFlying"]); return; end @@ -154,14 +154,14 @@ if unit == "" or unit == nil then unit = "target" end local result = MyLilPony.CallMountByMatch(unit); if not result then - MyLilPony.Log("No matching mounts were found"); + MyLilPony.Log(L["msgNoMatchingMountsFound"]); end elseif MyLilPony.StringMatchIgnoreCase(arg, "^exact .+$") or MyLilPony.StringMatchIgnoreCase(arg, "^x .+$") then local param = MyLilPony.StringMatchIgnoreCase(arg, "^.+ (.+)$"); local result = MyLilPony.CallMountByName(param); if not result then - MyLilPony.Log(format("No matching mounts were found with NAME='%s'", param)); + MyLilPony.Log(format(L["msgNoMatchingMountsForName"], param)); end elseif MyLilPony.StringMatchIgnoreCase(arg, "^list .+$") or MyLilPony.StringMatchIgnoreCase(arg, "^find .+$") @@ -169,7 +169,7 @@ local param = MyLilPony.StringMatchIgnoreCase(arg, "^.+ (.+)$"); local result = MyLilPony.ListMountsByPattern(param); if not result then - MyLilPony.Log(format("No matching mounts were found with NAME like '%s'", param)); + MyLilPony.Log(format(L["msgNoMatchingMountsForPattern"], param)); else for _, name in pairs(result) do MyLilPony.Print(name); @@ -178,16 +178,16 @@ elseif MyLilPony.StringMatchIgnoreCase(arg, "^%d+$") then local result = MyLilPony.CallMountById(tonumber(arg)); if not result then - MyLilPony.Log(format("No matching mounts were found with ID=%s", arg)); + MyLilPony.Log(format(L["msgNoMatchingMountsForId"], arg)); end elseif MyLilPony.StringMatchIgnoreCase(arg, "^.+$") then local result = MyLilPony.CallMountByPattern(arg); if not result then - MyLilPony.Log(format("No matching mounts were found with NAME like '%s'", arg)); + MyLilPony.Log(format(L["msgNoMatchingMountsForPattern"], arg)); end else MyLilPony.Print(format("MyLilPony %s", MYLILPONY_VERSION)); - MyLilPony.Print(L["szSlashCommand"]..": /mylilpony (/pony, /mlp)"); + MyLilPony.Print(L["szCommandHelp"].." (/mylilpony, /pony, /mlp)"); MyLilPony.Print(" /mylilpony auto - "..L["msgHelpCommandAuto"]); MyLilPony.Print(" /mylilpony random - "..L["msgHelpCommandRandom"]); MyLilPony.Print(" /mylilpony ground - "..L["msgHelpCommandGround"]);