mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Updated multi-language support
This commit is contained in:
+3
-3
@@ -37,7 +37,7 @@ function CloseInstance()
|
||||
end
|
||||
|
||||
function EnterInstance(instance)
|
||||
|
||||
|
||||
TriggerServerEvent('instance:enter', instance.host)
|
||||
|
||||
if RegisteredInstanceTypes[instance.type].enter ~= nil then
|
||||
@@ -130,13 +130,13 @@ end)
|
||||
RegisterNetEvent('instance:onPlayerEntered')
|
||||
AddEventHandler('instance:onPlayerEntered', function(instance, player)
|
||||
Instance = instance
|
||||
ShowNotification(GetPlayerName(GetPlayerFromServerId(player)) .. ' est entré dans l\'instance')
|
||||
ShowNotification(GetPlayerName(GetPlayerFromServerId(player)) .. _U('entered_into'))
|
||||
end)
|
||||
|
||||
RegisterNetEvent('instance:onPlayerLeft')
|
||||
AddEventHandler('instance:onPlayerLeft', function(instance, player)
|
||||
Instance = instance
|
||||
ShowNotification(GetPlayerName(GetPlayerFromServerId(player)) .. ' est sorti dans l\'instance')
|
||||
ShowNotification(GetPlayerName(GetPlayerFromServerId(player)) .. _U('left_out'))
|
||||
end)
|
||||
|
||||
RegisterNetEvent('instance:onInvite')
|
||||
|
||||
@@ -4,5 +4,7 @@ Locales['en'] = {
|
||||
['invite_expired'] = 'invite expired',
|
||||
['press_to_enter'] = 'press ~INPUT_CONTEXT~ to enter the instance',
|
||||
['entered_instance'] = 'you entered the instance',
|
||||
['entered_into'] = ' entered the instance',
|
||||
['left_out'] = ' left the instance',
|
||||
|
||||
}
|
||||
|
||||
@@ -4,5 +4,7 @@ Locales['fr'] = {
|
||||
['invite_expired'] = 'invitation expirée',
|
||||
['press_to_enter'] = 'appuyez sur ~INPUT_CONTEXT~ pour entrer dans l\'instance',
|
||||
['entered_instance'] = 'vous êtes entré dans l\'instance',
|
||||
['entered_into'] = ' est entré dans l\'instance',
|
||||
['left_out'] = ' est sorti dans l\'instance',
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user