vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --[[
2 Informant
3 An addon for World of Warcraft that shows pertinent information about
4 an item in a tooltip when you hover over the item in the game.
5  
6 3.8.0 (Kangaroo)
7 $Id: InfLocale.lua 632 2005-12-18 14:36:34Z norganna $
8  
9 Localization routines
10  
11 License:
12 This program is free software; you can redistribute it and/or
13 modify it under the terms of the GNU General Public License
14 as published by the Free Software Foundation; either version 2
15 of the License, or (at your option) any later version.
16  
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21  
22 You should have received a copy of the GNU General Public License
23 along with this program(see GLP.txt); if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 ]]
26  
27 Informant_CustomLocalizations = {
28 }
29  
30 function _INFM(stringKey, locale)
31 if (locale) then
32 if (type(locale) == "string") then
33 return Babylonian.FetchString(InformantLocalizations, locale, stringKey);
34 else
35 return Babylonian.FetchString(InformantLocalizations, GetLocale(), stringKey);
36 end
37 elseif (Informant_CustomLocalizations[stringKey]) then
38 return Babylonian.FetchString(InformantLocalizations, Informant_CustomLocalizations[stringKey])
39 else
40 return Babylonian.GetString(InformantLocalizations, stringKey)
41 end
42 end
43