Skip to content

Commit

Permalink
Merge pull request #66 from BelligerentBash/bug/fix-locales
Browse files Browse the repository at this point in the history
Bug/fix locales
  • Loading branch information
GhzGarage authored May 30, 2023
2 parents afb26a4 + f1f150e commit 7ea9199
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
16 changes: 8 additions & 8 deletions locales/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ local Translations = {
you_have_exchanged_your_cryptostick_for = 'You have exchanged your Cryptostick for: %{amount} QBit(s)'
},
credit = {
there_are_amount_credited = 'There are %{amount} Qbit(s) credited!',
you_have_qbit_purchased = 'You have %{dataCoins} Qbit(s) purchased!'
there_are_amount_credited = 'You have been credited %{amount} Qbit(s)!',
you_have_qbit_purchased = 'You have purchased %{dataCoins} Qbit(s)!'
},
depreciation = {
you_have_sold = 'You have %{dataCoins} Qbit(s) sold!'
debit = {
you_have_sold = 'You have sold %{dataCoins} Qbit(s)!'
},
text = {
enter_usb = '[E] - Enter USB',
system_is_rebooting = 'System is rebooting - %{rebootInfoPercentage} %',
you_have_not_given_a_new_value = 'You have not given a new value .. Current values: %{crypto}',
this_crypto_does_not_exist = 'This Crypto does not exist :(, available: Qbit',
you_have_not_given_a_new_value = 'You have not given a new value ... Current value: %{crypto}',
this_crypto_does_not_exist = 'This crypto does not exist, available crypto(s): Qbit',
you_have_not_provided_crypto_available_qbit = 'You have not provided Crypto, available: Qbit',
the_qbit_has_a_value_of = 'The Qbit has a value of: %{crypto}',
you_have_with_a_value_of = 'You have: %{playerPlayerDataMoneyCrypto} QBit, with a value of: %{mypocket},-'
the_qbit_has_a_value_of = 'Qbit has a value of: %{crypto}',
you_have_with_a_value_of = 'You have %{playerPlayerDataMoneyCrypto} QBit(s) with a value of: %{mypocket},-'
}
}

Expand Down
2 changes: 1 addition & 1 deletion locales/es.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local Translations = {
there_are_amount_credited = '¡Hay %{amount} Qbit(s) acreditados!',
you_have_qbit_purchased = 'Has comprado %{dataCoins} Qbit(s)!'
},
depreciation = {
debit = {
you_have_sold = 'Has vendido %{dataCoins} Qbit(s)!'
},
text = {
Expand Down
4 changes: 1 addition & 3 deletions locales/pt.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
local Translations = {
error = {
you_dont_have_a_cryptostick = 'Não possui um Cryptostick',
one_bus_active = 'Só pode ter um autocarro activo.',
drop_off_passengers = 'Deixe os passageiros antes de parar de trabalhar',
cryptostick_malfunctioned = 'Cryptostick com defeito'
},
success = {
Expand All @@ -12,7 +10,7 @@ local Translations = {
there_are_amount_credited = 'Foram creditados %{amount} Qbit(s)!',
you_have_qbit_purchased = 'Comprou %{dataCoins} Qbit(s)!'
},
depreciation = {
debit = {
you_have_sold = 'Vendeu %{dataCoins} Qbit(s)!'
},
text = {
Expand Down
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ QBCore.Functions.CreateCallback('qb-crypto:server:SellCrypto', function(source,
}
Player.Functions.RemoveMoney('crypto', tonumber(data.Coins))
local amount = math.floor(tonumber(data.Coins) * tonumber(Crypto.Worth["qbit"]))
TriggerClientEvent('qb-phone:client:AddTransaction', source, Player, data, Lang:t('depreciation.you_have_sold',{dataCoins = tonumber(data.Coins)}), "Depreciation")
TriggerClientEvent('qb-phone:client:AddTransaction', source, Player, data, Lang:t('debit.you_have_sold',{dataCoins = tonumber(data.Coins)}), "Debit")
Player.Functions.AddMoney('bank', amount)
cb(CryptoData)
else
Expand Down Expand Up @@ -319,7 +319,7 @@ QBCore.Functions.CreateCallback('qb-crypto:server:TransferCrypto', function(sour
WalletId = Player.PlayerData.metadata["walletid"],
}
Player.Functions.RemoveMoney('crypto', tonumber(data.Coins))
TriggerClientEvent('qb-phone:client:AddTransaction', source, Player, data, "You have "..tonumber(data.Coins).." Qbit('s) transferred!", "Depreciation")
TriggerClientEvent('qb-phone:client:AddTransaction', source, Player, data, "You have "..tonumber(data.Coins).." Qbit('s) transferred!", "Debit")
local Target = QBCore.Functions.GetPlayerByCitizenId(result[1].citizenid)

if Target ~= nil then
Expand Down

0 comments on commit 7ea9199

Please sign in to comment.