vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --[[
2 Auctioneer Addon for World of Warcraft(tm).
3 Version: 3.9.0.1000 (Kangaroo)
4 Revision: $Id: AucLocale.lua 675 2006-01-05 19:33:38Z mentalpower $
5  
6 AucLocale
7 Functions for localizing Auctioneer
8 Thanks to Telo for the LootLink code from which this was based.
9  
10 License:
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
15  
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20  
21 You should have received a copy of the GNU General Public License
22 along with this program(see GPL.txt); if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 ]]
25  
26 Auctioneer_CustomLocalizations = {
27 ['TextGeneral'] = GetLocale(),
28 ['TextCombat'] = GetLocale(),
29 }
30  
31 function _AUCT(stringKey, locale)
32 if (locale) then
33 if (type(locale) == "string") then
34 return Babylonian.FetchString(AuctioneerLocalizations, locale, stringKey);
35 else
36 return Babylonian.FetchString(AuctioneerLocalizations, GetLocale(), stringKey);
37 end
38 elseif (Auctioneer_CustomLocalizations[stringKey]) then
39 return Babylonian.FetchString(AuctioneerLocalizations, Auctioneer_CustomLocalizations[stringKey], stringKey)
40 else
41 local str = Babylonian.GetString(AuctioneerLocalizations, stringKey)
42 if (not str) then return stringKey end
43 return str
44 end
45 end
46