mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 09:01:32 +00:00
Update multi-language support
This commit is contained in:
+9
-9
File diff suppressed because one or more lines are too long
+12
-2
@@ -17,7 +17,7 @@ Locales['en'] = {
|
||||
['get_rented_vehicles'] = 'vehicles for rent',
|
||||
['invalid_amount'] = 'invalid amount',
|
||||
['invoice_amount'] = 'invoice amount',
|
||||
['leaving'] = 'leaving a personal vehicle',
|
||||
['remove_pv'] = 'remove a personal vehicle',
|
||||
['no'] = 'no',
|
||||
['no_players'] = 'no players nearby',
|
||||
['not_enough_money'] = 'you do not have enough money',
|
||||
@@ -42,9 +42,19 @@ Locales['en'] = {
|
||||
['vehicle_set_owned'] = 'Vehicle ~y~%s~s~ has been assigned to ~b~%s~s~',
|
||||
['vehicle_set_rented'] = 'Vehicle ~y~%s~s~ has been rented to ~b~%s~s~',
|
||||
['vehicle_sold'] = 'vehicle ~g~sold~s~',
|
||||
['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~'
|
||||
['vehicle_sold_to'] = 'Vehicle ~y~%s~s~ sold to ~b~%s~s~',
|
||||
['wash_money'] = 'money laundering',
|
||||
['withdraw_amount'] = 'amount of withdrawal',
|
||||
['withdraw_money'] = 'remove company money',
|
||||
['yes'] = 'yes',
|
||||
['deposit_stock'] = 'deposit Stock',
|
||||
['take_stock'] = 'take Stock',
|
||||
['dealership_stock'] = 'dealership Stock',
|
||||
['amount'] = 'amount',
|
||||
['quantity_invalid'] = 'invalid Quantity',
|
||||
['inventoty'] = 'inventory',
|
||||
['dealership'] = 'car Dealer',
|
||||
['dealer_customers'] = 'dealer customers',
|
||||
['have_withdrawn'] = 'you have withdrawn ',
|
||||
['added'] = 'you added ',
|
||||
}
|
||||
|
||||
+11
-1
@@ -17,7 +17,7 @@ Locales['fr'] = {
|
||||
['get_rented_vehicles'] = 'Véhicules en location',
|
||||
['invalid_amount'] = 'Montant invalide',
|
||||
['invoice_amount'] = 'Montant de la facture',
|
||||
['leaving'] = 'Sortir un véhicule personnel',
|
||||
['remove_pv'] = 'Sortir un véhicule personnel',
|
||||
['no'] = 'Non',
|
||||
['no_players'] = 'Aucun joueur à proximité',
|
||||
['not_enough_money'] = 'Vous n\'avez pas assez d\'argent',
|
||||
@@ -47,4 +47,14 @@ Locales['fr'] = {
|
||||
['withdraw_amount'] = 'Montant du retrait',
|
||||
['withdraw_money'] = 'Retirer argent société',
|
||||
['yes'] = 'Oui',
|
||||
['deposit_stock'] = 'déposer Stock',
|
||||
['take_stock'] = 'prendre Stock',
|
||||
['dealership_stock'] = 'concession Stock',
|
||||
['amount'] = 'quantité',
|
||||
['quantity_invalid'] = 'quantité invalide',
|
||||
['inventory'] = 'inventaire',
|
||||
['dealership'] = 'concession',
|
||||
['dealer_customers'] = 'client concession',
|
||||
['have_withdrawn'] = 'Vous avez retiré ',
|
||||
['added'] = 'vous avez ajouté ',
|
||||
}
|
||||
|
||||
+6
-6
@@ -4,7 +4,7 @@ local Vehicles = {}
|
||||
|
||||
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
|
||||
|
||||
TriggerEvent('esx_phone:registerNumber', 'cardealer', 'Client concession', false, false)
|
||||
TriggerEvent('esx_phone:registerNumber', 'cardealer', _U('dealer_customers'), false, false)
|
||||
|
||||
function RemoveOwnedVehicle(plate)
|
||||
|
||||
@@ -176,10 +176,10 @@ AddEventHandler('esx_vehicleshop:getStockItem', function(itemName, count)
|
||||
inventory.removeItem(itemName, count)
|
||||
xPlayer.addInventoryItem(itemName, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('quantity_invalid'))
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Vous avez retiré x' .. count .. ' ' .. item.label)
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('have_withdrawn') .. 'x' .. count .. ' ' .. item.label)
|
||||
|
||||
end)
|
||||
|
||||
@@ -198,10 +198,10 @@ AddEventHandler('esx_vehicleshop:putStockItems', function(itemName, count)
|
||||
xPlayer.removeInventoryItem(itemName, count)
|
||||
inventory.addItem(itemName, count)
|
||||
else
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Quantité invalide')
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('quantity_invalid'))
|
||||
end
|
||||
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, 'Vous avez ajouté x' .. count .. ' ' .. item.label)
|
||||
TriggerClientEvent('esx:showNotification', xPlayer.source, _U('added') .. 'x' .. count .. ' ' .. item.label)
|
||||
|
||||
end)
|
||||
|
||||
@@ -465,7 +465,7 @@ if Config.EnablePvCommand then
|
||||
|
||||
TriggerEvent('es:addCommand', 'pv', function(source, args, user)
|
||||
TriggerClientEvent('esx_vehicleshop:openPersonnalVehicleMenu', source)
|
||||
end, {help = _U('leaving')})
|
||||
end, {help = _U('remove_pv')})
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user