mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
Proper data items in locale, resolves #34
This commit is contained in:
+3
-2
@@ -42,7 +42,7 @@ function OpenShopMenu(zone)
|
||||
end
|
||||
|
||||
table.insert(elements, {
|
||||
label = item.label .. ' - <span style="color: green;">$' .. ESX.Math.GroupDigits(item.price) .. '</span>',
|
||||
label = ('%s - <span style="color:green;">%s</span>'):format(item.label, _U('shop_item', ESX.Math.GroupDigits(item.price))),
|
||||
label_real = item.label,
|
||||
item = item.item,
|
||||
price = item.price,
|
||||
@@ -62,7 +62,7 @@ function OpenShopMenu(zone)
|
||||
elements = elements
|
||||
}, function(data, menu)
|
||||
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'shop_confirm', {
|
||||
title = _U('shop_confirm', data.current.value, data.current.label_real, data.current.price * data.current.value),
|
||||
title = _U('shop_confirm', data.current.value, data.current.label_real, ESX.Math.GroupDigits(data.current.price * data.current.value)),
|
||||
align = 'bottom-right',
|
||||
elements = {
|
||||
{label = _U('no'), value = 'no'},
|
||||
@@ -79,6 +79,7 @@ function OpenShopMenu(zone)
|
||||
end)
|
||||
end, function(data, menu)
|
||||
menu.close()
|
||||
|
||||
CurrentAction = 'shop_menu'
|
||||
CurrentActionMsg = _U('press_menu')
|
||||
CurrentActionData = {zone = zone}
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['br'] = {
|
||||
['shop'] = 'comprar',
|
||||
['shops'] = 'lojas',
|
||||
['press_menu'] = 'pressione ~INPUT_CONTEXT~ para acessar a loja.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'você acabou de comprar ~y~%sx~s~ ~b~%s~s~ por ~r~$%s~s~',
|
||||
['not_enough'] = 'você não tem ~r~dinheiro suficiente~s~: %s',
|
||||
['player_cannot_hold'] = 'você ~r~não~s~ tem bastante ~y~espaço livre~s~ no seu inventário!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['de'] = {
|
||||
['shop'] = 'geschäft',
|
||||
['shops'] = 'geschäfte',
|
||||
['press_menu'] = 'drücke ~INPUT_CONTEXT~ um auf das Geschäft zuzugreifen.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
|
||||
['not_enough'] = 'du ~r~hast nicht~s~ genug geld: %s',
|
||||
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['en'] = {
|
||||
['shop'] = 'shop',
|
||||
['shops'] = 'shops',
|
||||
['press_menu'] = 'press ~INPUT_CONTEXT~ to access the ~y~store~s~.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
|
||||
['not_enough'] = 'you do not have ~r~enough~s~ money, you\'re ~y~missing~s~ ~r~$%s~s~!',
|
||||
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['es'] = {
|
||||
['shop'] = 'tienda',
|
||||
['shops'] = 'tiendas',
|
||||
['press_menu'] = 'presiona ~INPUT_CONTEXT~ para acceder a la tienda.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
|
||||
['not_enough'] = 'no tienes ~r~suficiente ~s~ dinero: %s',
|
||||
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['fi'] = {
|
||||
['shop'] = 'kauppa',
|
||||
['shops'] = 'kaupat',
|
||||
['press_menu'] = 'paina ~INPUT_CONTEXT~ ostaaksesi jotain ~y~kaupasta~s~.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'Sinä ostit juuri ~y~%sx~s~ ~b~%s~s~. Summaksi tuli ~r~$%s~s~',
|
||||
['not_enough'] = 'sinulla ei ole ~r~tarpeeksi~s~ rahaa, sinulta ~y~puuttuu~s~ ~r~$%s~s~!',
|
||||
['player_cannot_hold'] = 'sinulla ~r~ei ole~s~ tarpeeksi ~y~tilaa~s~ repussasi!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['fr'] = {
|
||||
['shop'] = 'magasin',
|
||||
['shops'] = 'magasins',
|
||||
['press_menu'] = 'appuyez sur ~INPUT_CONTEXT~ pour accéder au magasin.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
|
||||
['not_enough'] = 'vous n\'avez ~r~pas assez~s~ d\'argent: %s',
|
||||
['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['pl'] = {
|
||||
['shop'] = 'sklep',
|
||||
['shops'] = 'sklepy',
|
||||
['press_menu'] = 'naciśnij ~INPUT_CONTEXT~ żeby wejść do ~y~sklepu~s~.',
|
||||
['shop_item'] = '$%s',
|
||||
['bought'] = 'właśnie zakupiłeś ~y~%s~s~ x ~b~%s~s~ za ~g~%s $~s~',
|
||||
['not_enough'] = 'nie masz ~r~wystarczjąco~s~ pięniędzy, ~y~Brakuje Ci~s~ ~r~$%s~s~!',
|
||||
['player_cannot_hold'] = '~r~Nie~s~ masz wystarczająco ~y~wolnego miejsca~s~ w swoim ekwipunku!',
|
||||
|
||||
@@ -2,6 +2,7 @@ Locales['sv'] = {
|
||||
['shop'] = 'affär',
|
||||
['shops'] = 'affärer',
|
||||
['press_menu'] = 'tryck ~INPUT_CONTEXT~ för att ~y~handla prylar~s~.',
|
||||
['shop_item'] = '%s SEK',
|
||||
['bought'] = 'du har köpt ~y~%sx~s~ ~b~%s~s~ för ~r~%s SEK~s~',
|
||||
['not_enough'] = 'du har inte ~r~tillräckligt~s~ med pengar, det ~y~saknas~s~ ~r~%s SEK~s~!',
|
||||
['player_cannot_hold'] = 'du har ~r~inte~s~ tillräckligt med ~y~utrymme~s~ för att hålla det!',
|
||||
|
||||
Reference in New Issue
Block a user