--------------------------------------------------------------------------------------------------
-- Locales
--------------------------------------------------------------------------------------------------
local locales = {
  ["rus"] = { -- русский
    ["btSetMsg01"] = "[лкм] - настройки",
    ["btSetMsg02"] = "[пкм] - добавить лот",
    ["btSetMsg03"] = "[лкм+shift] - открыть окно лота",
    ["btSetMsg04"] = "[лкм+ctrl] - автовыставление",
    
    ["winMainMsg01"] = "имя",
    ["winMainMsg02"] = "цена",
    ["winMainMsg03"] = "действие",
    ["winMainMsg04"] = "новый",
    ["winMainMsg05"] = "настройки",
    ["winMainMsg06"] = "ред",
    ["winMainMsg07"] = "уд",
    
    ["winSellMsg01"] = "название:",
    ["winSellMsg02"] = "цена выкупа:",
    ["winSellMsg03"] = "ставка:",
    ["winSellMsg04"] = "дельта ставки:",
    ["winSellMsg05"] = "%",
    ["winSellMsg06"] = "цена за:",
    ["winSellMsg07"] = "шт",
    ["winSellMsg08"] = "разделить на:",
    ["winSellMsg09"] = "пропустить 1-ый стек?",
    ["winSellMsg10"] = "учитывать 5% комиссии?",
    ["winSellMsg11"] = "базовый курс:",
    ["winSellMsg12"] = "г",
    ["winSellMsg13"] = "время аукциона:",
    ["winSellMsg14"] = "выставлять автоматически?",
    ["winSellMsg15"] = "добавить",
    ["winSellMsg16"] = "продажа",
    ["winSellMsg17"] = "выставить лот",
    ["winSellMsg18"] = "выкуп:",
    ["winSellMsg19"] = "кри",
    ["winSellMsg20"] = "кол-во:",
    ["winSellMsg21"] = "на руки (-5%):",
    ["winSellMsg22"] = "часов",
    ["winSellMsg23"] = "часа",
    ["winSellMsg24"] = "Предмет",
    ["winSellMsg25"] = "разделен",
    ["winSellMsg26"] = "выставлен на аукцион",
    ["winSellMsg27"] = "Вы не ввели название предмета!",
    ["winSellMsg28"] = "Цена ставки не может быть больше цены выкупа!",
    ["winSellMsg29"] = "Внимание!!! Предмет с таким названием имеется в базе. Данные о предмете обновлены!",
    ["winSellMsg30"] = "Предмет добавлен!",
    ["winSellMsg31"] = "Предмет обновлен!",
    ["winSellMsg32"] = "Шаблон применен",
    ["winSellMsg33"] = "Шаблон отсутствует!",
    ["winSellMsg34"] = "обновить",
    ["winSellMsg35"] = "Для удаления нажмите лкм+shift или пкм",
    ["winSellMsg36"] = "Шаблон сохранен",
    ["winSellMsg37"] = "Форма очищена",
    
    ["winSellTooltip01"] = "Наименование предмета. Обратите внимание на ковычки (\" ' «). На данный момент нет проверки на ввод содержимого",
    ["winSellTooltip02"] = "Базовая Цена выкупа без учета коэффициентов. Можно указать как в кри, так и золоте. Кликни на монетку",
    ["winSellTooltip03"] = "Ставка для выкупа предмета. Если указана дельта ставки, то считается автоматически",
    ["winSellTooltip04"] = "Величина для расчета ставки выкупа предмета. Считается как Цена выкупа минус процент, но не более",
    ["winSellTooltip05"] = "г",
    ["winSellTooltip06"] = "За какое количество указана цена выкупа. Для вычисления за единицу предмета и назначения цены за стак",
    ["winSellTooltip07"] = "ПКМ по кнопке \"выставить лот\" можно разделить стак.",
    ["winSellTooltip08"] = "Позволяет пропустить первый предмет в сумке",
    ["winSellTooltip09"] = "Прибавит 5% к указанной Цене выкупа (Пока считает приблизительно)",
    ["winSellTooltip10"] = "Курс кри. В зависимости от текущего курса будет увеличивать или уменьшать Цену выкупа. 0 или пусто - не учитывать при расчете",
    ["winSellTooltip11"] = "Срок действия аукциона",
    ["winSellTooltip12"] = "При наличии предмета в сумке будет выставлять его автоматически. Запуск лкм+ctrl по кнопке настроек.",
    ["winSellTooltip13"] = "Добавить/обновить лот в базе аддона. пкм - очистить форму. лкм+shift - загрузить шаблон. пкм+shift - сохранить шаблон",
    ["winSellTooltip14"] = "Выставить лот на аукцион. пкм - отделить от стека указанную часть",
    ["winSellTooltip15"] = "Выставить лот на аукцион. пкм - отделить от стека указанную часть",
    ["winSellTooltip16"] = "Закрыть окно",
    
    ["winMainTooltip01"] = "Открыть окно для добавления нового лота в базу",
    ["winMainTooltip02"] = "Редактировать лот в базе. пкм - предпросмотр (развернутый)",
    ["winMainTooltip03"] = "лкм+shift или пкм - удалить лот из базы",
    ["winMainTooltip04"] = "Наименование предмета в базе",
    ["winMainTooltip05"] = "Цена выкупа предмета в базе",
    ["winMainTooltip06"] = "Действия с предметом в базе",
    ["winMainTooltip07"] = "Закрыть окно",
  },
  ["eng"] = { -- английский
    ["btSetMsg01"] = "[lbm] - settings",
    ["btSetMsg02"] = "[rbm] - add a lot",
    ["btSetMsg03"] = "[lbm+shift] - open the lot window",
    ["btSetMsg04"] = "[lbm+ctrl] - auto-presentation",
    
    ["winMainMsg01"] = "name",
    ["winMainMsg02"] = "price",
    ["winMainMsg03"] = "action",
    ["winMainMsg04"] = "new",
    ["winMainMsg05"] = "settings",
    ["winMainMsg06"] = "edit",
    ["winMainMsg07"] = "del",
    
    ["winSellMsg01"] = "title:",
    ["winSellMsg02"] = "buyout price:",
    ["winSellMsg03"] = "bet:",
    ["winSellMsg04"] = "delta bids:",
    ["winSellMsg05"] = "%",
    ["winSellMsg06"] = "price pay for:",
    ["winSellMsg07"] = "pcs",
    ["winSellMsg08"] = "divide by:",
    ["winSellMsg09"] = "skip 1-st stack?",
    ["winSellMsg10"] = "take into account the 5% commission?",
    ["winSellMsg11"] = "basic course:",
    ["winSellMsg12"] = "g",
    ["winSellMsg13"] = "auction time:",
    ["winSellMsg14"] = "set automatically?",
    ["winSellMsg15"] = "add",
    ["winSellMsg16"] = "sale",
    ["winSellMsg17"] = "put up a lot",
    ["winSellMsg18"] = "redemption:",
    ["winSellMsg19"] = "cri",
    ["winSellMsg20"] = "кол-во:",
    ["winSellMsg21"] = "on your hands (-5%):",
    ["winSellMsg22"] = "hours",
    ["winSellMsg23"] = "hour's",
    ["winSellMsg24"] = "Subject",
    ["winSellMsg25"] = "divided",
    ["winSellMsg26"] = "put up for auction",
    ["winSellMsg27"] = "You didn't enter the name of the item!",
    ["winSellMsg28"] = "The bid price cannot be higher than the redemption price!",
    ["winSellMsg29"] = "Attention!!! An item with this name is available in the database. The item data has been updated!",
    ["winSellMsg30"] = "Item added!",
    ["winSellMsg31"] = "The item has been updated!",
    ["winSellMsg32"] = "Template applied",
    ["winSellMsg33"] = "The template is missing!",
    ["winSellMsg34"] = "update",
    ["winSellMsg35"] = "Для удаления нажмите лкм+shift или пкм",
    ["winSellMsg36"] = "The template is saved",
    ["winSellMsg37"] = "The form is cleared",
    
    ["winSellTooltip01"] = "Name of the item. Pay attention to the buckets (\" ' «). There is no content entry check at the moment",
    ["winSellTooltip02"] = "The base price of the repurchase without taking into account the coefficients. You can specify both in cree and gold. Click on the coin",
    ["winSellTooltip03"] = "The bid for the redemption of the item. If the bid delta is specified, it is calculated automatically",
    ["winSellTooltip04"] = "The value for calculating the redemption rate of the item. It is considered as the redemption price minus a percentage, but no more",
    ["winSellTooltip05"] = "g",
    ["winSellTooltip06"] = "For what quantity the redemption price is indicated. To calculate per item unit and assign a price per stack",
    ["winSellTooltip07"] = "ПКМ using the \"set lot\" button, you can divide the stack.",
    ["winSellTooltip08"] = "Allows you to skip the first item in the bag",
    ["winSellTooltip09"] = "Will add 5% to the specified Redemption Price (While counting approximately)",
    ["winSellTooltip10"] = "The kri course. Depending on the current exchange rate, it will increase or decrease the redemption price. 0 or empty - do not take into account when calculating",
    ["winSellTooltip11"] = "Auction validity period",
    ["winSellTooltip12"] = "If there is an item in the bag, it will set it automatically. Launch lkm+ctrl on the settings button.",
    ["winSellTooltip13"] = "Add/update a lot in the addon database. rbm - clear the form. lkm+shift - load the template. rbm+shift - save template",
    ["winSellTooltip14"] = "Put the lot up for auction. rbm - separate the specified part from the stack",
    ["winSellTooltip15"] = "Put the lot up for auction. rbm - separate the specified part from the stack",
    ["winSellTooltip16"] = "Close the window",
    
    ["winMainTooltip01"] = "Open a window to add a new lot to the database",
    ["winMainTooltip02"] = "Edit the lot in the database. rbm - preview (expanded)",
    ["winMainTooltip03"] = "lkm+shift или rbm - delete a lot from the database",
    ["winMainTooltip04"] = "Name of the item in the database",
    ["winMainTooltip05"] = "The purchase price of the item in the database",
    ["winMainTooltip06"] = "Actions with the subject in the database",
    ["winMainTooltip07"] = "Close the window",
  },
  ["eng_eu"] = { -- английский
    ["btSetMsg01"] = "[lbm] - settings",
    ["btSetMsg02"] = "[rbm] - add a lot",
    ["btSetMsg03"] = "[lbm+shift] - open the lot window",
    ["btSetMsg04"] = "[lbm+ctrl] - auto-presentation",
    
    ["winMainMsg01"] = "name",
    ["winMainMsg02"] = "price",
    ["winMainMsg03"] = "action",
    ["winMainMsg04"] = "new",
    ["winMainMsg05"] = "settings",
    ["winMainMsg06"] = "edit",
    ["winMainMsg07"] = "del",
    
    ["winSellMsg01"] = "title:",
    ["winSellMsg02"] = "buyout price:",
    ["winSellMsg03"] = "bet:",
    ["winSellMsg04"] = "delta bids:",
    ["winSellMsg05"] = "%",
    ["winSellMsg06"] = "price pay for:",
    ["winSellMsg07"] = "pcs",
    ["winSellMsg08"] = "divide by:",
    ["winSellMsg09"] = "skip 1-st stack?",
    ["winSellMsg10"] = "take into account the 5% commission?",
    ["winSellMsg11"] = "basic course:",
    ["winSellMsg12"] = "g",
    ["winSellMsg13"] = "auction time:",
    ["winSellMsg14"] = "set automatically?",
    ["winSellMsg15"] = "add",
    ["winSellMsg16"] = "sale",
    ["winSellMsg17"] = "put up a lot",
    ["winSellMsg18"] = "redemption:",
    ["winSellMsg19"] = "cri",
    ["winSellMsg20"] = "кол-во:",
    ["winSellMsg21"] = "on your hands (-5%):",
    ["winSellMsg22"] = "hours",
    ["winSellMsg23"] = "hour's",
    ["winSellMsg24"] = "Subject",
    ["winSellMsg25"] = "divided",
    ["winSellMsg26"] = "put up for auction",
    ["winSellMsg27"] = "You didn't enter the name of the item!",
    ["winSellMsg28"] = "The bid price cannot be higher than the redemption price!",
    ["winSellMsg29"] = "Attention!!! An item with this name is available in the database. The item data has been updated!",
    ["winSellMsg30"] = "Item added!",
    ["winSellMsg31"] = "The item has been updated!",
    ["winSellMsg32"] = "Template applied",
    ["winSellMsg33"] = "The template is missing!",
    ["winSellMsg34"] = "update",
    ["winSellMsg35"] = "Для удаления нажмите лкм+shift или пкм",
    ["winSellMsg36"] = "The template is saved",
    ["winSellMsg37"] = "The form is cleared",
    
    ["winSellTooltip01"] = "Name of the item. Pay attention to the buckets (\" ' «). There is no content entry check at the moment",
    ["winSellTooltip02"] = "The base price of the repurchase without taking into account the coefficients. You can specify both in cree and gold. Click on the coin",
    ["winSellTooltip03"] = "The bid for the redemption of the item. If the bid delta is specified, it is calculated automatically",
    ["winSellTooltip04"] = "The value for calculating the redemption rate of the item. It is considered as the redemption price minus a percentage, but no more",
    ["winSellTooltip05"] = "g",
    ["winSellTooltip06"] = "For what quantity the redemption price is indicated. To calculate per item unit and assign a price per stack",
    ["winSellTooltip07"] = "ПКМ using the \"set lot\" button, you can divide the stack.",
    ["winSellTooltip08"] = "Allows you to skip the first item in the bag",
    ["winSellTooltip09"] = "Will add 5% to the specified Redemption Price (While counting approximately)",
    ["winSellTooltip10"] = "The kri course. Depending on the current exchange rate, it will increase or decrease the redemption price. 0 or empty - do not take into account when calculating",
    ["winSellTooltip11"] = "Auction validity period",
    ["winSellTooltip12"] = "If there is an item in the bag, it will set it automatically. Launch lkm+ctrl on the settings button.",
    ["winSellTooltip13"] = "Add/update a lot in the addon database. rbm - clear the form. lkm+shift - load the template. rbm+shift - save template",
    ["winSellTooltip14"] = "Put the lot up for auction. rbm - separate the specified part from the stack",
    ["winSellTooltip15"] = "Put the lot up for auction. rbm - separate the specified part from the stack",
    ["winSellTooltip16"] = "Close the window",
    
    ["winMainTooltip01"] = "Open a window to add a new lot to the database",
    ["winMainTooltip02"] = "Edit the lot in the database. rbm - preview (expanded)",
    ["winMainTooltip03"] = "lkm+shift или rbm - delete a lot from the database",
    ["winMainTooltip04"] = "Name of the item in the database",
    ["winMainTooltip05"] = "The purchase price of the item in the database",
    ["winMainTooltip06"] = "Actions with the subject in the database",
    ["winMainTooltip07"] = "Close the window",
  }
}


--------------------------------------------------------------------------------------------------
local localization = common.GetLocalization()


--------------------------------------------------------------------------------------------------
function LString( str )

	if not locales[localization] then return locales["rus"][str] or str end

	-- return locales[localization or "eng"][str] or locales["eng"][str]
	-- return locales[localization][str] or locales["eng"][str]
	return locales[localization][str] or str

end


-- LogInfo( "locales=", LString('Mask') )