Updated multi-language support

This commit is contained in:
nearbyplayer
2017-08-17 12:51:41 -04:00
parent 40ffe31324
commit c25a32e6de
3 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -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')
+2
View File
@@ -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',
}
+2
View File
@@ -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',
}