# HG changeset patch # User syzler # Date 1302972869 0 # Node ID 7bc67e93760385df381bbaa31645f51836e0be1b # Parent 99f6be0c99fcc96d6707dbec0d6235722c79e835 First pass i18n support. diff -r 99f6be0c99fc -r 7bc67e937603 MyLilPony.lua --- 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 [@] match - Summons same mount as specified unit"); - MyLilPony.Print(" /mylilpony list - Lists mounts matching name"); - MyLilPony.Print(" /mylilpony exact - Summons mount by exact name"); - MyLilPony.Print(" /mylilpony - Summons mount by spell or creature ID"); - MyLilPony.Print(" /mylilpony - 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 [@] match - "..L["msgHelpCommandMatch"]); + MyLilPony.Print(" /mylilpony list - "..L["msgHelpCommandList"]); + MyLilPony.Print(" /mylilpony exact - "..L["msgHelpCommandExact"]); + MyLilPony.Print(" /mylilpony - "..L["msgHelpCommandId"]); + MyLilPony.Print(" /mylilpony - "..L["msgHelpCommandName"]); end end diff -r 99f6be0c99fc -r 7bc67e937603 MyLilPony.toc --- 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 diff -r 99f6be0c99fc -r 7bc67e937603 locales/enUS.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")@; diff -r 99f6be0c99fc -r 7bc67e937603 locales/frFR.lua --- /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