changeset 25:830b2ccf349d i18n

Added more strings.
author syzler
date Sat, 16 Apr 2011 17:14:41 +0000
parents ed1d946e5df5
children 78de94c99487
files MyLilPony.lua
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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"]);