Mercurial > wow > mylilpony
changeset 22:7bc67e937603 i18n
First pass i18n support.
author | syzler |
---|---|
date | Sat, 16 Apr 2011 16:54:29 +0000 |
parents | 99f6be0c99fc |
children | ed1d946e5df5 |
files | MyLilPony.lua MyLilPony.toc locales/enUS.lua locales/frFR.lua |
diffstat | 4 files changed, 98 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/MyLilPony.lua Sat Apr 16 15:52:31 2011 +0000 +++ b/MyLilPony.lua Sat Apr 16 16:54:29 2011 +0000 @@ -187,18 +187,18 @@ end else MyLilPony.Print(format("MyLilPony %s", MYLILPONY_VERSION)); - MyLilPony.Print("Slash Command: /mylilpony (/pony, /mlp)"); - MyLilPony.Print(" /mylilpony auto - Summons a \"suitable\" mount"); - MyLilPony.Print(" /mylilpony random - Summons random mount"); - MyLilPony.Print(" /mylilpony ground - Summons random ground mount"); - MyLilPony.Print(" /mylilpony flying - Summons random flying mount"); - MyLilPony.Print(" /mylilpony aquatic - Summons random aquatic mount"); - MyLilPony.Print(" /mylilpony match - Summons same mount as targeted unit"); - MyLilPony.Print(" /mylilpony [@<UNITID>] match - Summons same mount as specified unit"); - MyLilPony.Print(" /mylilpony list <NAME> - Lists mounts matching name"); - MyLilPony.Print(" /mylilpony exact <NAME> - Summons mount by exact name"); - MyLilPony.Print(" /mylilpony <ID> - Summons mount by spell or creature ID"); - MyLilPony.Print(" /mylilpony <NAME> - Summons random mount matching name"); + MyLilPony.Print(L["szSlashCommand"]..": /mylilpony (/pony, /mlp)"); + MyLilPony.Print(" /mylilpony auto - "..L["msgHelpCommandAuto"]); + MyLilPony.Print(" /mylilpony random - "..L["msgHelpCommandRandom"]); + MyLilPony.Print(" /mylilpony ground - "..L["msgHelpCommandGround"]); + MyLilPony.Print(" /mylilpony flying - "..L["msgHelpCommandFlying"]); + MyLilPony.Print(" /mylilpony aquatic - "..L["msgHelpCommandAquatic"]); + MyLilPony.Print(" /mylilpony match - "..L["msgHelpCommandTarget"]); + MyLilPony.Print(" /mylilpony [@<UNITID>] match - "..L["msgHelpCommandMatch"]); + MyLilPony.Print(" /mylilpony list <NAME> - "..L["msgHelpCommandList"]); + MyLilPony.Print(" /mylilpony exact <NAME> - "..L["msgHelpCommandExact"]); + MyLilPony.Print(" /mylilpony <ID> - "..L["msgHelpCommandId"]); + MyLilPony.Print(" /mylilpony <NAME> - "..L["msgHelpCommandName"]); end end
--- a/MyLilPony.toc Sat Apr 16 15:52:31 2011 +0000 +++ b/MyLilPony.toc Sat Apr 16 16:54:29 2011 +0000 @@ -12,4 +12,6 @@ libMyLilPony\libMyLilPony_miscFunctions.lua # MyLilPony +locales\enUS.lua +locales\frFR.lua MyLilPony.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locales/enUS.lua Sat Apr 16 16:54:29 2011 +0000 @@ -0,0 +1,41 @@ +-- Copyright (c) 2011, Syzler +-- All rights reserved. +-- +-- Redistribution and use in source and binary forms, with or without +-- modification, are permitted provided that the following conditions +-- are met: +-- +-- * Redistributions of source code must retain the above copyright +-- notice, this list of conditions and the following disclaimer. +-- * Redistributions in binary form must reproduce the above copyright +-- notice, this list of conditions and the following disclaimer in +-- the documentation and/or other materials provided with the +-- distribution. +-- * Neither the name of the MyLilPony Project nor the names of its +-- contributors may be used to endorse or promote products derived +-- from this software without specific prior written permission. +-- +-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +-- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +-- COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +-- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +-- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +-- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +-- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +-- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +-- POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------------------------ +-- Project: MyLilPony +-- Project Version: @project-version@ +-- Last Author: @file-author@ +-- Last Updated: @file-date-iso@ +-- +-- en-us localizations for main addon +-- This file is auto-generated using the Curse Localization App +------------------------------------------------------------------------ + +@localization(locale="enUS", format="lua_additive_table", table-name="L", namespace="", handle-subnamespaces="none")@;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/locales/frFR.lua Sat Apr 16 16:54:29 2011 +0000 @@ -0,0 +1,43 @@ +-- Copyright (c) 2011, Syzler +-- All rights reserved. +-- +-- Redistribution and use in source and binary forms, with or without +-- modification, are permitted provided that the following conditions +-- are met: +-- +-- * Redistributions of source code must retain the above copyright +-- notice, this list of conditions and the following disclaimer. +-- * Redistributions in binary form must reproduce the above copyright +-- notice, this list of conditions and the following disclaimer in +-- the documentation and/or other materials provided with the +-- distribution. +-- * Neither the name of the MyLilPony Project nor the names of its +-- contributors may be used to endorse or promote products derived +-- from this software without specific prior written permission. +-- +-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +-- FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +-- COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +-- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +-- BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +-- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +-- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +-- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +-- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +-- POSSIBILITY OF SUCH DAMAGE. + +------------------------------------------------------------------------ +-- Project: MyLilPony +-- Project Version: @project-version@ +-- Last Author: @file-author@ +-- Last Updated: @file-date-iso@ +-- +-- fr-FR localizations for main addon +-- This file is auto-generated using the Curse Localization App +------------------------------------------------------------------------ + +if GetLocale() == "frFR" then + @localization(locale="frFR", format="lua_additive_table", table-name="L", namespace="", handle-subnamespaces="none")@; +end